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.
There is one point made above that I think is worth repeating: Disks have gotten large and cheap, any machine with 8GB of memory is likely to have at minimum 500GB of disk space. In that light, a 1-8GB partition for swap is more than manageable just to keep things safe. It's entirely plausible that aside form suspend, there will come a day when SOMETHING will want that much memory.
Applications have always responded to increased memory and disk storage. Remember when most screens were 1024x768 and videos a fraction of that size? Applications were installed from floppies. Remember the quote "640K ought to be enought for everybody"?
Applications have always responded to increased memory and disk storage. Remember when most screens were 1024x768 and videos a fraction of that size? Applications were installed from floppies. Remember the quote "640K ought to be enought for everybody"?
Yup. Although, 8 GB RAM will suffice for at least the forseeable future.
like jschiwal says there are plenty of sources on the internet to explain why swap is a good thing. Just don't want you to get into an IT shop thinking you can build systems without page space.
OK, if you won't tell us what they are, will you point to one of these many sources?
Applications have always responded to increased memory and disk storage. Remember when most screens were 1024x768 and videos a fraction of that size? Applications were installed from floppies. Remember the quote "640K ought to be enought for everybody"?
I don't disagree with this at all. What I disagree with is that presumption that just because you have more memory, you need more swap space.
RAM has become so cheap that manufacturers are throwing 8GB at personal machines. It will be a rare user who sees even a large fraction of that 8GB in use, no matter how sloppy the programming gets. There just aren't that many tasks that need that kind of memory footprint. The ones that are are essentially batch mode processes that spend a long time computing a large data set. How many home users are there that have such a task to do?
I do appreciate the comments from those who are more geared toward a commercial/server environment. However it was my understanding that the OP is a home user.
Second, a significant number of the pages used by an application during its startup phase may only be used for initialization and then never used again. The system can swap out those pages and free the memory for other applications or even for the disk cache.
I think that it can be argued that a workstation with more memory will have run more applications, many of which you won't go back to for a long time. Letting the memory for those applications swap out will leave more real memory for the apps you are currently using.
My rule of thumb today is to have a bit more swap than physical memory to allow suspending to work.
ok, now don't be silly. We know what swap is, but I also know that it is NOT mandatory. It is usually a good idea to have some swap, but by no means is it mandatory, in fact if you have lots of RAM and don't really do much with it, swap is a waste of space.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.