lkml.org 
[lkml]   [2007]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: top lies ?
On Tue, 13 Nov 2007, Andreas Schwab wrote:

> Tomasz Kłoczko <kloczek@rudy.mif.pg.gda.pl> writes:
>
>> Some data showed by top command looks like completly trashed.
>> Fragment from top output:
>>
>> Mem: 2075784k total, 2053352k used, 22432k free, 19260k buffers
>> Swap: 2096472k total, 136k used, 2096336k free, 1335080k cached
>>
>> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ SWAP nFLT WCHAN COMMAND
>> 14515 mysql 20 0 1837m 563m 4132 S 39 27.8 27:14.20 1.2g 18 - mysqld
>>
>> How it is possible that swap ussage is 136k and swapped out portion of (in
>> this case) mysqld process is 1.2g ?
>
> SWAP is just VIRT - RES. It means that 1.2g of the allocated virtual
> address space is not resident, but it does not mean that all of it is
> written to the swap space, it can also be part of a file based mapping.

OK but where I can find per process data about number of
pages/amout of memory in swap ?

kloczek
--
-----------------------------------------------------------
*Ludzie nie mają problemów, tylko sobie sami je stwarzają*
-----------------------------------------------------------
Tomasz Kłoczko, sys adm @zie.pg.gda.pl|*e-mail: kloczek@rudy.mif.pg.gda.pl*
\
 
 \ /
  Last update: 2007-11-13 03:25    [W:5.436 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site