[ previous ] [ next ] [ threads ]
 
 From:  "Instigater" <bloo at sveiks dot lv>
 To:  "M0n0wall" <m0n0wall at lists dot m0n0 dot ch>
 Subject:  top
 Date:  Mon, 19 Apr 2004 17:58:04 +0300
Why do we not see CPU states while executing top command?
Example shown:
----------------------
BSD 4.7:
last pid:   780;  load averages:  0.38,  0.31,  0.27    up 9+03:07:37
16:58:58
15 processes:  3 running, 12 sleeping
CPU states:  2.4% user,  0.0% nice, 21.5% system, 15.6% interrupt, 60.5%
idle
Mem: 5828K Active, 4720K Inact, 5276K Wired, 4K Cache, 6528K Buf, 13M Free
Swap:

  PID USERNAME PRI NICE  SIZE    RES STATE    TIME   WCPU    CPU COMMAND
   65 root      33   0  1524K  1140K RUN     61.5H 20.21% 20.21% natd
  780 root      28   0  1868K  1148K RUN      0:01  0.05%  0.05% top
   83 root       2   0   936K   652K select   0:17  0.00%  0.00% syslogd
   92 root      10   0   988K   708K nanslp   0:11  0.00%  0.00% cron
   14 root      10   0  3292K  2628K mfsidl   0:04  0.00%  0.00% mount_mfs
   94 root       2   0  2320K  1756K select   0:03  0.00%  0.00% sshd
   24 root      10   0  3292K  1192K mfsidl   0:01  0.00%  0.00% mount_mfs
  778 root      28   0  2460K  2004K RUN      0:01  0.00%  0.00% sshd
   44 root       2   0   448K   332K select   0:00  0.00%  0.00% pccardd
  779 root      10   0  1076K   856K wait     0:00  0.00%  0.00% bash
  102 root       3   0   948K   648K ttyin    0:00  0.00%  0.00% getty
  101 root       3   0   948K   648K ttyin    0:00  0.00%  0.00% getty
  103 root       3   0   948K   648K ttyin    0:00  0.00%  0.00% getty
  104 root       3   0   948K   648K ttyin    0:00  0.00%  0.00% getty
   90 root       2   0  1052K   616K select   0:00  0.00%  0.00% inetd

----------------------
m0n0wall:
last pid:   502;  load averages:  0.01,  0.04,  0.01  up 2+04:53:07
17:52:54
13 processes:  1 running, 11 sleeping, 1 zombie

Mem: 4152K Active, 3544K Inact, 4364K Wired, 3520K Buf, 5196K Free
Swap:


  PID USERNAME PRI NICE  SIZE    RES STATE    TIME   WCPU    CPU COMMAND
   72 root      10   0  1448K  1184K nanslp   0:34  0.00%  0.00% ipmon
   87 root       2   0  2500K  1696K select   0:09  0.00%  0.00% snmpd
   77 root       2   0   984K   672K select   0:02  0.00%  0.00% syslogd
   85 nobody     2   0   948K   712K select   0:01  0.00%  0.00% dnsmasq
   80 root       2   0  2240K  1100K select   0:00  0.00%  0.00% mini_httpd
  498 root      -6  10  2404K  2084K piperd   0:00  0.00%  0.00% php
   93 root      10   0  1096K   784K nanslp   0:00  0.00%  0.00% msntp
  501 root      10  10  1324K   828K wait     0:00  0.00%  0.00% sh
  108 root       3   0  1328K   856K ttyin    0:00  0.00%  0.00% sh
   91 root      10   0  1324K   824K wait     0:00  0.00%  0.00% sh
  502 root      55  10  1860K   908K RUN      0:00  0.00%  0.00% top
  500 root      -6   0  2244K  1168K piperd   0:00  0.00%  0.00% mini_httpd
----------------------