Your message dated Mon, 28 Nov 2011 10:17:04 +1100
with message-id <[email protected]>
and subject line Re: Bug#650163: top showes wrong Swap size
has caused the Debian Bug report #650163,
regarding top showes wrong Swap size
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
650163: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=650163
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: procps

top - 12:44:29 up 14 days, 23:49,  2 users,  load average: 1.09, 1.24, 1.32
Tasks: 122 total,   3 running, 119 sleeping,   0 stopped,   0 zombie
Cpu(s):  6.0%us, 25.8%sy,  0.0%ni, 54.5%id, 12.0%wa,  0.3%hi,  1.3%si,  0.0%st
Mem:   3114824k total,  3032880k used,    81944k free,    35496k buffers
Swap:  1951888k total,        0k used,  1951888k free,  2772680k cached

  PID USER      VIRT  RES  SHR S %CPU %MEM    TIME+  SWAP CODE DATA COMMAND    
  960 root      125m 3512  532 S  0.7  0.1  28:25.05 121m   28 123m mhddfs      
15416 privoxy  46308 2344 1068 S  0.0  0.1   0:40.25  42m  244  42m privoxy     
  954 root     44196 1368  496 S  0.0  0.0   4:31.89  41m   28  41m mhddfs      
 2468 dimka    57480  19m 6548 S  0.3  0.7  51:46.90  36m 1104  13m rtorrent    
 1816 bind     95300  59m 1520 S  0.0  1.9   4:47.30  33m  472  81m named       
 2489 dimka    52240  24m 2504 S  0.0  0.8  20:28.88  26m 2984  38m mlnet       
 2304 root     16580  996  284 S  0.0  0.0   0:00.00  15m 8940 1156 smbd        
 2297 root     16580 1916 1184 S  0.0  0.1   1:28.06  14m 8940 1156 smbd        
17168 dimka    17040 3272 2464 S  0.3  0.1   0:00.62  13m 8940 1240 smbd        
 1860 root     14732 1036  708 S  0.0  0.0   0:26.86  13m  212  10m automount   
17169 root     16940 3404 2600 S  0.0  0.1   0:00.16  13m 8940 1220 smbd


You can see that it showes 0k swap used but one process uses 121m, the
other - 42m, etc.

-- 

. ''`.                               Dmitry E. Oboukhov
: :’  :   email: [email protected] jabber://[email protected]
`. `~’              GPGKey: 1024D / F8E26537 2006-11-21
  `- 1B23 D4F8 8EC0 D902 0555  E438 AB8C 00CF F8E2 6537

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
On Sun, Nov 27, 2011 at 12:47:55PM +0400, Dmitry E. Oboukhov wrote:
> Swap:  1951888k total,        0k used,  1951888k free,  2772680k cached
[...]
>   960 root      125m 3512  532 S  0.7  0.1  28:25.05 121m   28 123m mhddfs    
>   
Swap is not swap.
The top line comes from /proc/meminfo and is the real figure for swap.
The line for a process comes from VmSwap out of /proc/<pid>/status

You can have a figure for SWAP in process lines even with no swap on the
device.

It's wierd, but it is how top has worked for years. It was reported in
October 2003 [1] which has a link to an explanation.[2]

 - Craig
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=217841
[2] http://www.gossamer-threads.com/lists/linux/kernel/998182?page=last
-- 
Craig Small VK2XLZ   http://enc.com.au/          csmall at : enc.com.au
Debian GNU/Linux     http://www.debian.org/      csmall at : debian.org
old fingerprint:     1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
NEW fingerprint:     5D2F B320 B825 D939 04D2  0519 3938 F96B DF50 FEA5


--- End Message ---

Reply via email to