BBS水木清华站∶精华区

发信人: is83120@cis.nctu.edu.tw (Aiken Sam), 看板: Linux 
标  题: Re: top(procps 1.01) 里面的 CPU 总使用率 > 100% ? 
发信站: Dept. of Computer & Information Science, NC (Sun Dec  1 02:08:03 1996) 
转信站: sobee!netnews.ntu!linux2.tpml!UUserv.Net.tw!news.cis.nctu!is83120 
 
ollie@ms1.hinet.net wrote: 
 Aiken Sam (is83120@cis.nctu.edu.tw) wrote: 
 : user,system,nice 明显重覆计算了. 
 : nice 里面显示的数据也不对, 我根本没有 nice > 0 的 proce 
 man top 
 CPU states 
             Shows the percentage of CPU time in user mode, system 
             mode, niced tasks, and idle.  (Niced tasks  are  only 
             those  whose  nice value is negative.)  Time spent in 
             niced tasks will also be counted in system  and  user 
             time,  so the total will be more than 100%.  The pro- 
             cesses and states display may be  toggled  by  the  t 
             interactive command. 
 ollie@ms1.hinet.net 
 
oh... 没注意到! 
这个 CPU states 定义好神奇啊... 
 
一般所谓 nice process 是指 nice > 0 (positive) 
而它却是 nice <= 0 (non-positive) 
 
??? 不过作者最大...  我没意见了. 
 
--- 
Aiken 

BBS水木清华站∶精华区