SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Hi and happy holidays!
I have 1G swap partition. But all I see is that only 6M of it is sometimes used. My computer is very old and I suppose it must use swap more intensively. Why there's a rule of doing the swap partition as big as two RAMs if it's nearly not needed at all? Should I edit some configs to make use of the swap more intensive? Or maybe there's something wrong with my computer?
If you have sufficient ram for running applications, then you will see that your swap will be hardly used. Making swap twice the ram is an old rule that does not necessarily apply these days when memory is so cheap and many computers ship with large amounts of ram.
Thank you! So, small usage of the swap may be a compliment to my OS .
I'm going to shrink my swap partition. What swap space may be sufficient for my PC (see the specs below)? I use it only as a desktop with KDE.
Yes, that old rule of making your swap partition double the size of your RAM is a bit outdated now. I'm running Slack 12 on a Plll 800 MHz IBM eServer with 768 MB RAM; I'm using a 800 MB swap partition.
My unit rarely goes into swap:-)
You will use swap when the kernel see the need. If you don't have sufficient amount of memory for an application(s) then that's when it will occur. But if your swap is not of sufficient amount and the kernel needs are greater than what you allocate then the system will become sluggish or slow until the task(s) are complete. If your HD space needs are that tight then you could or should look into increase either the HD or the RAM.
One reason to continue keeping swap partitions large is to use it as the device for hibernate. You can actually use non-swap partitions, but hell seems pretty cool to me just to keep it on the swap.
And on that notion I still keep my swap at least as large as my RAM + GRAM.
Just because a machine is older does not mean it will use more SWAP. At the end of the clock cycle it still directly related to how much ram you have vs what you are trying to load into that ram.
Funny enough for whatever reason on machines that have been running quite a while I usually notice that it puts 2m to 6m worth of stuff in swap at some point for some reason. Its nothing to worry about, if its in there and you got ram free it deserves to be there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.