一、内存查看命令
free -m
效果:
total used free shared buff/cache available
Mem: 3700668 452364 514852 48072 2733452 2945176
Swap: 7832572 3056 7829516
二、内存及cpu查看:
top
效果:
top - 10:45:09 up 12:33, 2 users, load average: 0.42, 0.30, 0.26
Tasks: 171 total, 1 running, 170 sleeping, 0 stopped, 0 zombie
%Cpu(s): 1.5 us, 0.5 sy, 0.0 ni, 97.3 id, 0.7 wa, 0.0 hi, 0.1 si, 0.0 st
KiB Mem : 3700668 total, 413088 free, 452140 used, 2835440 buff/cache
KiB Swap: 7832572 total, 7829516 free, 3056 used. 2923596 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3592 user 20 0 2379960 121024 1448 S 9.3 3.3 132:38.74 utserver
454 avahi 20 0 47144 1608 1188 S 0.3 0.0 0:22.65 avahi-daemon
6750 user 20 0 46676 3540 2848 R 0.3 0.1 0:00.40 top
1 root 20 0 204832 4476 2936 S 0.0 0.1 0:02.02 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.02 kthreadd
3 root 20 0 0 0 0 S 0.0 0.0 0:08.58 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:14.02 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 0 -20 0 0 0 S 0.0 0.0 0:00.00 lru-add-drain
11 root rt 0 0 0 0 S 0.0 0.0 0:00.10 watchdog/0
12 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/0
13 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/1
14 root rt 0 0 0 0 S 0.0 0.0 0:00.10 watchdog/1
15 root rt 0 0 0 0 S 0.0 0.0 0:00.01 migration/1
16 root 20 0 0 0 0 S 0.0 0.0 0:00.15 ksoftirqd/1
18 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/1:0H
19 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/2
20 root rt 0 0 0 0 S 0.0 0.0 0:00.10 watchdog/2
21 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migration/2
22 root 20 0 0 0 0 S 0.0 0.0 0:00.23 ksoftirqd/2
24 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/2:0H
25 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/3
26 root rt 0 0 0 0 S 0.0 0.0 0:00.08 watchdog/3
27 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migration/3
28 root 20 0 0 0 0 S 0.0 0.0 0:00.22 ksoftirqd/3
30 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/3:0H
31 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs
32 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 netns
33 root 20 0 0 0 0 S 0.0 0.0 0:00.06 khungtaskd
34 root 20 0 0 0 0 S 0.0 0.0 0:00.00 oom_reaper
35 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 writeback
36 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kcompactd0
38 root 25 5 0 0 0 S 0.0 0.0 0:00.00 ksmd
39 root 39 19 0 0 0 S 0.0 0.0 0:00.00 khugepaged
40 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 crypto
41 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kintegrityd
42 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 bioset
43 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kblockd
46 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 devfreq_wq
47 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 watchdogd
网友评论