ตรวจสอบการใช้งาน RAM ของโปรเซสด้วย ps_mem
ตรวจสอบการใช้งาน RAM ของโปรเซสด้วย ps_mem arnut Thu, 02/14/2019 - 21:20ก่อนอื่นให้ทำการติดตั้งแพ็กเกจ ps_mem
[root@logs01 ~]# yum install -y ps_mem
ทดสอบใช้งาน
[root@logs01 ~]# ps_mem
Private + Shared = RAM used Program
156.0 KiB + 36.5 KiB = 192.5 KiB agetty
300.0 KiB + 98.0 KiB = 398.0 KiB anacron
284.0 KiB + 237.5 KiB = 521.5 KiB mysqld_safe
536.0 KiB + 100.0 KiB = 636.0 KiB auditd
668.0 KiB + 60.0 KiB = 728.0 KiB crond
812.0 KiB + 63.5 KiB = 875.5 KiB systemd-logind
808.0 KiB + 106.5 KiB = 914.5 KiB systemd-udevd
900.0 KiB + 75.0 KiB = 975.0 KiB dbus-daemon
884.0 KiB + 98.0 KiB = 982.0 KiB ntpd
892.0 KiB + 96.5 KiB = 988.5 KiB vi
896.0 KiB + 252.5 KiB = 1.1 MiB wpa_supplicant
696.0 KiB + 454.5 KiB = 1.1 MiB login
1.2 MiB + 123.0 KiB = 1.3 MiB master
916.0 KiB + 655.0 KiB = 1.5 MiB bash (2)
1.2 MiB + 429.5 KiB = 1.6 MiB systemd-journald
1.2 MiB + 414.0 KiB = 1.7 MiB pickup
1.3 MiB + 414.0 KiB = 1.7 MiB qmgr
2.0 MiB + 534.0 KiB = 2.5 MiB rsyslogd
2.4 MiB + 147.0 KiB = 2.6 MiB lvmetad
2.5 MiB + 135.5 KiB = 2.6 MiB systemd
2.8 MiB + 1.4 MiB = 4.2 MiB sshd (2)
4.4 MiB + 1.1 MiB = 5.4 MiB NetworkManager
6.4 MiB + 35.5 KiB = 6.5 MiB docker-containerd
7.3 MiB + 547.5 KiB = 7.9 MiB snmpd
8.6 MiB + 879.5 KiB = 9.5 MiB polkitd
13.1 MiB + 333.5 KiB = 13.4 MiB dhclient
5.7 MiB + 8.9 MiB = 14.5 MiB httpd (6)
13.7 MiB + 1.2 MiB = 14.9 MiB tuned
23.5 MiB + 174.0 KiB = 23.7 MiB docker
113.6 MiB + 204.0 KiB = 113.8 MiB mysqld
---------------------------------
238.6 MiB
=================================
ทดสอบด้วยออปชั่นอื่นๆ
ps_mem -s
ps_mem -w X
- 63 views