BusyBox常用命令

top

rk356x_box:/ # busybox top --help
BusyBox v1.34.1 (2022-09-27 07:55:23 UTC) multi-call binary.

Usage: top [-bmH] [-n COUNT] [-d SECONDS]

Show a view of process activity in real time.
Read the status of all processes from /proc each SECONDS
and show a screenful of them.
Keys:
        N/M/P/T: show CPU usage, sort by pid/mem/cpu/time
        S: show memory
        R: reverse sort
        H: toggle threads, 1: toggle SMP
        Q,^C: exit
Options:
        -b      Batch mode
        -n N    Exit after N iterations
        -d SEC  Delay between updates
        -m      Same as 's' key
        -H      Show threads

example:

rk356x_box:/ # busybox top
Mem: 3881248K used, 45688K free, 15392K shrd, 71356K buff, 1001364K cached
CPU: 26.0% usr  6.5% sys  0.0% nic 65.2% idle  0.0% io  0.0% irq  2.1% sirq
Load average: 0.64 0.89 1.03 3/1120 8617
  PID  PPID USER     STAT   VSZ %VSZ CPU %CPU COMMAND
 9787   237 1000     R<   2203m 57.2   3 21.9 {sundray.meeting} com.sundray.meeting
  218     1 1000     S<   10.5g280.1   1  1.8 {[email protected]} /vendor/bin/hw/[email protected]
16054  1021 0        S    21140  0.5   2  1.8 /system/bin/cbox/cq_mira_p2p1
 1759  1472 0        S    18760  0.4   1  1.8 /lgw/sbin/mqtt_forward
 8617  8000 0        R     2132  0.0   0  1.8 busybox top
  415     2 0        SW<      0  0.0   1  1.8 [scheduler_threa]
   10     2 0        IW       0  0.0   1  1.8 [rcu_preempt]
 8495     2 0        IW       0  0.0   2  1.8 [kworker/u8:4-wm]
  431   236 1000     S<   15.9g424.4   1  0.0 {Binder:431_3} system_server
  593   236 10035    S    13.6g363.4   2  0.0 {ndroid.systemui} com.android.systemui
  570   236 1002     S    13.5g360.3   1  0.0 {droid.bluetooth} com.android.bluetooth
  236     1 0        S    13.4g358.7   2  0.0 {main} zygote64
  769   236 1073     S    13.2g353.7   0  0.0 {rkstack.process} com.android.networkstack.process
 1439   236 10039    S    13.2g352.8   1  0.0 {ssioncontroller} com.android.permissioncontroller
 1065   236 10040    S    13.2g352.4   0  0.0 {rs.media.module} com.android.providers.media.module
  951   236 10034    S    13.2g351.5   2  0.0 {droid.launcher3} com.android.launcher3
  839   236 1000     S    13.2g351.3   2  0.0 {oid.tv.settings} com.android.tv.settings
 1137   236 1000     S    13.1g348.7   1  0.0 {.update.service} android.rockchip.update.service
  863   236 10038    S    13.1g348.6   1  0.0 {id.ext.services} android.ext.services
 1244   236 10003    S    13.0g347.9   1  0.0 {d.process.media} android.process.media
 1478   236 10007    S    13.0g347.8   1  0.0 {viders.calendar} com.android.providers.calendar
 1639   236 1000     S    13.0g347.4   1  0.0 {tingtest:remote} com.jwipc.xinruimeetingtest:remote
  818   236 1068     S    13.0g347.3   2  0.0 com.android.se
 1092   236 1000     S    13.0g347.3   1  0.0 {ample.changeled} com.example.changeled
 9749   236 1000     S    13.0g347.3   0  0.0 {ndroid.keychain} com.android.keychain
 1645   236 1000     S    13.0g347.1   2  0.0 {ips.mediacenter} com.rockchips.mediacenter

一般使用,可使用h来切换是否按线程名称来显示CPU占用率

telnet

你可能感兴趣的:(BusyBox常用命令)