primeiro baixe o script
ps_mem.py
:- Código: Selecionar todos
wget http://www.pixelbeat.org/scripts/ps_mem.py
terminado o download, entre na pasta onde se encontra o script e rode o comando:
- Código: Selecionar todos
sudo mv ps_mem.py /usr/local/sbin/
depois disto rode ainda o comando:
- Código: Selecionar todos
sudo chmod 755 /usr/local/sbin/ps_mem.py
pronto, agora é só rodar o comando:
- Código: Selecionar todos
sudo ps_mem.py
e você virá:
- Código: Selecionar todos
[[email protected] ~]$ sudo ps_mem.py
[sudo] senha para holmes:
Private + Shared = RAM used Program
364.0 KiB + 95.5 KiB = 459.5 KiB rtkit-daemon
496.0 KiB + 91.5 KiB = 587.5 KiB dbus-launch
616.0 KiB + 57.5 KiB = 673.5 KiB crond
632.0 KiB + 266.0 KiB = 898.0 KiB ssh-agent (2)
864.0 KiB + 55.5 KiB = 919.5 KiB gpg-agent
892.0 KiB + 50.0 KiB = 942.0 KiB systemd-logind
440.0 KiB + 515.5 KiB = 955.5 KiB Xsession
1.0 MiB + 113.0 KiB = 1.1 MiB mount.ntfs
1.0 MiB + 229.5 KiB = 1.2 MiB at-spi2-registryd
1.0 MiB + 260.0 KiB = 1.3 MiB dconf-service (2)
892.0 KiB + 514.0 KiB = 1.4 MiB bash
1.3 MiB + 90.0 KiB = 1.4 MiB bluetoothd
1.2 MiB + 362.0 KiB = 1.6 MiB ntpd
1.3 MiB + 509.0 KiB = 1.8 MiB (sd-pam)
1.6 MiB + 179.0 KiB = 1.8 MiB accounts-daemon
1.7 MiB + 479.5 KiB = 2.1 MiB upowerd
1.7 MiB + 421.0 KiB = 2.2 MiB sudo
1.7 MiB + 456.0 KiB = 2.2 MiB gvfsd-fuse (2)
1.8 MiB + 482.5 KiB = 2.3 MiB xfconfd (3)
2.0 MiB + 428.0 KiB = 2.4 MiB gvfsd-metadata (2)
2.1 MiB + 656.0 KiB = 2.8 MiB gvfsd-trash (2)
2.7 MiB + 119.5 KiB = 2.8 MiB systemd-udevd
2.3 MiB + 526.5 KiB = 2.9 MiB wpa_supplicant
2.4 MiB + 500.0 KiB = 2.9 MiB gvfs-mtp-volume-monitor (3)
2.6 MiB + 855.5 KiB = 3.4 MiB gvfsd (3)
2.5 MiB + 961.0 KiB = 3.5 MiB panel-6-systray
2.7 MiB + 917.5 KiB = 3.6 MiB xfce4-session
2.9 MiB + 876.5 KiB = 3.8 MiB lightdm (2)
2.1 MiB + 1.9 MiB = 4.0 MiB systemd (2)
3.2 MiB + 941.0 KiB = 4.1 MiB xfsettingsd
2.9 MiB + 1.3 MiB = 4.2 MiB gvfs-afc-volume-monitor (3)
4.4 MiB + 304.0 KiB = 4.7 MiB udisksd
4.2 MiB + 856.5 KiB = 5.0 MiB dbus-daemon (7)
4.2 MiB + 1.1 MiB = 5.3 MiB panel-2-actions
4.6 MiB + 775.5 KiB = 5.4 MiB gvfs-gphoto2-volume-monitor (3)
5.4 MiB + 372.5 KiB = 5.8 MiB ModemManager
4.6 MiB + 1.2 MiB = 5.9 MiB xfce4-power-manager
5.6 MiB + 380.0 KiB = 6.0 MiB at-spi-bus-launcher (2)
4.7 MiB + 1.4 MiB = 6.1 MiB xfce4-panel
5.2 MiB + 1.0 MiB = 6.2 MiB pulseaudio
6.3 MiB + 72.0 KiB = 6.3 MiB preload
5.4 MiB + 1.3 MiB = 6.7 MiB xfwm4
6.1 MiB + 1.7 MiB = 7.7 MiB xfce4-terminal
6.2 MiB + 1.9 MiB = 8.0 MiB panel-8-whisker
8.3 MiB + 996.0 KiB = 9.3 MiB NetworkManager
9.7 MiB + 60.0 KiB = 9.8 MiB systemd-journald
7.2 MiB + 2.6 MiB = 9.8 MiB pamac-tray
8.7 MiB + 1.5 MiB = 10.2 MiB gvfs-udisks2-volume-monitor (3)
7.4 MiB + 3.1 MiB = 10.5 MiB pa-applet
7.5 MiB + 3.1 MiB = 10.6 MiB polkit-gnome-authentication-agent-1
8.9 MiB + 3.0 MiB = 12.0 MiB Thunar
11.7 MiB + 314.5 KiB = 12.0 MiB polkitd
12.3 MiB + 1.0 MiB = 13.3 MiB tumblerd
10.9 MiB + 2.9 MiB = 13.9 MiB nm-applet
10.7 MiB + 4.1 MiB = 14.8 MiB xfdesktop
22.4 MiB + 12.0 MiB = 34.4 MiB plugin-container
50.4 MiB + 5.0 MiB = 55.4 MiB Xorg
484.2 MiB + 13.1 MiB = 497.3 MiB palemoon
---------------------------------
858.5 MiB
=================================
[[email protected] ~]$
aí podemos identificar aplicativos que estejam rodando desnecessariamente e vazamentos de memória.
ps: créditos in http://bit.ly/20E7ndV.
vlw fwi, Holmes