Ramroot – Run Arch Linux Entirely from RAM (2017)
11–20 of 83 posts
Re: Ramroot – Run Arch Linux Entirely from RAM (2017)
#12Out of curiosity, does data persist after a shutdown when an OS runs on RAM? Are there dumps to a HDD?
The piratebay used to run their servers like this. They'd boot off of a USB stick, pivot root to a ram disk, and then unmount the USB stick. Then when the cops would seize the machines and cut power to save as much evidence as they could, they'd actually be doing the opposite.
Re: Ramroot – Run Arch Linux Entirely from RAM (2017)
#13Out of curiosity, does data persist after a shutdown when an OS runs on RAM? Are there dumps to a HDD?
Re: Ramroot – Run Arch Linux Entirely from RAM (2017)
#14It worked basically how a Live CD worked - creating a temporary filesystem in ram, and I only learned later that they already existed (I didn't know at the time and the Internet wasn't as good at finding things as it is today :) )
Re: Ramroot – Run Arch Linux Entirely from RAM (2017)
#15This is neat, but nothing new. I remember using this builtin feature on live distros like Slax and DSL over a decade ago. It was fun to see old computers run (comparably) blazingly fast.
The new thing is that it can be just be switched on/off on an existing install. Sure people have been running distros from ram for a while but getting the tooling situated to make it like any other feature it super cool.
Is that only true for Arch, or is that also working on other distros?
Re: Ramroot – Run Arch Linux Entirely from RAM (2017)
#16A lot of modern laptops come with 32 GB of ram on the lower end. With something like syncthing you only need permanent storage as a cache.
Re: Ramroot – Run Arch Linux Entirely from RAM (2017)
#17Virtually all network booted computers run their OSs from RAM. If you have never pxe booted a machine, it is a beautiful experience once you overcome a few challenges: easy upgrades and rollbacks, being able to use a machine with different contexts/platforms by just rebooting, and having your servers cleaned up just by cycling (assuming you don't have local storage)
If you enjoy the idea of RAM root devices, please try pxe/ipxe to boot your computer from a network. Also, if you have a sufficiently fast network... it is probably faster than booting from disk!
EDIT: I missed the word "all" on the second paragraph, and another typo... sorry!
Re: Ramroot – Run Arch Linux Entirely from RAM (2017)
#18FreeNAS prefers ZFS so it’s RAM hungry anyway. The article recommend 500mb more than you need.
Can you do this to an Arch VM?
Re: Ramroot – Run Arch Linux Entirely from RAM (2017)
#19In theory, the kernel uses a buffer cache that will hold on to disk pages until they're invalidated by writes. It'll evict the cache if there's memory pressure. But this setup will presumably just crash if there's memory pressure, so that doesn't seem like a win for the RAM disk.
Re: Ramroot – Run Arch Linux Entirely from RAM (2017)
#20The nice thing about NBD is that its a super simple protocol, the server runs in user space, and it's easy to modify to suit own needs. I built sometime ago a version with block deduplication for a farm of disk-less clusters that had very little ram in ~1k LOC. Main disk had persistence activated, while swap drives were pure RAM.