Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Apr 2001 15:29:50 +0300
From:      =?iso-8859-9?Q?Yavuz_Ma=FElak?= <ymmaslak@hotmail.com>
To:        <questions@FreeBSD.org>
Subject:   top command's usage of cpu
Message-ID:  <OE83eZZfm95LyRkUHgT00000a53@hotmail.com>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_0045_01C0C42E.946B8CF0
Content-Type: text/plain;
	charset="iso-8859-9"
Content-Transfer-Encoding: quoted-printable

hello
I use FreeBSD4.2

When I type "top" in command line right now I see as following;

Why does it use so much cpu ? Certainly afterwards it gets decrease. =20

is this normal  ?

PID USERNAME PRI NICE  SIZE    RES STATE  C   TIME   WCPU    CPU COMMAND
  481 root      49   0  1872K  1124K CPU1   1   0:02 70.73%  6.74% top
  217 nobody    -6   0   844K   448K piperd 1   0:04  0.00%  0.00% =
unlinkd
  221 root       2   0  2256K  1304K select 0   0:02  0.00%  0.00% =
telnetd
  223 root      18   0  1316K   960K pause  0   0:00  0.00%  0.00% csh
  121 root       2   0   920K   632K select 1   0:00  0.00%  0.00% =
syslogd
  149 root       2   0  2484K  1520K select 0   0:00  0.00%  0.00% sshd
  146 root      10   0   964K   744K nanslp 0   0:00  0.00%  0.00% cron
  209 root       3   0  1328K   952K ttyin  0   0:00  0.00%  0.00% csh
  144 root       2   0  1036K   800K select 1   0:00  0.00%  0.00% inetd
  210 root       3   0   928K   636K ttyin  1   0:00  0.00%  0.00% getty
  215 root       3   0   928K   636K ttyin  0   0:00  0.00%  0.00% getty
  212 root       3   0   928K   636K ttyin  1   0:00  0.00%  0.00% getty
  211 root       3   0   928K   636K ttyin  0   0:00  0.00%  0.00% getty
  214 root       3   0   928K   636K ttyin  0   0:00  0.00%  0.00% getty
  213 root       3   0   928K   636K ttyin  1   0:00  0.00%  0.00% getty
  216 root       3   0   928K   636K ttyin  1   0:00  0.00%  0.00% getty
  201 root      10   0   628K   440K wait   1   0:00  0.00%  0.00% sh
  124 daemon     2   0   920K   508K select 0   0:00  0.00%  0.00% =
portmap
   32 root      18   0   208K    92K pause  1   0:00  0.00%  0.00% =
adjkerntz

------=_NextPart_000_0045_01C0C42E.946B8CF0
Content-Type: text/html;
	charset="iso-8859-9"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-9" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>hello</FONT></DIV>
<DIV><FONT face=3D"Arial TUR" size=3D2>I use FreeBSD4.2</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"Arial TUR" size=3D2>When I type "top" in command line =
right now I=20
see as following;</FONT></DIV>
<DIV><FONT face=3D"Arial TUR" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Why does it use so much cpu ? <FONT =
face=3DArial=20
size=3D2>Certainly afterwards it gets decrease.&nbsp; =
</FONT></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>is this normal&nbsp; ?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>PID USERNAME PRI NICE&nbsp; =
SIZE&nbsp;&nbsp;&nbsp;=20
RES STATE&nbsp; C&nbsp;&nbsp; TIME&nbsp;&nbsp; WCPU&nbsp;&nbsp;&nbsp; =
CPU=20
COMMAND</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; 481 =
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
49&nbsp;&nbsp; 0&nbsp; 1872K&nbsp; 1124K CPU1&nbsp;&nbsp; 1&nbsp;&nbsp; =
0:02=20
70.73%&nbsp; 6.74% top<BR>&nbsp; 217 nobody&nbsp;&nbsp;&nbsp; =
-6&nbsp;&nbsp;=20
0&nbsp;&nbsp; 844K&nbsp;&nbsp; 448K piperd 1&nbsp;&nbsp; 0:04&nbsp; =
0.00%&nbsp;=20
0.00% unlinkd<BR>&nbsp; 221 root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
2&nbsp;&nbsp; 0&nbsp; 2256K&nbsp; 1304K select 0&nbsp;&nbsp; 0:02&nbsp;=20
0.00%&nbsp; 0.00% telnetd<BR>&nbsp; 223 =
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
18&nbsp;&nbsp; 0&nbsp; 1316K&nbsp;&nbsp; 960K pause&nbsp; 0&nbsp;&nbsp;=20
0:00&nbsp; 0.00%&nbsp; 0.00% csh<BR>&nbsp; 121=20
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; 0&nbsp;&nbsp;=20
920K&nbsp;&nbsp; 632K select 1&nbsp;&nbsp; 0:00&nbsp; 0.00%&nbsp; 0.00%=20
syslogd<BR>&nbsp; 149 root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
2&nbsp;&nbsp;=20
0&nbsp; 2484K&nbsp; 1520K select 0&nbsp;&nbsp; 0:00&nbsp; 0.00%&nbsp; =
0.00%=20
sshd<BR>&nbsp; 146 root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10&nbsp;&nbsp;=20
0&nbsp;&nbsp; 964K&nbsp;&nbsp; 744K nanslp 0&nbsp;&nbsp; 0:00&nbsp; =
0.00%&nbsp;=20
0.00% cron<BR>&nbsp; 209 root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
3&nbsp;&nbsp;=20
0&nbsp; 1328K&nbsp;&nbsp; 952K ttyin&nbsp; 0&nbsp;&nbsp; 0:00&nbsp; =
0.00%&nbsp;=20
0.00% csh<BR>&nbsp; 144 root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
2&nbsp;&nbsp;=20
0&nbsp; 1036K&nbsp;&nbsp; 800K select 1&nbsp;&nbsp; 0:00&nbsp; =
0.00%&nbsp; 0.00%=20
inetd<BR>&nbsp; 210 root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
3&nbsp;&nbsp;=20
0&nbsp;&nbsp; 928K&nbsp;&nbsp; 636K ttyin&nbsp; 1&nbsp;&nbsp; 0:00&nbsp; =

0.00%&nbsp; 0.00% getty<BR>&nbsp; 215 =
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
3&nbsp;&nbsp; 0&nbsp;&nbsp; 928K&nbsp;&nbsp; 636K ttyin&nbsp; =
0&nbsp;&nbsp;=20
0:00&nbsp; 0.00%&nbsp; 0.00% getty<BR>&nbsp; 212=20
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3&nbsp;&nbsp; 0&nbsp;&nbsp;=20
928K&nbsp;&nbsp; 636K ttyin&nbsp; 1&nbsp;&nbsp; 0:00&nbsp; 0.00%&nbsp; =
0.00%=20
getty<BR>&nbsp; 211 root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
3&nbsp;&nbsp;=20
0&nbsp;&nbsp; 928K&nbsp;&nbsp; 636K ttyin&nbsp; 0&nbsp;&nbsp; 0:00&nbsp; =

0.00%&nbsp; 0.00% getty<BR>&nbsp; 214 =
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
3&nbsp;&nbsp; 0&nbsp;&nbsp; 928K&nbsp;&nbsp; 636K ttyin&nbsp; =
0&nbsp;&nbsp;=20
0:00&nbsp; 0.00%&nbsp; 0.00% getty<BR>&nbsp; 213=20
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3&nbsp;&nbsp; 0&nbsp;&nbsp;=20
928K&nbsp;&nbsp; 636K ttyin&nbsp; 1&nbsp;&nbsp; 0:00&nbsp; 0.00%&nbsp; =
0.00%=20
getty<BR>&nbsp; 216 root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
3&nbsp;&nbsp;=20
0&nbsp;&nbsp; 928K&nbsp;&nbsp; 636K ttyin&nbsp; 1&nbsp;&nbsp; 0:00&nbsp; =

0.00%&nbsp; 0.00% getty<BR>&nbsp; 201 root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

10&nbsp;&nbsp; 0&nbsp;&nbsp; 628K&nbsp;&nbsp; 440K wait&nbsp;&nbsp;=20
1&nbsp;&nbsp; 0:00&nbsp; 0.00%&nbsp; 0.00% sh<BR>&nbsp; 124=20
daemon&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; 0&nbsp;&nbsp; =
920K&nbsp;&nbsp; 508K=20
select 0&nbsp;&nbsp; 0:00&nbsp; 0.00%&nbsp; 0.00% =
portmap<BR>&nbsp;&nbsp; 32=20
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 18&nbsp;&nbsp; 0&nbsp;&nbsp;=20
208K&nbsp;&nbsp;&nbsp; 92K pause&nbsp; 1&nbsp;&nbsp; 0:00&nbsp; =
0.00%&nbsp;=20
0.00% adjkerntz</FONT></DIV></BODY></HTML>

------=_NextPart_000_0045_01C0C42E.946B8CF0--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?OE83eZZfm95LyRkUHgT00000a53>