• ratman150@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      ·
      9 months ago

      In a nutshell (eli5) swap is sorta “very slow ram” which is actually just a section of your hard drive /SSD/some other bizarre medium. It is generally used to temporarily store information that might be needed later but would waste valuable “fast ram” which is your actual ram sticks.

      What’s going on here is this user mounted Google drive in a way that the operating system can interact more directly with it, and it appears to have a set amount of space. Because we’ve mounted Google Drive we can tell our operating system to use it as swap…very very slow silly swap, but swap nonetheless.

      So that’s exactly what they did, they told the operating system to set aside X amount of Google Drive for swap, and when looking at the resource monitor we can see the “swap” appears as “more ram”.

      Hope that helps, please ask if I confused you :)

    • Diabolo96@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      1
      ·
      9 months ago

      All you need to know is that RAM is all about being extremely fast.

      Swap is disk space set aside to be used as virtual Ram (part of your disk become RAM ) for when you have no more real ram. It’s useless on modern computers because RAMs are at worst of worst 100 times faster than the fastest SSD. If you have no ram it’s just best to crash the OS than making it slow down to a crawl or freeze.

      This person use their Google drive as swap which make it even far more useless because even the slowest ssd is probably faster than the best commercial internet connection even with a perfect latency.

      In short, it’s extremely cursed.