ps_mem.py

Written by themagicbanana le 20 may 2014

Je suis tombé il y a peu sur ce petit script Python, très pratique pour savoir combien de mémoire est consommée, et par quel processus :

Téléchargement :

wget https://raw.github.com/pixelb/ps_mem/master/ps_mem.py

Utilisation :

python ps_mem.py 
 Private  +   Shared  =  RAM used	Program

  4.0 KiB +  24.0 KiB =  28.0 KiB	getty
  4.0 KiB +  32.0 KiB =  36.0 KiB	screen
 56.0 KiB +  20.0 KiB =  76.0 KiB	init
  0.0 KiB + 101.0 KiB = 101.0 KiB	udevd (3)
 72.0 KiB +  32.5 KiB = 104.5 KiB	rpcbind
112.0 KiB +  29.5 KiB = 141.5 KiB	cron
116.0 KiB +  35.0 KiB = 151.0 KiB	logger
112.0 KiB +  43.5 KiB = 155.5 KiB	pure-ftpd-mysql
140.0 KiB +  61.5 KiB = 201.5 KiB	master
232.0 KiB +  31.0 KiB = 263.0 KiB	mysqld_safe
220.0 KiB +  73.0 KiB = 293.0 KiB	gam_server
292.0 KiB +  58.0 KiB = 350.0 KiB	ntpd
240.0 KiB + 128.5 KiB = 368.5 KiB	qmgr
472.0 KiB +  40.5 KiB = 512.5 KiB	dbus-daemon
592.0 KiB + 289.0 KiB = 881.0 KiB	polkitd
816.0 KiB + 209.5 KiB =   1.0 MiB	sudo
852.0 KiB + 336.5 KiB =   1.2 MiB	pickup
  1.1 MiB +  85.5 KiB =   1.2 MiB	snmpd
972.0 KiB + 438.0 KiB =   1.4 MiB	console-kit-daemon
  1.5 MiB +  54.5 KiB =   1.6 MiB	rsyslogd
  2.0 MiB +  54.0 KiB =   2.0 MiB	munin-node
  1.1 MiB +   1.7 MiB =   2.9 MiB	sshd (3)
  2.6 MiB + 446.5 KiB =   3.0 MiB	fail2ban-server
  4.4 MiB + 936.0 KiB =   5.3 MiB	bash (3)
214.2 MiB + 459.0 KiB = 214.6 MiB	java
264.6 MiB + 350.5 KiB = 265.0 MiB	mysqld
487.0 MiB +  43.9 MiB = 530.9 MiB	apache2 (18)
---------------------------------
                          1.0 GiB
=================================

Classified in : Linux - Tags : python, ram, linux

Write a comment

What is the second letter of the word uvwkqy? :