lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <jer6iv57d3.fsf@sykes.suse.de>
Date:	Tue, 13 Nov 2007 01:14:48 +0100
From:	Andreas Schwab <schwab@...e.de>
To:	Tomasz Kłoczko <kloczek@...y.mif.pg.gda.pl>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: top lies ?

Tomasz Kłoczko <kloczek@...y.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@...e.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."
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ