Wrong sizes from top (still) with 1.3.42.

Glenn Moloney (glenn@micron.ph.unimelb.edu.au)
Wed, 22 Nov 1995 09:17:13 +1100


Hi all,

Having just upgraded to linux-1.3.42, I noted that top still seems to
be reporting wrong numbers for the SIZE field (by approx a factor of
2). Here is a sample output:

37 processes: 36 sleeping, 1 running, 0 zombie, 0 stopped
CPU states: 5.1% user, 4.2% system, 9.2% nice, 90.8% idle
Mem: 15320K av, 14932K used, 388K free, 13520K shrd, 4164K buff
Swap: 32664K av, 1052K used, 31612K free

PID USER PRI NI SIZE RES SHRD STAT %CPU %MEM TIME COMMAND
1132 glenn 11 15 876 460 292 R N 5.1 3.0 0:01 top
607 root 21 15 7032 1576 720 S N 3.5 10.2 0:19 /usr/bin/X11/X -auth
629 glenn 29 15 2728 1656 884 S N 0.3 10.8 0:11 wish /usr/local/bin/
1061 root 29 15 2416 1268 816 S N 0.3 8.2 0:01 color_xterm -ls
1 root 29 15 796 224 200 S N 0.0 1.4 0:01 init [5]
397 glenn 29 15 1204 572 456 S N 0.0 3.7 0:00 -zsh
141 root 29 15 788 184 160 S N 0.0 1.2 0:00 /sbin/agetty 38400 t
97 root 29 15 800 236 156 S N 0.0 1.5 0:00 /usr/sbin/crond -l10
etc...

The numbers in the RES field are fine, but the SIZE field is out by
about a factor of 2 from those I am used to. However, the way the SIZE
is calculated may have changed and I am unaware of it (eg. counting
shared libs differently, etc.).

cheers,
glenn.

-- 
  Glenn Moloney				glenn@physics.unimelb.edu.au
  School of Physics,			http://www.ph.unimelb.edu.au/~glenn/
  University of Melbourne,		Phone: +61 3 9344 5081
  Parkville, Australia 3052.		Fax:   +61 3 9347 4783