ps_mem script

Baurzhan Muftakhidinov baurthefirst at gmail.com
Sat Sep 24 20:37:55 CEST 2011


>
> I run Alpine Linux which is based on uClibc and busybox instead of the
> traditional bloaty GNU system. I got less than 100MB :)
>

Hi, thanks for pointing out to such an interesting Linux distro,
definitely will try it.

>
> alpine-netbook:~$ sudo ./ps_mem.py
>  Private  +   Shared  =  RAM used       Program
>
>  68.0 KiB +  11.5 KiB =  79.5 KiB       gnome-pty-helper
>  76.0 KiB +  18.0 KiB =  94.0 KiB       klogd
>  80.0 KiB +  22.0 KiB = 102.0 KiB       syslogd
> 104.0 KiB +  29.0 KiB = 133.0 KiB       init
> 120.0 KiB +  22.5 KiB = 142.5 KiB       acpid
> 136.0 KiB +  25.5 KiB = 161.5 KiB       dhcpcd-dbus
> 196.0 KiB +  21.5 KiB = 217.5 KiB       dbus-launch
> 200.0 KiB +  18.0 KiB = 218.0 KiB       dhcpcd
> 228.0 KiB +  23.5 KiB = 251.5 KiB       gpg-agent
> 240.0 KiB +  55.5 KiB = 295.5 KiB       lxdm-binary
> 276.0 KiB +  20.5 KiB = 296.5 KiB       sshd
> 268.0 KiB +  70.0 KiB = 338.0 KiB       gvfsd
> 340.0 KiB +  27.0 KiB = 367.0 KiB       sudo
> 352.0 KiB +  70.5 KiB = 422.5 KiB       xfconfd
> 260.0 KiB + 163.0 KiB = 423.0 KiB       sh (3)
> 352.0 KiB + 116.0 KiB = 468.0 KiB       getty (4)
> 416.0 KiB + 109.0 KiB = 525.0 KiB       gvfsd-trash
> 540.0 KiB +  40.0 KiB = 580.0 KiB       wpa_supplicant
> 496.0 KiB +  89.5 KiB = 585.5 KiB       gvfs-fuse-daemon
> 648.0 KiB + 228.5 KiB = 876.5 KiB       xfce4-notifyd
> 716.0 KiB + 176.5 KiB = 892.5 KiB       polkitd
> 804.0 KiB + 105.0 KiB = 909.0 KiB       gvfs-gdu-volume-monitor
> 788.0 KiB + 174.5 KiB = 962.5 KiB       xfsettingsd
> 692.0 KiB + 289.0 KiB = 981.0 KiB       lxpolkit
> 344.0 KiB + 649.0 KiB = 993.0 KiB       udevd (3)
> 876.0 KiB + 172.5 KiB =   1.0 MiB       upowerd
> 792.0 KiB + 305.5 KiB =   1.1 MiB       udisks-daemon (2)
>  1.0 MiB + 143.0 KiB =   1.2 MiB       xfce4-settings-helper
> 984.0 KiB + 223.0 KiB =   1.2 MiB       console-kit-daemon
> 928.0 KiB + 307.5 KiB =   1.2 MiB       Thunar
> 932.0 KiB + 349.0 KiB =   1.3 MiB       dbus-daemon (2)
>  1.0 MiB + 354.0 KiB =   1.4 MiB       xfce4-session
>  1.1 MiB + 459.0 KiB =   1.5 MiB       panel-5-systray
>  1.4 MiB + 537.5 KiB =   1.9 MiB       dhcpcd-gtk
>  1.7 MiB + 561.5 KiB =   2.2 MiB       xfce4-power-manager
>  1.7 MiB + 625.0 KiB =   2.3 MiB       bluetooth-applet
>  2.0 MiB + 977.0 KiB =   3.0 MiB       xfwm4
>  2.0 MiB +   1.0 MiB =   3.1 MiB       xfce4-notes
>  2.9 MiB +   1.0 MiB =   3.9 MiB       Terminal
>  2.8 MiB +   1.1 MiB =   3.9 MiB       xfdesktop
>  3.9 MiB +   1.2 MiB =   5.1 MiB       xfce4-panel
>  8.9 MiB + 559.5 KiB =   9.5 MiB       xfce4-mixer-plugin
>  11.9 MiB +   1.5 MiB =  13.4 MiB       claws-mail
>  26.0 MiB +   1.8 MiB =  27.8 MiB       Xorg
> ---------------------------------
>                         97.0 MiB
> =================================
>
> (why does xfce4-mixer-plugin eat so much mem?)

These are very nice results!

BTW, about memory leaks, you gotta try xfce4-xkb-plugin, sometimes it
can eat up to half of all the memory installed.


More information about the Xfce4-dev mailing list