[wq@centos-master ~]$ free total used free shared buff/cache available Mem: 3826180 875564 168820 2852 2781796 2661944 Swap: 0 0 0
[wq@centos-master ~]$ ps auxw | head -1;ps auxw|sort -rn -k4|head -5 USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 646 0.2 3.8 367684 145444 ? Ss Jan15 124:34 /usr/lib/systemd/systemd-journald root 3849011 0.3 2.6 2195772 101060 ? Sl Feb05 94:56 /usr/local/erlang/lib/erlang/erts-11.0/bin/beam.smp -W w -K true -A 64 -MBas ageffcbf -MHas ageffcbf -MBlmbcs 512 -MHlmbcs 512 -MMmcs 30 -P 1048576 -t 5000000 -stbt db -zdbbl 128000 -B i -- -root /usr/local/erlang/lib/erlang -progname erl -- -home /root -- -pa -noshell -noinput -s rabbit boot -boot start_sasl -lager crash_log false -lager handlers [] start -noshell -noinput root 1248 0.9 2.0 1875736 79492 ? Ssl Jan15 520:19 /usr/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --config=/var/lib/kubelet/config.yaml --network-plugin=cni --pod-infra-container-image=registry.aliyuncs.com/google_containers/pause:3.6 --fail-swap-on=false root 1861 0.3 1.9 1386060 72876 ? Ssl Jan15 171:54 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock root 1046 0.1 0.9 506660 38148 ? Ssl Jan15 80:07 /usr/libexec/platform-python -Es /usr/sbin/tuned -l -P
[wq@centos-master ~]$ ps auxw|head -1;ps auxw|sort -rn -k3|head -3 USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1248 0.9 2.0 1875736 79492 ? Ssl Jan15 520:19 /usr/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --config=/var/lib/kubelet/config.yaml --network-plugin=cni --pod-infra-container-image=registry.aliyuncs.com/google_containers/pause:3.6 --fail-swap-on=false root 3849011 0.3 2.6 2195772 101060 ? Sl Feb05 94:56 /usr/local/erlang/lib/erlang/erts-11.0/bin/beam.smp -W w -K true -A 64 -MBas ageffcbf -MHas ageffcbf -MBlmbcs 512 -MHlmbcs 512 -MMmcs 30 -P 1048576 -t 5000000 -stbt db -zdbbl 128000 -B i -- -root /usr/local/erlang/lib/erlang -progname erl -- -home /root -- -pa -noshell -noinput -s rabbit boot -boot start_sasl -lager crash_log false -lager handlers [] start -noshell -noinput root 2258203 0.3 0.4 513232 16844 ? Sl Jan19 174:53 barad_agent
top - 19:33:29 up 37 days, 23:47, 19 users, load average: 0.15, 0.09, 0.03 Tasks: 207 total, 3 running, 204 sleeping, 0 stopped, 0 zombie %Cpu(s): 9.2 us, 2.8 sy, 0.0 ni, 86.8 id, 0.8 wa, 0.3 hi, 0.0 si, 0.0 st MiB Mem : 3736.5 total, 138.8 free, 846.9 used, 2750.8 buff/cache MiB Swap: 0.0 total, 0.0 free, 0.0 used. 2607.6 avail Mem 3 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_gp 1977723 root 20 0 833820 77536 60980 S 13.0 2.0 0:00.39 kube-apiserver 1861 root 20 0 1386060 72876 9348 S 1.7 1.9 171:55.14 dockerd 1248 root 20 0 1875736 79492 21216 S 1.3 2.1 520:20.16 kubelet 1 root 20 0 239836 11020 7700 S 0.3 0.3 10:15.19 systemd 646 root 20 0 367684 146484 46568 S 0.3 3.8 124:34.46 systemd-journal 1046 root 20 0 506660 38148 12168 S 0.3 1.0 80:07.84 tuned 1249 root 20 0 1036564 33492 31668 S 0.3 0.9 87:42.84 rsyslogd 4394 root 20 0 755060 26516 5488 S 0.3 0.7 112:02.72 kube-scheduler 1771965 root 20 0 24576 8916 5940 S 0.3 0.2 0:28.50 tat_agent 1879727 zl 20 0 90604 9296 7780 S 0.3 0.2 0:00.78 systemd 1905034 yl 20 0 90520 9424 7928 S 0.3 0.2 0:00.59 systemd 1916211 xl 20 0 90592 9412 7908 S 0.3 0.2 0:00.55 systemd 1974748 root 20 0 0 0 0 I 0.3 0.0 0:00.03 kworker/u4:3-events_unbound 3849011 root 20 0 2195772 101060 7716 S 0.3 2.6 94:57.28 beam.smp 2 root 20 0 0 0 0 S 0.0 0.0 0:01.06 kthreadd 3 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_gp 4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_par_gp 6 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kworker/0:0H-events_highpri 9 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mm_percpu_wq 10 root 20 0 0 0 0 S 0.0 0.0 2:06.35 ksoftirqd/0 11 root 20 0 0 0 0 I 0.0 0.0 17:56.14 rcu_sched 12 root rt 0 0 0 0 S 0.0 0.0 0:10.74 migration/0 13 root rt 0 0 0 0 S 0.0 0.0 0:00.17 watchdog/0 14 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/0 15 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/1 16 root rt 0 0 0 0 S 0.0 0.0 0:01.36 watchdog/1 17 root rt 0 0 0 0 S 0.0 0.0 0:10.72 migration/1 18 root 20 0 0 0 0 S 0.0 0.0 2:22.01 ksoftirqd/1 20 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kworker/1:0H-events_highpri
PID | 进程ID |
USER | 用户名 |
PR | 优先级 |
NI | 负值表示高优先级,正值表示低优先级 |
VIRT | 虚拟内存 |
RES | 真实内存 |
SHR | 共享内存 |
S | 进程状态 D=不可中断的睡眠状态; R=运⾏; S=睡眠 ;T=跟踪/停⽌; Z=僵⼫进程 |
top -d 2
top -c
top -p 12345 -p 6789
top -d 2 -c -p 123456