Slackware This Forum is for the discussion of Slackware 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.
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.
|
 |
09-28-2014, 09:28 PM
|
#1
|
Member
Registered: Apr 2014
Posts: 276
Rep: 
|
Get swap correct
What is the nominal size for a swap partition with 14.1?
I have read rules of thumb that run from 1x to 3x of memory. What is currently suggested for 14.1?
|
|
|
09-28-2014, 09:43 PM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 20,014
|
The old rules for swap have been negated by the increase in default RAM. The old rule of thumb was 2X RAM, but that was when 256MB or 512MB RAM was the standard.
If you plan to have your machine hibernate, the swap partition should be more than the amount of RAM, as hibernation saves RAM to swap. Otherwise, if you have more than 4GB RAM, a swap partition of 1GB should be sufficient. On the P4 box I'm using right now, I have 4GB RAM, uptime is more than four days (a power failure forced a restart), and I'm using about 1MB of 2GB swap.
Last edited by frankbell; 09-28-2014 at 09:45 PM.
|
|
|
09-28-2014, 09:46 PM
|
#3
|
Member
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836
|
Depends on how much ram you use, and how much ram you have, what you're using the computer for.
For example, if you want to hibernate to disk often, and a running desktop session uses about 2GB ram, it would be wise to have at least 3GB swap space.
There isn't really a suggestible amount, if you have free space, it doesn't hurt to use more than you might need.
If you have limited ram (a small amount) most people would use x2 the amount of ram for their swap space.
|
|
|
09-29-2014, 05:43 AM
|
#4
|
Member
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: Arch Linux
Posts: 838
|
i have 8 gigs of ram and 1,85 gigs of swap, never run into problems.
|
|
|
09-29-2014, 07:34 AM
|
#5
|
Member
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 15.0
Posts: 655
|
In the early days of computers, hard disks were not that much slower than real memory, and real memory was incredibly expensive. Nowadays we find that hard disks have really only sped up by a small factor, whereas memory has sped up by millions of times, and memory is pretty cheap too. The usefulness of swap (aside from hibernation) no longer exists. If your system got into a state where it really started using more memory than you have and started to page out/in, your entire machine would grind to a slow death. Your expectations of program performance would dip so fast you'd be better off just restarting the machine and maybe adding more real memory.
Last edited by Mark Pettit; 09-29-2014 at 07:35 AM.
Reason: Fix typos
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 03:49 AM.
|
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
|
|