I wonder whether this achieves anything performance-wise that just cat'ing every file to /dev/null to warm up the buffer cache wouldn't achieve. In 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…
Ramroot – Run Arch Linux Entirely from RAM (2017)
31–40 of 83 posts
Re: Ramroot – Run Arch Linux Entirely from RAM (2017)
#32I would love to see this feature added to CentOS/RHEL. In the past, we used NFS Diskless which is anything but diskless. Hacking together an initrd that loads everything into ram is, well, hacky. To have a dracut function or a toggle to enable this would be great for lightweight deployments, testing, labs, vagrant, etc... I'm sure that RHEL must have been contemplating it because there is /etc/sysconfig/readonly-root…
Re: Ramroot – Run Arch Linux Entirely from RAM (2017)
#33I wonder whether this achieves anything performance-wise that just cat'ing every file to /dev/null to warm up the buffer cache wouldn't achieve. In 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…
Re: Ramroot – Run Arch Linux Entirely from RAM (2017)
#34Re: Ramroot – Run Arch Linux Entirely from RAM (2017)
#35I understood the capitalisation to indicate the default. Or does the default change? That seems bad if you're intending to wrap this in a script.
Re: Ramroot – Run Arch Linux Entirely from RAM (2017)
#36Many OS out there take advantage of RAM Disks. Alpine Linux for instance allows you to boot your root device on ram as a default. SmartOS runs a boot image completely on RAM, and keeps your storage free for a few configs and VMS. Virtually 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 roll…
Never having finished Home pxe setup is a great sadness of mine.
http://ipxe.org/start has all the info you'll need.
Re: Ramroot – Run Arch Linux Entirely from RAM (2017)
#37Many OS out there take advantage of RAM Disks. Alpine Linux for instance allows you to boot your root device on ram as a default. SmartOS runs a boot image completely on RAM, and keeps your storage free for a few configs and VMS. Virtually 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 roll…
Even in the event you have to use some secure zone crap, it’s pretty trivial to build since all PXE requires are dhcpd and tfptd — which are often available by default on nearly any *nix variant.
Re: Ramroot – Run Arch Linux Entirely from RAM (2017)
#38I believe FreeNAS does something like this during startup. You can “install” it on mirrored USB drives in case you run out of power. The redundant USBs are used to install the OS back into RAM. An extra USB in case of corruption and they’re way cheaper than SSDs. I’m assuming you still need to write config files back to the USB. FreeNAS prefers ZFS so it’s RAM hungry anyway. The article recommend 500mb more than you…
SSDs cost 26€ for 128GB and offer significantly more performance and reliability. USB drives are not significantly cheaper.
Re: Ramroot – Run Arch Linux Entirely from RAM (2017)
#39I came to know about this from Puppy Linux.
Re: Ramroot – Run Arch Linux Entirely from RAM (2017)
#40I wonder whether this achieves anything performance-wise that just cat'ing every file to /dev/null to warm up the buffer cache wouldn't achieve. In 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…
I can't hard-core prove anything, but I've read the theory on how if I'm accessing warm disk cache, putting things into a RAM disk shouldn't speed them up, and every time I've done it and tested it, putting things in a RAM disk is faster than having it on disk, even when the very act of copying the stuff into RAM should definitely have just warmed everything up just before the test. I've not done it very often, but e…