Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
If you don't swap, it don't matter.
If you *do* swap, it might. Pretty expensive option I would have thought. Personally I prefer to have multiple swap partitions (same priority) on separate drives. This is effectively a "stripe set" that kswapd manages itself.
So long as the disks aren't otherwise active (I/O-wise), seems to work o.k. Find some data that doesn't get hit very often, and put that on the same drives if you can.
Don't go putting things like video streaming against active swap.
The reason that you might want to put any disk partition on a new disk is to spread I/O over the disks to lighten the load on each disk. I have never seen a Linux system aggressively swap. In other words the little bit of swap file activity that I normally see on Linux systems is spread out over time. That means that there is no advantage to putting a swap file on a separate disk.
You can mount disk partitons onto any directory in the directory tree. So, yes, you can mount disk partitions onto directories in a user's home directory. For example using your original post:
Code:
mount /dev/hdb1 /home/bbe/pictures
mount /dev/hdc1 /home/bbe/videos
mount /dev/hda2 /home/bbe/something.else
mount /dev/hda3 /home/bbe/other.things
Naturally, whatever the real device names are should be substituted for what I wrote.
Keep in mind that the only time swap is needed is if your usage push RAM past its capacity, and the system is forced to write memory pages to the hard drive. Back in the days where having 32Mg of RAM was considered bleeding edge, it was easy to do that, but with modern systems having 256Mg or 512Mg or even more RAM, it becomes increasingly unlikely.
As syg00 and stress_junkie mentioned significant sustained swapping would be really unusual, and unless your current system is using swap in a big way, putting your swap space on a different drive won't make a difference. How much RAM do you have, and what kinds of swap usage are you seeing right now?
Well .. the advantage is that you save some disk-space. However,
IF you fired up (a) process(es) that gobbled up all available RAM
and you didn't have swap the kernel would kill any random process
to make room for the next ones needs - rather ugly if you were editing
a big video file and got shot in the foot because you lacked 50MB ;}
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.