From: Jarek Poplawski <jarkao2@o2.pl>
To: "Tomasz Kłoczko" <kloczek@rudy.mif.pg.gda.pl>
Cc: linux-kernel@vger.kernel.org
Subject: Re: top lies ?
Date: Mon, 12 Nov 2007 23:28:40 +0100 [thread overview]
Message-ID: <4738D398.8050402@o2.pl> (raw)
In-Reply-To: <Pine.BSO.4.63.0711121843170.3123@rudy.mif.pg.gda.pl>
Tomasz Kłoczko wrote, On 11/12/2007 06:57 PM:
> 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 ?
It seems this bigger SWAP is virtual (not necessarily used yet), something
similar like here:
>From man ps:
"size SZ approximate amount of swap space that would be required if the process were to dirty
all writable pages and then be swapped out. This number is very rough!"
Regards,
Jarek P.
next prev parent reply other threads:[~2007-11-12 22:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-12 17:57 top lies ? Tomasz Kłoczko
2007-11-12 22:28 ` Jarek Poplawski [this message]
2007-11-13 0:14 ` Andreas Schwab
2007-11-13 2:23 ` Tomasz Kłoczko
-- strict thread matches above, loose matches on Subject: below --
2007-11-13 7:08 Al Boldi
2007-11-13 7:19 ` Balbir Singh
2007-11-13 7:38 ` Al Boldi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4738D398.8050402@o2.pl \
--to=jarkao2@o2.pl \
--cc=kloczek@rudy.mif.pg.gda.pl \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox