°Ô½Ã¹° 1,369°Ç
   
ps_mem - ÇÁ·Î¼¼¼­º° »ç¿ëÇÏ°í ÀÖ´Â ¸Þ¸ð¸®¾çÀ» È®ÀÎÇÏ´Â µµ±¸
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2014-11-21 (±Ý) 16:59 Á¶È¸ : 4578
±ÛÁÖ¼Ò :
                                
ps_mem
ÇÁ·Î¼¼¼­º° »ç¿ëÇÏ°í ÀÖ´Â ¸Þ¸ð¸®¾çÀ» È®ÀÎÇÏ´Â µµ±¸

# yum install -y ps_mem

# ps_mem  -help
ps_mem.py - Show process memory usage

-h                                 Show this help
-w <N>                             Measure and show process memory every N seconds
-p <pid>[,pid2,...pidN]            Only show memory usage PIDs in the specified list
-s, --show-cmdline                 Show cmdline


# free -m
             total       used       free     shared    buffers     cached
Mem:           996        869        126          0         87        290
-/+ buffers/cache:        492        504
Swap:            0          0          0

# ps_mem
 Private  +   Shared  =  RAM used Program 
156.0 KiB +  15.0 KiB = 171.0 KiB mcelog [updated]
408.0 KiB +  35.5 KiB = 443.5 KiB mysqld_safe
440.0 KiB +  43.0 KiB = 483.0 KiB init
484.0 KiB + 123.0 KiB = 607.0 KiB mingetty [updated] (6)
584.0 KiB +  34.5 KiB = 618.5 KiB dbus-daemon
660.0 KiB +  39.5 KiB = 699.5 KiB crond
204.0 KiB + 730.5 KiB = 934.5 KiB udevd (2)
  1.3 MiB + 210.5 KiB =   1.5 MiB bash
  2.8 MiB + 327.0 KiB =   3.1 MiB packagekitd
  3.2 MiB + 692.5 KiB =   3.9 MiB sshd (2)
  5.1 MiB +  61.5 KiB =   5.1 MiB rsyslogd
 45.9 MiB + 259.0 KiB =  46.1 MiB mysqld [updated]
349.6 MiB +  41.4 MiB = 391.0 MiB httpd (21)
---------------------------------
                        454.7 MiB
=================================


:: ¸í·É¾îº° ¸Þ¸ð¸® »ç¿ë·®
# ps_mem -s
 Private  +   Shared  =  RAM used Program 
 80.0 KiB +  20.5 KiB = 100.5 KiB /sbin/mingetty /dev/tty5
 80.0 KiB +  20.5 KiB = 100.5 KiB /sbin/mingetty /dev/tty4
 80.0 KiB +  20.5 KiB = 100.5 KiB /sbin/mingetty /dev/tty6
 80.0 KiB +  20.5 KiB = 100.5 KiB /sbin/mingetty /dev/tty3
 80.0 KiB +  20.5 KiB = 100.5 KiB /sbin/mingetty /dev/tty2
 84.0 KiB +  20.5 KiB = 104.5 KiB /sbin/mingetty /dev/tty1
156.0 KiB +  15.0 KiB = 171.0 KiB /usr/sbin/mcelog --daemon
408.0 KiB +  35.5 KiB = 443.5 KiB /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid --basedir=/usr --user=mysql
440.0 KiB +  43.0 KiB = 483.0 KiB /sbin/init
584.0 KiB +  34.5 KiB = 618.5 KiB dbus-daemon --system
660.0 KiB +  39.5 KiB = 699.5 KiB crond
796.0 KiB + 114.0 KiB = 910.0 KiB /usr/sbin/sshd
204.0 KiB + 730.5 KiB = 934.5 KiB /sbin/udevd -d (2)
  1.4 MiB + 249.5 KiB =   1.6 MiB -bash
  2.5 MiB + 639.5 KiB =   3.1 MiB sshd: root@pts/0 
  5.1 MiB +  61.5 KiB =   5.1 MiB /sbin/rsyslogd -i /var/run/syslogd.pid -c 5
 45.9 MiB + 259.0 KiB =  46.1 MiB /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/lib/mysql/mysql.sock
349.6 MiB +  41.4 MiB = 391.0 MiB /usr/sbin/httpd (21)
---------------------------------
                        451.7 MiB
=================================


:: 2ÃÊ ´ÜÀ§·Î °»½Å
# ps_mem -w 2

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.