From: Andreas Schwab <schwab@suse.de>
To: "Tomasz Kłoczko" <kloczek@rudy.mif.pg.gda.pl>
Cc: linux-kernel@vger.kernel.org
Subject: Re: top lies ?
Date: Tue, 13 Nov 2007 01:14:48 +0100 [thread overview]
Message-ID: <jer6iv57d3.fsf@sykes.suse.de> (raw)
In-Reply-To: <Pine.BSO.4.63.0711121843170.3123@rudy.mif.pg.gda.pl> ("Tomasz Kłoczko"'s message of "Mon\, 12 Nov 2007 18\:57\:39 +0100 \(CET\)")
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.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2007-11-13 0:15 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
2007-11-13 0:14 ` Andreas Schwab [this message]
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=jer6iv57d3.fsf@sykes.suse.de \
--to=schwab@suse.de \
--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