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
14 hours 48 min ago
17 hours 43 min ago
18 hours 57 min ago
20 hours 21 min ago
21 hours 59 min ago
23 hours 27 min ago
1 day 41 min ago
1 day 16 hours ago
1 day 17 hours ago
1 day 21 hours ago