11
Swap Rule (i.imgur.com)
top 6 comments
sorted by: hot top controversial new old
[-] solivine@sopuli.xyz 1 points 1 year ago

Can someone explain how this works?

[-] ratman150@sh.itjust.works 4 points 1 year 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 :)

[-] stratoscaster@lemmy.zip 2 points 1 year ago

Time to use my floppy as a swap space ๐Ÿ˜Ž

[-] FederatedSaint@lemmy.world 1 points 1 year ago

I've used my floppy in a few swap spaces myself if ya know what I mean....

[-] solivine@sopuli.xyz 1 points 1 year ago
[-] Diabolo96@lemmy.dbzer0.com 1 points 1 year 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.

this post was submitted on 06 Oct 2023
11 points (100.0% liked)

196

16371 readers
1909 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS