[SOLVED] HowTo Use one computer's RAM as poor man's SSD for another computer
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
HowTo Use one computer's RAM as poor man's SSD for another computer
I have posted a new How-To, describing how to use one computer as a poor man's SSD for another computer.
For example, suppose you have two cheap laptops connected to each other by a gigabit cable - both with fully occupied RAM slots. One can be an nfs server serving up a large tmpfs ramdisk as a fast drive to the client laptop.
Unfortunately, a power outage or simple powering off the computer incurs data loss in such a setup. If you're more concerned with speed and less with data integrity then I recommend buying four of the cheapest SSDs money can buy and software RAID0 them using mdadm. I did that on my Linux desktop and couldn't be happier with the performance at a fraction of the cost of other high performing single SSDs. I documented my experience for myself but feel free to check it out.
It's typical for a spare laptop to already have a battery backup built in that can last hours with the display off, and you can always set up a regular job to rsync /home to the hard drive every ten minutes if you're so paranoid. There's actually even less of a risk of data loss or file system corruption with this battery backup than with an internal SSD.
Besides, there's no way for even one cheap SSD to compete with a spare laptop on price--not that four SSDs could even fit inside the client laptop. This is all about making spare stuff useful without really spending money on it. If you have money to throw at a problem, then an off-the-shelf SSD is practically always the way to go. A cheap SSD may cost slightly more than a $30 used laptop, but it'll be maybe 60GB, not maybe 4GB.
I actually have one computer on a four drive mdadm RAID0, but that was just for kicks because I recently got my hands on a ton of spare hard drives. They were unremarkable 80GB spinning drives, but I decided to put four of them into a box just because combined (320GB), they were big enough to be a vaguely useful backup file server. But it did kind of cause a crisis for me as I used up all of my SATA cables. I only power on the thing every once in a while to rsync up a backup. Otherwise, it would cost more than it's worth in electrical power and besides, it's noisy.
For raw speed, there's nothing that'll beat RAMboot, though. I have another How-To on customizing the boot scripts to load the OS into RAM, uncompressed, at the beginning of the boot process. It is FAST, albeit real world performance isn't as much of a boost as you might hope for. And unless you have a heck of a lot of RAM, we're talking tiny capacities compared to even a cheap SSD.
Still, my experiences with the perhaps disappointingly modest speed boost of RAMboot has told me not to bother with spending money on a RAID0 SSD setup for a future workstation. For my usage case, the performance boost compared to just one SSD would not be worth it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.