Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
I'm using _ GNU/Linux debian unstable main _ it's very nice and I believe that there are tools that should be able to do this (I've not tested them, so I say believe)
You can also just create a file in your / partition (or any partition for that matter) and use that file as extra swap space. This is much easier and a lot less risky than modifying your partition sizes. http://www.redhat.com/docs/manuals/l...ap-adding.html describes the process for adding a swap partition or swap file.
You can also just create a file in your / partition (or any partition for that matter) and use that file as extra swap space. This is much easier and a lot less risky than modifying your partition sizes. http://www.redhat.com/docs/manuals/l...ap-adding.html describes the process for adding a swap partition or swap file.
HTH
Forrest
Thanks! That worked good and I was able to do it remotely.
Some comments:
- only use swap files on a 2.6 kernel, not 2.4
- if you expect to actually use swap, make all the extents the same priority; kswapd will then stripe the I/O.
- if you expect to actually use swap heavily don't put it on the same disk (let alone same partition) as anything else.
Preferably don't swap at all, then the above don't matter ...
Maybe I should have moved that down the list - it's a performance rather than a functional consideration.
2.6 doesn't differentiate the I/O, so swap is always handled by the (block) device layer - 2.4 had filesystem involvement, so the code path-length was longer for swap files compared to swap partitions.
Some comments:
- if you expect to actually use swap heavily don't put it on the same disk (let alone same partition) as anything else.
I am using about 2GB of the swap and already have 4GB of ram used up, and I expect to use more of the swap space, should I put one swap partion on one drive and one swap partition on another?
Arguing about the speed of swap is like arguing about the speed of water buffalo. Even the fastest one is slower than almost anything else. Swap should be thought about as a temporary solution to a memory shortage problem. It is necessary when it is needed, but shouldn't be counted on as the way to win any races.
I am using about 2GB of the swap and already have 4GB of ram used up, and I expect to use more of the swap space...
If you are accessing your swap space so frequently that you are constantly thrashing your drive(s), you will probably cause a premature drive failure. There is no better solution to this problem than more RAM. However, if you are using a basic off-the-shelf motherboard, you may have hit your limit.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.