Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Swap Chop

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Discussion
View previous topic :: View next topic  
Author Message
heiowge
LXF regular


Joined: Wed Feb 27, 2008 8:21 pm
Posts: 1901
Location: Cheshire, UK

PostPosted: Sun Feb 17, 2013 12:35 pm    Post subject: Swap Chop Reply with quote

I have 2 main machines. The basic specs of both are listed in my signature. What I want to know is... Do I really need a Swap partition on either? If so, will altering the swappiness help, and what is better for me, more swappiness or less?

Thanks

Swap partitions are 4GB and 1GB I think...
_________________
i5 4440 3.1Ghz, Asus H87M-E motherboard, 8GB DDR3, 2GB DDR5 nVidia card, 2x500GB Seagate hd, Coolermaster 750W PSU running Mint 16 MATE and Win7

eeepc 1015PX, 1.66 Ghz Intel atom processor, 2 GB DDR3, 320 GB hd, Mint 14 MATE. Fan needs fixing.
Back to top
View user's profile Send private message
towy71
Moderator


Joined: Wed Apr 06, 2005 3:11 pm
Posts: 4257
Location: wild West Wales

PostPosted: Sun Feb 17, 2013 1:15 pm    Post subject: Reply with quote

A swap partition is necessary if you intend to hibernate or suspend either machine, I have 2Gb ram and 4Gb swap on my desktop and 1 Gb ram with 2Gb on my netbook
_________________
still looking for that door into summer
Back to top
View user's profile Send private message
heiowge
LXF regular


Joined: Wed Feb 27, 2008 8:21 pm
Posts: 1901
Location: Cheshire, UK

PostPosted: Sun Feb 17, 2013 3:04 pm    Post subject: Reply with quote

Then that would be a no. I only ever shut down, restart or log out.
_________________
i5 4440 3.1Ghz, Asus H87M-E motherboard, 8GB DDR3, 2GB DDR5 nVidia card, 2x500GB Seagate hd, Coolermaster 750W PSU running Mint 16 MATE and Win7

eeepc 1015PX, 1.66 Ghz Intel atom processor, 2 GB DDR3, 320 GB hd, Mint 14 MATE. Fan needs fixing.
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8449
Location: Warrington, UK

PostPosted: Sun Feb 17, 2013 3:47 pm    Post subject: Reply with quote

Linux expects to have swap available, even if it doesn't use it, although some services page startup code to swap purely because it is not needed once the service is running.

As to how much you need and how swappy it should be, that depends on what you use the system for.

Code:
free -m


will show how much real and swap memory you are using. Generally a lower swappiness setting gives a more responsive system when there is RAM to spare.

If you are so short of disk space that you are considering repartitioning your drive to reclaim an extra 1GB, you should be more concerned about filesystem fragmentation that swap.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
heiowge
LXF regular


Joined: Wed Feb 27, 2008 8:21 pm
Posts: 1901
Location: Cheshire, UK

PostPosted: Sun Feb 17, 2013 5:30 pm    Post subject: Reply with quote

*****@*****-desktop ~ $ free -m
total used free shared buffers cached
Mem: 14034 7464 6569 0 128 6197
-/+ buffers/cache: 1138 12896
Swap: 3813 0 3813

That surprised me. I had no idea I was using half my RAM! Shocked I'm only running KDE, Firefox, Transmission and konsole.

I'm not worried. I have plenty of space. I was looking to speed up my netbook and (more importantly) my daughter's netbook. I heard a rumour that Swap doesn't help if you've got enough ram. Both netbooks have 2GB RAM, mine DDR3, hers DDR2. I had thought they were using at most about 1.5GB, since that's all my RAM clocks seem to show.
_________________
i5 4440 3.1Ghz, Asus H87M-E motherboard, 8GB DDR3, 2GB DDR5 nVidia card, 2x500GB Seagate hd, Coolermaster 750W PSU running Mint 16 MATE and Win7

eeepc 1015PX, 1.66 Ghz Intel atom processor, 2 GB DDR3, 320 GB hd, Mint 14 MATE. Fan needs fixing.
Back to top
View user's profile Send private message
heiowge
LXF regular


Joined: Wed Feb 27, 2008 8:21 pm
Posts: 1901
Location: Cheshire, UK

PostPosted: Sun Feb 17, 2013 5:40 pm    Post subject: Reply with quote

Hmmm...

Why does the system monitor show a usage of 1.1GB and free -m show about 7 times that? Confused
_________________
i5 4440 3.1Ghz, Asus H87M-E motherboard, 8GB DDR3, 2GB DDR5 nVidia card, 2x500GB Seagate hd, Coolermaster 750W PSU running Mint 16 MATE and Win7

eeepc 1015PX, 1.66 Ghz Intel atom processor, 2 GB DDR3, 320 GB hd, Mint 14 MATE. Fan needs fixing.
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8449
Location: Warrington, UK

PostPosted: Sun Feb 17, 2013 7:12 pm    Post subject: Reply with quote

Buffers and caches, look at the next line in the output of free.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast