LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-27-2007, 01:12 PM   #1
and_ru
Member
 
Registered: Dec 2007
Posts: 44

Rep: Reputation: 16
Question Slack uses only 6M out of 1G swap space!


Hi and happy holidays!
I have 1G swap partition. But all I see is that only 6M of it is sometimes used. My computer is very old and I suppose it must use swap more intensively. Why there's a rule of doing the swap partition as big as two RAMs if it's nearly not needed at all? Should I edit some configs to make use of the swap more intensive? Or maybe there's something wrong with my computer?

Sorry for my silly questions
 
Old 12-27-2007, 01:16 PM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
If you have sufficient ram for running applications, then you will see that your swap will be hardly used. Making swap twice the ram is an old rule that does not necessarily apply these days when memory is so cheap and many computers ship with large amounts of ram.
 
Old 12-27-2007, 01:36 PM   #3
and_ru
Member
 
Registered: Dec 2007
Posts: 44

Original Poster
Rep: Reputation: 16
Thank you! So, small usage of the swap may be a compliment to my OS .
I'm going to shrink my swap partition. What swap space may be sufficient for my PC (see the specs below)? I use it only as a desktop with KDE.

Last edited by and_ru; 12-27-2007 at 02:01 PM.
 
Old 12-27-2007, 02:14 PM   #4
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Try editing some large images or movies .... that swap will be used up before you know it.

But, it's true, for most things, that swap is never used.
 
Old 12-27-2007, 02:55 PM   #5
hitest
Senior Member
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware, OpenBSD
Posts: 4,243

Rep: Reputation: 573Reputation: 573Reputation: 573Reputation: 573Reputation: 573Reputation: 573
Yes, that old rule of making your swap partition double the size of your RAM is a bit outdated now. I'm running Slack 12 on a Plll 800 MHz IBM eServer with 768 MB RAM; I'm using a 800 MB swap partition.
My unit rarely goes into swap:-)

Cheers,

hitest
 
Old 12-27-2007, 04:46 PM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,388
Blog Entries: 3

Rep: Reputation: 1479Reputation: 1479Reputation: 1479Reputation: 1479Reputation: 1479Reputation: 1479Reputation: 1479Reputation: 1479Reputation: 1479Reputation: 1479
Hi,

You will use swap when the kernel see the need. If you don't have sufficient amount of memory for an application(s) then that's when it will occur. But if your swap is not of sufficient amount and the kernel needs are greater than what you allocate then the system will become sluggish or slow until the task(s) are complete. If your HD space needs are that tight then you could or should look into increase either the HD or the RAM.
 
Old 12-27-2007, 07:22 PM   #7
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: LFS-Version SVN-20091202, Arch 2009.08
Posts: 1,496

Rep: Reputation: 68
My rule of thumb with swap is the larger amount of ram I have the smaller the swap space I need.


Only time I have seen mine use extensively was when compiling large programs like binutils or something like that
 
Old 12-27-2007, 08:59 PM   #8
KnightHawk
Member
 
Registered: Sep 2005
Posts: 128

Rep: Reputation: 15
One reason to continue keeping swap partitions large is to use it as the device for hibernate. You can actually use non-swap partitions, but hell seems pretty cool to me just to keep it on the swap.

And on that notion I still keep my swap at least as large as my RAM + GRAM.

Just because a machine is older does not mean it will use more SWAP. At the end of the clock cycle it still directly related to how much ram you have vs what you are trying to load into that ram.


Funny enough for whatever reason on machines that have been running quite a while I usually notice that it puts 2m to 6m worth of stuff in swap at some point for some reason. Its nothing to worry about, if its in there and you got ram free it deserves to be there.
 
  


Reply

Tags
slackware, swap


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to reduce swap space and reclaim the space grantm Linux - Newbie 7 08-16-2012 08:05 AM
how much swap space is needed; how to increase swap space? johnpaulodonnell Linux - Newbie 5 03-23-2007 04:20 AM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 02:23 AM
how much swap space porous Linux - General 9 10-27-2003 09:24 AM
swap space wdavidson Linux - General 5 07-11-2003 03:24 PM


All times are GMT -5. The time now is 11:43 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration