On Sunday 12 June 2011 10:46:07 Anton Aylward wrote:
The 'swapon' command will tell me how much swap is being used.
Is there anything that will tell me what is using swap, what programs, processes etc are using it or what the contents of swap is?
If you look in the /proc directory for a process, you will find a virtual file called smaps. This tells you exactly how much a particular process is using in the swap partition. If you only look at the private segments (the ones with a p in the "permissions") then you can exclude shared data I am not aware of a good tool that sums up the values and separates private from non-private though. It doesn't look as though it would be too hard to write, but maybe I'm overlooking something. You're right that ps and top take a too simplistic approach to it Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org