2009/03/15

プロセスごとのメモリ使用量を調べる

とりあえずこれで一覧がでる
RSSがメモリ使用量(KB)

$ ps alx


でもこれだと見にくいのでごにょごにょする

$ ps alxwO r | awk '{ print $3"\t"$8"\t"$13 }'


ちなみにFedoracubeの起動直後は以下(rev388 相当)
terminalとgnome-power-manager、nm-appletでかいなぁ
試しにxterm起動してみたら5136KBだった、消すかなterminal



PID RSS COMMAND
2 0 [kthreadd]
3 0 [migration/0]
4 0 [ksoftirqd/0]
5 0 [watchdog/0]
6 0 [migration/1]
7 0 [ksoftirqd/1]
8 0 [watchdog/1]
9 0 [events/0]
10 0 [events/1]
11 0 [khelper]
85 0 [kintegrityd/0]
86 0 [kintegrityd/1]
88 0 [kblockd/0]
89 0 [kblockd/1]
91 0 [kacpid]
92 0 [kacpi_notify]
169 0 [cqueue]
173 0 [ata/0]
174 0 [ata/1]
175 0 [ata_aux]
177 0 [ksuspend_usbd]
182 0 [khubd]
185 0 [kseriod]
235 0 [pdflush]
236 0 [pdflush]
237 0 [kswapd0]
285 0 [aio/0]
286 0 [aio/1]
486 0 [scsi_eh_0]
489 0 [scsi_eh_1]
562 0 [kpsmoused]
573 0 [kstriped]
576 0 [ksnapd]
652 0 [kjournald]
981 0 [btaddconn]
982 0 [btdelconn]
1275 0 [kauditd]
1557 0 [kmpathd/0]
1559 0 [kmpathd/1]
1560 0 [kmpath_handlerd]
1717 0 [kondemand/0]
1718 0 [kondemand/1]
1944 484 /sbin/mingetty
1941 488 /sbin/mingetty
1942 488 /sbin/mingetty
1943 488 /sbin/mingetty
1945 492 /sbin/mingetty
2183 512 /bin/bash
2197 612 /usr/bin/ssh-agent
2011 652 /usr/bin/ck-xinit-session
2038 676 dbus-launch
2305 676 gnome-pty-helper
2244 756 /usr/lib/scim-1.0/scim-helper-manager
1 808 /sbin/init
2340 844 ps
1597 848 /sbin/mount.ntfs
2341 856 awk
1917 924 hald-addon-acpi:
1916 1020 /usr/libexec/hald-addon-cpufreq
1884 1028 hald-addon-input:
707 1060 /sbin/udevd
1774 1132 hald-runner
2298 1136 /sbin/dhclient
2235 1148 /usr/libexec/gam_server
2039 1168 /bin/dbus-daemon
1741 1204 rsyslogd
1761 1308 dbus-daemon
2193 1316 /usr/lib/scim-1.0/scim-launcher
1930 1396 ntpd
2177 1712 /usr/bin/scim
2304 1740 scim-bridge
2306 1900 bash
2058 1988 /usr/libexec/gvfsd
2095 2124 /usr/libexec//gvfs-fuse-daemon
1925 2144 /usr/sbin/wpa_supplicant
2054 2264 /usr/libexec/im-settings-daemon
2179 2276 /usr/libexec/gconf-im-settings-daemon
1773 2352 /usr/sbin/console-kit-daemon
2194 2668 /usr/lib/scim-1.0/scim-launcher
2056 2700 /usr/libexec/im-info-daemon
1918 2704 NetworkManager
2237 2720 /usr/bin/gnome-keyring-daemon
2181 3132 /usr/libexec/gconfd-2
1927 3748 /usr/sbin/nm-system-settings
2185 4064 imsettings-xim
1770 4656 hald
1940 4712 /usr/bin/slim
2245 5276 /usr/lib/scim-1.0/scim-panel-gtk
2195 5752 openbox
2201 9136 pcmanfm
1985 9872 /usr/bin/X
2198 10420 fbpanel
2199 11160 nm-applet
2200 12508 gnome-power-manager
2276 16072 terminal

0 件のコメント:

コメントを投稿