Quote:
Originally Posted by MrM
OK, I've changed it to 0.
EDIT: Should the swap usage decrease without rebooting the server? Or will it only stop growing (in case this setting helps)?
|
(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
Quote:
Originally Posted by MrM
.. 270m apache2
.. 270m apache2
.. 270m apache2
I don't think I quite understand the swap column here. What does 270m mean? 270MB? Surely not?!
|
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.
Bye..
bajodel.
Recent comments
15 hours 5 min ago
15 hours 11 min ago
20 hours 9 min ago
1 day 2 hours ago
1 day 3 hours ago
1 day 4 hours ago
1 day 9 hours ago
1 day 15 hours ago
1 day 19 hours ago
1 day 21 hours ago