e...@math.uni-bonn.de (Edgar =?iso-8859-1?B?RnXf?=) writes: >Sorry, I was confused by sysstat vm not showing any paging acivity. >Looks like I have some daemons with memory leaks. >I restarted them, but swap usage dropped to 1%, not zero.
Pages are only removed from swap when they are freed or accessed. You can remove a swap area to force the pages back into memory and make sure that enough memory is free before doing that. % swapctl -l Device 1K-blocks Used Avail Capacity Priority /dev/dk4 1048576 86704 961872 8% 0 hoppa% sudo swapctl -U Password: swapctl: removing /dev/dk4 as swap device % sudo swapctl -A swapctl: setting dump device to /dev/dk4 swapctl: adding /dev/dk4 as swap device at priority 0 % swapctl -l Device 1K-blocks Used Avail Capacity Priority /dev/dk4 1048576 0 1048576 0% 0 -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."