cpuus

更新时间:
2024-01-09
下载文档

cpuus

查看CPU使用率。

格式

cpuus [-n times] [-t wait_seconds]

说明

[root@sylixos:/root]# help cpuus          
show cpu usage information, wait_seconds max is 10s.
cpuus [-n times] [-t wait_seconds]
[root@sylixos:/root]# 

此命令用于设置CPU使用率的检测次数和检测时间,有 2 种用法:

  • 无参数:表示使用默认值,其中CPU使用率检测次数默认值为 1 次,检测 CPU 使用率所用时间默认值为 1 秒。
  • cpuus – n times – t wait_seconds 命令:times 用于指定检测CPU使用率的次数;wait_seconds 用于指定每次检测用的时间,单位是秒,检测时间不得超过 10 秒。如 top – n 3 – t 4,表示检测 CPU 使用率 3 次,每次检测时间为 4 秒。

备注:
和 top 命令的功能用法相同。

样例

[root@sylixos:/root]# cpuus
CPU usage checking, please wait...
CPU usage show (measurement accuracy 1.0%) >>

       NAME        TID    PID  PRI   CPU   KERN
---------------- ------- ----- --- ------ ------
t_tshell         4010013     0 150   0.0%   0.0%
t_touch          4010012     0 160   0.0%   0.0%
t_xinput         4010010     0 199   0.0%   0.0%
t_telnetd        401000e     0 160   0.0%   0.0%
t_ftpd           401000d     0 160   0.0%   0.0%
t_snmp           401000c     0 110   0.0%   0.0%
t_netproto       401000b     0 110   0.0%   0.0%
t_netjob         401000a     0 110   0.0%   0.0%
t_sync           4010009     0 252   0.0%   0.0%
t_reclaim        4010008     0 253   0.0%   0.0%
t_hotplug        4010006     0 250   0.0%   0.0%
t_power          4010005     0 254   0.0%   0.0%
t_log            4010004     0  60   0.0%   0.0%
t_except         4010003     0   0   0.0%   0.0%
t_isrdefer       4010002     0   0   0.0%   0.0%
t_itimer         4010001     0  20   0.0%   0.0%
t_idle0          4010000     0 255  99.0%   0.0%

[root@sylixos:/root]#

字段说明:

字段说明
NAME线程名
TID线程 ID
PID线程所属进程 ID
PRI线程优先级
CPU线程的CPU利用率
KERN内核利用的CPU利用率
文档内容是否对您有所帮助?
有帮助
没帮助