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.
when i partitioned for my linux installation, i set aside almost 2 GB for a swap partition. it's about 3 times as large as the machine's physical RAM (about 640 MB).
i have never seen the swap space used. sometimes it says that a single megabyte of swap is being used, but other than that, it doesn't seem like it ever gets any use.
is there something wrong with this, or is it a good thing? if i'm not using my swap partition, can i get rid of it?
Yeah, I have 700MB of swap which is just what was left over. it's never been used by I've got 1.5GB of RAM so that's not really much of a suprise.I wouldn't be getting rid of it all but you could easily cut that down to tops 512MB if you wanted.
This is a good thing -- the less your swap partition is used, the better your performance will be, the reason being that access times within RAM are measured in nanoseconds, while access times from the hard drive (aka swap) are measured in milliseconds. That's 6 orders of magnitude. Yipes.
Personally, I'd say that as long as you have a reasonably modern PC (P3 equivalent or better, 256Mg RAM or better) then you're probably safe with a swap of 256Mg, regardless of the amount of RAM you have. In the past, there was a guideline that swap should be twice RAM, but that was in the days where having 64Mg RAM was considered leading edge. These days, RAM limitations are less of an issue, considering that the only time swap would even be called into use at all is when your RAM is pushed past capacity and your system is forced to write memory pages out to disk. If you've only got 32 or 64Mg of RAM that's not terribly hard to do, but if you've got 256Mg or more, it becomes increasingly unlikely.
As DJ P@ckman indicated, you may wish to consider reducing the size of your swap partition, but if your got disk space to burn, it's pretty much a non-issue. -- J.W.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.