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.
I just have a question about the swap partion. I understand pretty much what it does I think. What I don't understand is about the size. Is bigger better? or is there a size depending on the hard drive that works best?
Any insight on this would be very helpful.
Thanks
The question of swap size is a difficult one to answer. On a personal workstation, you shouldn't need too much unless you are doing some really intensive image manipulations or math calculations. On servers, you could end up with with some pretty large swap partitions, especially if it's a database server. You basically have to know how your application behaves.
And yes, it is possible under the right circumstances to search through swap space and see what's there.
I have heard of as much as 1gig of swap space, is too much bad? Do I under stand swap that if you more users you have connected the more swap you need? How does swap differ from ram then?
Originally posted by SchoolITguy I have heard of as much as 1gig of swap space, is too much bad? Do I under stand swap that if you more users you have connected the more swap you need? How does swap differ from ram then?
As was stated earlier, it depends. For a workstation setup (basically one/two users logged on at a time), a total of 250-300MB of RAM and swap is usually quite enough. For a server with lots of simultaneous usage may need 1 GB swap partition. A swap partition is a form of virtual memory. Because it resides on a drive, it is slower than physical RAM. Linux tries to make as much use of available RAM as possible, including using it for cache processes. It will spill over to a swap partition as needed, but understands the speed limitations of swap. Linux does manage memory resources very well.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.