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.
As the subject says, I want to install Mandriva (probably with all the bells and whistles and eye candy) but I don't know whether I really need a 2Gb SWAP partition (as I understand it the SWAP is generally 2x physical RAM) given that I have 1Gb RAM already. Please advise.
From what I've read it's best to have a swap file. Linux makes maximum use of swap and ram memory to make the system run as smooth as possible. However, (again from what I've read) if you have 1GB of RAM there's no need to do 2xRAM for SWAP. I'd go for 1GB SWAP.
I would create a small swap partition of about 256MB. Swap doesn't need to be 2xRAM, that's just a rule of thumb that's becoming outdated as RAM becomes more plentiful. The small swap partition will allow the virtual memory manager to run most efficiently.
I'd second Matir's suggestion of a 256Mg swap. For systems with at least 256 or 512 of RAM, it is unlikely that swap would ever see any significant use. -- J.W.
On a box dedicated to being a NAT/firewall, with about 90M of RAM, and 100M of swap, no swap is ever used. On this box an average of 27M of RAM is all that ever used.
On another box with 1G of RAM and 100M of swap, some swap is always in use. This box is used for everything from folding@home (when in season/cold outside) to kernel compiling, music cdburning etc...
Yes, mickyg. Well, you can get away with somewhat less due to compression, but it's hard to determine how well the compression algorithm will run on any given data set.
if you want to use hibernation, my guess would be to go with more than 1 GB of swap, even if it's a damn waste of space... In case you RAM is "full" you will need 1 GB of swap to hibernate, plus what swap will be in use at the time of hibernation.
I'm not intending to use it all the time, I just don't want to have 256MB swap and find that I can't use it at all.
Also, this might be a really stupid obvious question but, if I have more swap does that mean I can have more programs open and my computer will generally run smoother or will it not make much of a difference given the amount of physical RAM I have?
What's a bit of (potentially wasted) disk space these days ???.
Lots of desktop users never see it used.
If you need to swap, and you don't have any active, something (maybe everything) dies a horrible death.
Then there is Suspend2 and its ilk.
Your choice what is acceptable risk.
As an aside I run a Gig plus 5 Gig swap, and I regularly see 2 Gig of the swap actively in use.
Not your typical user, but there are cases where it really gets used.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.