You are viewing a single thread.
View all comments View context
174 points

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 :)

permalink
report
parent
reply
41 points

I’m pretty sure google drive just acts like a syncing tool in the same way as dropbox, so this would still act like a normal swap drive, presumably.

That said, I’ve only used swap partitions so I’m not sure how it works when you point it at a directory, but I guess it depends how this person set it up.

permalink
report
parent
reply
59 points

They’ve used google-drive-ocamlfuse to mount the drive in Linux, which if I recall correctly is direct access, rather than the way it works in Windows

permalink
report
parent
reply
28 points
*

No they didn’t. They used rclone and mounted Google drive in vfs-cach mode which means it’s firstly written to the drive before it’s synced to the cloud

https://blog.horner.tj/how-to-kinda-download-more-ram/

permalink
report
parent
reply
11 points
*

It makes sense that you can do this, as it’s how Chromebooks work, and they run on Chrome OS Android Linux

permalink
report
parent
reply
2 points

Oh cool

permalink
report
parent
reply
4 points

You’re right, this wouldn’t really work, but it’s still a funny idea.

permalink
report
parent
reply
9 points

Time to use my floppy as a swap space 😎

permalink
report
parent
reply
8 points

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

permalink
report
parent
reply
1 point

Did it play the Imperial March?

permalink
report
parent
reply
2 points

Can I watch?

permalink
report
parent
reply
5 points

Thanks <3

permalink
report
parent
reply