Many 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…
Sadly PXE boot of a modern Linux OS is easier said than done. Gone are the days of just handing out the kernel over tftp and providing a NFS root. SystemD gets super cranky and you can't even boot the thing without setting some undocumented flags.
Ramroot – Run Arch Linux Entirely from RAM (2017)
61–70 of 83 posts
Re: Ramroot – Run Arch Linux Entirely from RAM (2017)
#62Why would this be useful?
Re: Ramroot – Run Arch Linux Entirely from RAM (2017)
#63Re: Ramroot – Run Arch Linux Entirely from RAM (2017)
#64Re: Ramroot – Run Arch Linux Entirely from RAM (2017)
#65Earlier quoted context omitted.
Do you know of or could list which databases support raw block devices?
Most of your classic closed source RDBMS (e.g. Oracle) had this as an option, no idea if they still do. Some purpose-built cloud databases operate this way because it makes perfect sense in that environment. Many domain specialized databases kernels (e.g. for real-time sensor data models) support or require this. It isn't something I recall seeing in open source but that is probably because it only works if you are d…
Re: Ramroot – Run Arch Linux Entirely from RAM (2017)
#66Why would this be useful?
One of them had such a shit slow (RLL I think) hard disc, I decided to network boot it instead and saved quite a lot of money.
Re: Ramroot – Run Arch Linux Entirely from RAM (2017)
#67Many 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…
Especially useful for Windows; it is rather slower diskless (compared to BSD/linux) but it makes Windows instances disposable.
Takes a bit of effort (more these days, FUVM systemd) but having a RAMdisk + diskless RO /usr is a great way of having computers everywhere all singing the same song.
Re: Ramroot – Run Arch Linux Entirely from RAM (2017)
#68I 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…
Re: Ramroot – Run Arch Linux Entirely from RAM (2017)
#69I 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…
Warming up the page cache is in fact already done on modern systems: http://manpages.ubuntu.com/manpages/xenial/man8/ureadahead.8... I'd agree that making ureadahead more aggressive would indeed make more sense than just sticking your roots in RAM. It shouldn't impact your boot time very much and is much more flexible! But maybe there's some special perf benefit to the ramroot approach..
Re: Ramroot – Run Arch Linux Entirely from RAM (2017)
#70Many 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…
Sadly PXE boot of a modern Linux OS is easier said than done. Gone are the days of just handing out the kernel over tftp and providing a NFS root. SystemD gets super cranky and you can't even boot the thing without setting some undocumented flags.
[1] https://github.com/joelandman/nyble
[2] https://github.com/joelandman/tiburon
[3] https://scalability.org/2019/05/nyble-ftw-installing-my-ramb...