Re: Bad coding practices in Fedora packages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/03/2012 01:32 PM, Denys Vlasenko wrote:
> I installed F16 on a new machine, trying to keep the installation
> more or less lean. Meaning - not installing tons of packages w/o
> thinking and ending up with tons of installed stuff I don't even know
> what it is.
> 
> Today, I'm looking at my process list, sorted by amount of dirtied pages
> (which very closely matches amount of malloced and used space - that is,
> malloced, but not-written to memory areas are not included).
> This is the most expensive type of pages, they can't be discarded.
> If we would be in memory squeeze, kernel will have to swap them out,
> if swap exists, otherwise kernel can't do anything at all.
> 
> And this is what I see (DIRTY column):
> 
>   PID   VSZ VSZRW   RSS (SHR) DIRTY^(SHR) STACK COMMAND
>  1974  593m  392m  233m 14900  200m    64   208 /usr/lib/thunderbird/thunderbird-bin
>  2030  589m  393m  188m 16568  156m   684   344 /usr/lib/firefox/firefox
>  1375 27976 14100 14288  5752  9912  3896   132 /usr/bin/Xorg
>  1888 71748 55152 14056  4268  9536     0   132 /usr/libexec/tracker-store
>  1953  145m 44672 17588  6812  8880    88   132 /usr/libexec/xfce4/panel-plugins/xfce4-mixer-plugin
>  2057  167m  9036 18944 10124  8236   280   204 xchat
>  4292 15728  8344 10236  1440  7848     0   132 /usr/bin/mc -u -d -C
>  1892 36464  7608 16396  7116  7296     0   136 {applet.py} /usr/bin/python /usr/share/system-config-printer/applet.py
>  1874 48464 27060 12408  5568  6180     0   132 /usr/libexec/tracker-miner-fs
>  1941  107m 13872 14784  8968  5620   768   132 Terminal
>  1901 44748 26400 10872  5012  5560     0   132 /usr/libexec/tracker-miner-flickr
> ...
> 
> thunderbird, firefox, xorg are the largest ones, but this
> is not a surprise.
> 
> Whoops. What is tracker-store? I don't even know what's that
> and why is it running, and it's eating ~10 mbytes in DIRTY.
> Hmm. There are more of those things - tracker-miner-fs,
> tracker-miner-flickr. There go another 12 megs...
> And - flickr??
> I did not ask anything flickr-related to be *run* on my machine!

Just a comment on the accuracy of the numbers.

# ps_mem.py¹ | grep tracker

  3.2 MiB + 730.5 KiB =   3.9 MiB       tracker-miner-fs
  3.9 MiB + 722.5 KiB =   4.6 MiB       tracker-miner-flickr
  5.5 MiB + 549.0 KiB =   6.0 MiB       tracker-store

I've attached the complete output from my newly installed F16 laptop,
which shows around 300MiB of RAM being used in total.

cheers,
Pádraig.

¹ http://www.pixelbeat.org/scripts/ps_mem.py
 Private  +   Shared  =  RAM used	Program 

116.0 KiB +  17.0 KiB = 133.0 KiB	system-setup-keyboard [updated]
128.0 KiB +  22.0 KiB = 150.0 KiB	gnome-pty-helper.#prelink#.Lnb918 [deleted]
152.0 KiB +  16.5 KiB = 168.5 KiB	fcoemon [updated]
196.0 KiB +  21.5 KiB = 217.5 KiB	mcelog [updated]
180.0 KiB +  39.0 KiB = 219.0 KiB	atd
240.0 KiB +  27.0 KiB = 267.0 KiB	audispd
228.0 KiB +  44.5 KiB = 272.5 KiB	systemd-stdout-syslog-bridge [updated]
204.0 KiB +  72.0 KiB = 276.0 KiB	abrtd [updated]
228.0 KiB +  48.0 KiB = 276.0 KiB	sedispatch [updated]
252.0 KiB +  49.0 KiB = 301.0 KiB	syndaemon [updated]
240.0 KiB +  63.5 KiB = 303.5 KiB	abrt-dump-oops [updated]
264.0 KiB +  41.0 KiB = 305.0 KiB	rtkit-daemon [updated]
272.0 KiB +  33.5 KiB = 305.5 KiB	dbus-launch [updated]
344.0 KiB +  43.5 KiB = 387.5 KiB	auditd
448.0 KiB +  66.0 KiB = 514.0 KiB	systemd-logind [updated]
436.0 KiB +  81.5 KiB = 517.5 KiB	lldpad
452.0 KiB +  72.5 KiB = 524.5 KiB	gdm-binary [updated]
476.0 KiB +  97.5 KiB = 573.5 KiB	gvfsd [updated]
512.0 KiB +  89.0 KiB = 601.0 KiB	dconf-service [updated]
516.0 KiB + 140.5 KiB = 656.5 KiB	gvfs-afc-volume-monitor [updated]
568.0 KiB + 152.5 KiB = 720.5 KiB	gvfs-gphoto2-volume-monitor [updated]
532.0 KiB + 189.0 KiB = 721.0 KiB	gconf-helper [updated]
516.0 KiB + 240.0 KiB = 756.0 KiB	avahi-daemon [updated] (2)
828.0 KiB +  61.5 KiB = 889.5 KiB	bluetoothd
816.0 KiB + 173.0 KiB = 989.0 KiB	accounts-daemon [updated]
880.0 KiB + 229.5 KiB =   1.1 MiB	imsettings-daemon [updated]
928.0 KiB + 201.5 KiB =   1.1 MiB	deja-dup-monitor [updated]
972.0 KiB + 210.5 KiB =   1.2 MiB	upowerd [updated]
  1.1 MiB + 119.5 KiB =   1.2 MiB	modem-manager [updated]
940.0 KiB + 275.0 KiB =   1.2 MiB	wpa_supplicant [updated]
916.0 KiB + 302.5 KiB =   1.2 MiB	gdm-session-worker.#prelink#.39HoGs [deleted]
972.0 KiB + 290.0 KiB =   1.2 MiB	gsd-printer [updated]
  1.0 MiB + 230.5 KiB =   1.3 MiB	gdm-simple-slave [updated]
  1.1 MiB + 250.5 KiB =   1.3 MiB	gvfs-gdu-volume-monitor [updated]
  1.4 MiB +  37.0 KiB =   1.4 MiB	crond [updated]
  1.4 MiB +  73.5 KiB =   1.5 MiB	gconfd-2 [updated]
  1.1 MiB + 418.5 KiB =   1.5 MiB	udisks-daemon [updated] (2)
  1.3 MiB + 325.5 KiB =   1.6 MiB	sshd
  1.3 MiB + 377.0 KiB =   1.7 MiB	cupsd
  1.2 MiB + 635.5 KiB =   1.9 MiB	gnome-shell-calendar-server [updated]
  1.4 MiB + 501.0 KiB =   1.9 MiB	mission-control-5 [updated]
  1.7 MiB + 219.5 KiB =   1.9 MiB	gnome-keyring-daemon [updated]
  1.8 MiB + 210.0 KiB =   2.0 MiB	console-kit-daemon [updated]
  2.0 MiB + 186.5 KiB =   2.2 MiB	polkitd [updated]
  1.3 MiB + 990.5 KiB =   2.3 MiB	abrt-applet [updated]
  2.3 MiB + 262.5 KiB =   2.6 MiB	su
  2.9 MiB + 140.0 KiB =   3.0 MiB	gvfs-fuse-daemon [updated]
  2.0 MiB +   1.1 MiB =   3.1 MiB	seapplet [updated]
  3.0 MiB +  93.5 KiB =   3.1 MiB	rsyslogd
  2.6 MiB + 734.5 KiB =   3.3 MiB	gdu-notification-daemon [updated]
  3.0 MiB + 374.0 KiB =   3.4 MiB	dbus-daemon [updated] (2)
  3.0 MiB + 402.5 KiB =   3.4 MiB	sendmail.sendmail (2)
  2.8 MiB + 714.0 KiB =   3.5 MiB	gnome-session [updated]
  3.6 MiB +  28.5 KiB =   3.6 MiB	irqbalance [updated]
  3.4 MiB + 370.5 KiB =   3.7 MiB	pulseaudio [updated]
  3.2 MiB + 730.5 KiB =   3.9 MiB	tracker-miner-fs [updated]
  4.1 MiB +  84.5 KiB =   4.2 MiB	restorecond
508.0 KiB +   3.7 MiB =   4.2 MiB	udevd (3)
  3.9 MiB + 473.0 KiB =   4.4 MiB	packagekitd
  4.1 MiB + 362.5 KiB =   4.4 MiB	NetworkManager [updated]
  3.9 MiB + 722.5 KiB =   4.6 MiB	tracker-miner-flickr [updated]
  3.9 MiB +   1.1 MiB =   4.9 MiB	evolution-alarm-notify [updated]
  4.8 MiB + 553.5 KiB =   5.3 MiB	goa-daemon [updated]
  3.9 MiB +   1.4 MiB =   5.4 MiB	nm-applet [updated]
  4.7 MiB + 735.0 KiB =   5.4 MiB	bash [updated] (2)
  5.0 MiB + 616.5 KiB =   5.6 MiB	libsocialweb-core [updated]
  5.5 MiB + 549.0 KiB =   6.0 MiB	tracker-store [updated]
  6.0 MiB + 479.0 KiB =   6.4 MiB	dhclient
  5.6 MiB +   1.2 MiB =   6.7 MiB	gnome-screensaver.#prelink#.2oxAvu [deleted]
  7.4 MiB + 504.0 KiB =   7.9 MiB	Xorg [updated]
  7.4 MiB + 728.0 KiB =   8.2 MiB	colord [updated]
  8.7 MiB + 368.0 KiB =   9.0 MiB	system-config-f
  8.3 MiB +   1.3 MiB =   9.6 MiB	gnome-terminal [updated]
 12.2 MiB + 397.0 KiB =  12.6 MiB	systemd
 15.6 MiB +   1.8 MiB =  17.3 MiB	gnome-settings-daemon [updated]
 89.8 MiB +   3.0 MiB =  92.8 MiB	gnome-shell [updated]
---------------------------------
                        302.9 MiB
=================================

 Private  +   Shared  =  RAM used	Program 

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux