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.
Linux should always have a small amount of swap space, whether you have 64MB RAM or 4GB RAM. Search, there were a lot of threads about this a couple of weeks back with extremely good replies
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152
Rep:
To be honest I have never seen any of my swap used (1024Mb Ram, 512Mb Swap) but just incase you do run out of ram; It's better to be safe then sorry. Is 512Mb of hard disk space that critical? Linux will run with no swap at all, infact I think its the only one that gives you this option windows and mac both 'swap'.
Last edited by johnson_steve; 04-29-2006 at 08:23 PM.
If you don't use swap, you must fear the infamous OOM (Out Of Memory) killer of the Linux kernel (see /usr/src/linux/mm/oom_kill.c), killing some processes in your system when there's no memory.
If you don't use swap, you must fear the infamous OOM (Out Of Memory) killer of the Linux kernel (see /usr/src/linux/mm/oom_kill.c), killing some processes in your system when there's no memory.
If you do use swap, you should still fear the OOM killer. I've had it kill a runaway frozen-bubble, but only after much thrashing. Having close to no swap would have been good here. But that's just my experience.
Personally, I agree that "you can afford a few megabytes of disk space." Should the system run out of RAM, it's in a pickle... and that swap-space just might save your a*s.
Here's an an interesting thread on this very topic from kerneltrap.org. To make a long story short, you can get better performance with swap than without, regardless of how much physical RAM you have.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.