| Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux. |
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-15-2008, 04:55 AM
|
#1
|
|
LQ Newbie
Registered: Dec 2008
Posts: 1
Rep:
|
How Much Swap ?
hi friends. In newbie in Linux and having trouble with my swap partition selection. My question, i got confused with swap parititon's size ? I have Acer 5315 Nb and have 1.5 Gb Ram. there are lots of different comments about its size ? and finaly i find this one ;
"but depending on which kernel you are using, either qual or double your RAM would be a good rule of thumb."
what is my kernel how i can know (having updated my Mandriva; there were new menus in my Grub Menu related with Kernel?)? and how much i need to resize my Swap ? i dont want to use hibernate or suspend preferences. As a requirement and for a better performance how much ?
|
|
|
|
12-15-2008, 05:21 AM
|
#2
|
|
Member
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416
Rep:
|
If you don't want to use hibernate or suspend functions or other very RAM-intensive applications such as virtual machines then you probably won't see any swap used ever. With 1.5 Gig of RAM setting aside another gig for swap just to be safe should be absolutely sufficient. My system has 768 MB of RAM and one GB of swap and swap is only very rarely used at all. The kernel version isn't of any importance for that.
You can find out the kernel version with the command uname -r.
Robin
|
|
|
|
12-15-2008, 10:40 AM
|
#3
|
|
LQ Newbie
Registered: Dec 2006
Distribution: openSUSE 11.1 RC 1, Mandriva 2009 and Ubuntu 8.10
Posts: 3
Rep:
|
As a new Linux user, I am also curious. I do a lot of desktop publishing, which requires a lot of photo editing. With my 2GB RAM rig, should my swap file be 4GB? Should it be higher or lower with also using the suspend function of my pc? Does it matter which distro I use?
|
|
|
|
12-15-2008, 10:56 AM
|
#4
|
|
Member
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416
Rep:
|
The old rule of thumb that swap should be twice as large as RAM is complete rubbish, dating from a time when you had 4 MB of RAM on a desktop system and 16 MB of RAM on a multimedia-capable system. You wouldn't do multimedia on the smaller one so 8 MB of swap space were sufficient for that, but you needed more swap to do multimedia. Today, when you want to do everything with a computer, RAM plus Swap must be a sufficient sum total.
Where's the logic in having a smaller amout of swap when you also have a smaller amount of RAM? Swap is there to complement RAM when there isn't enough free memory, so the more RAM you have the less swap you're going to need.
If your software has many undo steps to record, then you might have to use more swap - but I doubt you're going to have 4 GB of undo data in RAM and swap. If you want to use suspend functions utilizing RAM, then of course RAM must be sufficient for that. But for normal work 2 GB of RAM is far more than is necessary. It is more than I have RAM plus swap, and I have yet to manage to fill all of that with image editing.
Robin
|
|
|
|
12-23-2008, 07:16 PM
|
#5
|
|
Member
Registered: Jun 2003
Location: USA
Distribution: Debian 7 (Wheezy)
Posts: 74
Rep:
|
On a default Mandriva installation, the swap partition size is twice the installed memory.
The amount of swap space can certainly be expanded or reduced, but you should back up your entire system first, before attempting to change the swap size after installation.
My laptop has 1.5 Gb of memory installed and the swap space is 3 Gb. Because the installed memory is more than sufficient, the swap space on the laptop has never been accessed.
|
|
|
|
12-23-2008, 07:21 PM
|
#6
|
|
Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Squeeze, Fedora 14
Posts: 7,268
Rep:
|
Quote:
Originally Posted by wykedengel
As a new Linux user, I am also curious. I do a lot of desktop publishing, which requires a lot of photo editing. With my 2GB RAM rig, should my swap file be 4GB?
|
512MB is plenty.
Quote:
Originally Posted by wykedengel
Should it be higher or lower with also using the suspend function of my pc?
|
If you are using suspend then make swap about 1.5 times the size of your RAM, i.e. 3GB
Quote:
Originally Posted by wykedengel
Does it matter which distro I use?
|
No.
--------------------------
Steve Stites
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:44 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|