On 13/06/11 18:56, Anders Johansson wrote:
On Monday 13 June 2011 14:43:08 David Haller wrote:
Hello,
On Mon, 13 Jun 2011, Per Jessen wrote:
jsa wrote:
On 06/12/2011 07:46 AM, 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?
Forgot to add, you can run top in a terminal and then press f followed by p to add a column for swap usage.
Or just swap = virtual - resident.
So:
ps -eo vsz,rss,cmd | awk '{ printf("%10s %s\n", $1 - $2, $3); }'
Nah, that won't work. The virtual size of a process includes everything, even things that haven't been loaded yet, parts of mmap:ed files that have never touched memory, allocated memory that hasn't been used, shared memory that has been mapped into the process address space, shared libraries etc. That calculation will very likely tell you that you are using a million times more swap than you actually have
I'd be interested to know your opinion of the accuracy of ksysguard's memory stats (alt-f2, "System Monitor" under KDE). It seems to be going out of its way to deter people from drawing any conclusions from the classic top metrics (see the What's This help on the column headers: from Virtual Size: "This value in practice means next to nothing"), but I'd like to know if the alternative calculations it provides based on statm (Memory column) and smaps (Detailed Memory Information dialog for a given process are realistic. Due to their high degree of integration and shared components, and top, KDE apps routinely get clobbered by the uninformed for being "bloated", so the ksysguard author has tried to produce a tool that provides accurate stats. Will -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org