[CentOS] swapping on centos 5.1

Johnny Hughes johnny at centos.org
Fri Feb 1 09:39:38 UTC 2008


Jerry Geis wrote:
> Hi all,
> 
> I used to use centos 4.5 on an AMD 4800+ with 2GIG ram.
> Now I use centos 5.1 on AMD 6400+ with 4GIG RAM.
> 
> The system responsiveness is different between the two.
> I noticed that centos 5.1 seems to be swapping programs out
> of memory at times resulting in slowness (perceived by me).
> 
> I played with swappiness (/proc/sys/vm/) setting to 10, then 1 then 0.
> Still resulted in the same perceived slowness.
> Today I did swapoff -a and now the system obviously does not swap
> anything out all all. I thought thats what swappiness of 0 would have done.
> 
> Are others experiencing this also? The perceived slowness maks the older
> system with less RAM and slower CPU "seem" faster.
> 
> Any suggestions on other things to try?

When you reset swappiness, how did you do it.

The way that I have had the most luck in is editing /etc/sysctl.conf and 
  adding:

vm.swappiness=10

(or in your case, 0)

and then:

sysctl -p /etc/sysctrl.conf

You would need to then make the things already swapped out come back 
(will happen over time) .. but rebooting is easier and faster.

That should work ... but will not prevent all swapping.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos/attachments/20080201/1770fa84/attachment.sig>


More information about the CentOS mailing list