檢視程序啟用了多少執行緒
阿新 • • 發佈:2018-12-12
命令
top -Hp 1647 -n1 -b | wc -l
[email protected]:~# top -Hp 1647 -n1 -b | wc -l
16
[email protected]:~#
[email protected]:~# top top - 20:21:52 up 1 day, 47 min, 2 users, load average: 0.20, 0.49, 0.56 Tasks: 183 total, 1 running, 182 sleeping, 0 stopped, 0 zombie %Cpu(s): 4.1 us, 3.7 sy, 0.0 ni, 91.5 id, 0.0 wa, 0.0 hi, 0.7 si, 0.0 st KiB Mem : 997616 total, 99868 free, 433688 used, 464060 buff/cache KiB Swap: 998396 total, 947440 free, 50956 used. 353284 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1647 root 20 0 349088 171220 18184 S 3.0 17.2 36:12.62 kube-apiserver 2949 root 20 0 557108 42224 11864 S 3.0 4.2 30:26.61 kubelet 1710 root 20 0 124648 35988 10648 S 2.7 3.6 30:31.54 kube-controller 2181 root 20 0 42252 11848 2492 S 2.0 1.2 22:29.48 calico-felix 1560 root 20 0 10.166g 53456 7820 S 1.7 5.4 15:37.28 etcd 1767 root 20 0 50224 14212 3976 S 1.3 1.4 13:28.49 kube-scheduler 57291 root 20 0 0 0 0 S 1.0 0.0 0:00.12 kworker/u256:0 400 root 20 0 116248 3624 2924 S 0.3 0.4 1:33.42 vmtoolsd 673 syslog 20 0 256392 3228 1816 S 0.3 0.3 0:58.83 rsyslogd 968 root 20 0 667496 32220 9032 S 0.3 3.2 7:13.98 dockerd 2183 root 20 0 740 0 0 S 0.3 0.0 0:27.60 bird6 55904 root 20 0 0 0 0 S 0.3 0.0 0:02.11 kworker/0:0 57593 root 20 0 41800 3816 3184 R 0.3 0.4 0:00.04 top 1 root 20 0 37784 5076 3540 S 0.0 0.5 0:06.41 systemd 2 root 20 0 0 0 0 S 0.0 0.0 0:00.01 kthreadd 3 root 20 0 0 0 0 S 0.0 0.0 0:25.41 ksoftirqd/0 5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H 7 root 20 0 0 0 0 S 0.0 0.0 0:30.10 rcu_sched 8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh 9 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migration/0 10 root rt 0 0 0 0 S 0.0 0.0 0:00.43 watchdog/0 11 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs 12 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 netns 13 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 perf 14 root 20 0 0 0 0 S 0.0 0.0 0:00.12 khungtaskd 15 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 writeback 16 root 25 5 0 0 0 S 0.0 0.0 0:00.00 ksmd 17 root 39 19 0 0 0 S 0.0 0.0 0:01.98 khugepaged 18 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 crypto 19 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kintegrityd