Sorry for not replying for a while. I was quite busy the last couple of days.
Quote:
Originally Posted by bajodel
So.. MrM ..how things are going ?
Is swap devouring your expensive server ?
|
I do believe, that swap usage has stopped increasing ever since I changed swappines to 0. I have also not observed any adverse effects of this change.
Quote:
Originally Posted by bajodel
(in case) ..i think it should stop growing.. at least.
No reboot is required.
But ..if you want to test the 'trend' from the initial status (low swap) you can:
# echo "0" > /proc/sys/vm/swappiness (mod swappiness behaviour)
# sync (recommended before drop cached memory)
# echo "3" > /proc/sys/vm/drop_caches (drop chached memory)
# swapoff -a (disable swap)
# swapon -a (re-enable swap)
It's heavy to swallow for your server  ..but i think it's (quite) equivalent to rebooting. At worst you can cron that in a script :-) if you cannot find a solution 
|
I will now try this, to clear the swap without having to reboot, and cross my fingers it doesn't start growing again.

I'll also make the swappines change permanent, by setting vm.swappiness=0 in /etc/sysctl.conf.
Quote:
Originally Posted by bajodel
For 'top' the default view is kb (when not explicit) ..in your case is surely mb .. but consider:
p: SWAP -- Swapped size (kb)
The swapped out portion of a taskâs total virtual memory image.
o: VIRT -- Virtual Image (kb)
The total amount of virtual memory used by the task. It includes
all code, data and shared libraries plus pages that have been
swapped out.
VIRT = SWAP + RES.
q: RES -- Resident size (kb)
The non-swapped physical memory a task has used.
RES = CODE + DATA.
|
I'm not sure I entirely understand this. So, is 270MB per apache process normal?
Thank you very much for taking the time to help me solve this problem, bajodel. It appears, for now, that the swappiness setting did the trick. I would never have figured this out on my own.
Recent comments
8 hours 14 min ago
11 hours 10 min ago
12 hours 23 min ago
13 hours 47 min ago
15 hours 25 min ago
16 hours 53 min ago
18 hours 7 min ago
1 day 10 hours ago
1 day 10 hours ago
1 day 14 hours ago