Re: swapping on centos 5.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



you can also flush the swap with a swapoff -a wait till it flushes then swapon -a

Johnny Hughes wrote:
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.


------------------------------------------------------------------------

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

--
Registered Microsoft Partner

My "Foundation" verse:
Isa 54:17
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux