我正在粘贴我在 SuperUser/Unix & Linux Stack 帮助中学到的命令。这是一个常见的报告吗?我确实发现内存是响应式且可用的,但 conky 报告仅在引导和加载终端后读取了大约 9%。现在在同一点,几分钟后,conky 说 98%。
我正在使用 Firefox,添加了我在 Chrome 上使用的扩展程序,很快我就注意到了变化。现在,即使在启动 Firefox 或 Chrome 之前,内存计量器也会达到 100%。另外我很好奇Chrome浏览器的巨大储备,这是否正常。谢谢你。
$ smem --realmem=16G --system --percent
Area Used Cache Noncache
firmware/hardware 2.11% 0.00% 2.11%
kernel image 0.00% 0.00% 0.00%
kernel dynamic memory 85.85% 83.77% 2.08%
userspace memory 6.94% 1.76% 5.18%
free memory 5.10% 5.10% 0.00%
更新:“匿名”的好奇输出
$ smem -wkmr | head -n 10
Map PIDs AVGPSS PSS <anonymous> 94 13.0M 1.2G [heap] 66 4.3M 282.8M /opt/google/chrome/chrome 27 5.2M 140.1M /dev/nvidiactl 3 14.6M 43.9M /usr/lib/x86_64-linux-gnu/libwebkit2gtk- 7 2.0M 14.0M /usr/lib/x86_64-linux-gnu/libnvidia-glco 3 4.1M 12.3M /home/jess/.config/google-chrome/Default 1 8.9M 8.9M /SYSV00000000 6 1.5M 8.8M /home/jess/.config/google-chrome/PepperF 23 371.0K 8.3M
$ ps auxf | awk '{print $6/1024 " MB\t\t" $11}' | sort -n
0 MB \_
### ... 143 identical lines omitted ... ###
0 MB COMMAND
0 MB [kthreadd]
0.105469 MB /usr/lib/epson-backend/ecbd
0.3125 MB \_
0.316406 MB \_
0.777344 MB /usr/sbin/acpid
0.855469 MB \_
1.37891 MB \_
1.47266 MB /usr/bin/nvidia-persistenced
1.57031 MB /sbin/lvmetad
1.97266 MB /usr/sbin/atd
2.29297 MB /usr/sbin/kerneloops
2.38672 MB /usr/sbin/cpufreqd
2.40234 MB /usr/sbin/kerneloops
2.59375 MB /usr/sbin/cron
2.67969 MB /usr/lib/rtkit/rtkit-daemon
2.95703 MB \_
### ... skipping 90 lines ... ###
10.8828 MB /usr/sbin/cups-browsed
11.0391 MB /usr/bin/whoopsie
11.9883 MB /usr/lib/udisks2/udisksd
12.375 MB /usr/sbin/nmbd
14.1445 MB /usr/lib/x86_64-linux-gnu/colord
14.3398 MB \_
15.2109 MB |
15.2969 MB /usr/sbin/NetworkManager
15.4727 MB \_
15.7344 MB /usr/lib/ibus/ibus-x11
16.2031 MB |
16.4297 MB |
16.6094 MB |
16.8789 MB /usr/bin/python3
17.2031 MB \_
17.4102 MB |
17.4375 MB /usr/lib/ibus/ibus-x11
17.543 MB \_
18.1094 MB \_
18.1133 MB |
18.1367 MB /usr/bin/python3
18.457 MB |
18.668 MB /usr/lib/fwupd/fwupd
18.8164 MB \_
19.043 MB \_
19.5352 MB \_
20.3633 MB \_
20.8047 MB /usr/sbin/smbd
20.8086 MB |
22.3086 MB /usr/lib/snapd/snapd
22.3828 MB \_
25.9102 MB \_
26.0078 MB /lib/systemd/systemd-journald
37.0781 MB /usr/lib/packagekit/packagekitd
37.8789 MB \_
39.6094 MB \_
40.3398 MB \_
40.5273 MB |
42.332 MB \_
43.9883 MB \_
48.4648 MB \_
50.5547 MB \_
51.5938 MB \_
62.5781 MB \_
66.8633 MB |
107.23 MB \_
204.27 MB |
231.957 MB \_
感谢所有帮助过的人。答案很简单。我已经更改了 conky 脚本参数,例如在
.conkyrc
:中进行重置,no_buffers = true
修复了该问题。我错误地认为这与缓冲 conky 在间隔期间使用的数据有关(?)...谢谢。