Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 416873 - emerging SeaMonkey: ld takes ages and eats tons of memory
Summary: emerging SeaMonkey: ld takes ages and eats tons of memory
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-21 08:27 UTC by sphakka
Modified: 2012-05-21 09:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sphakka 2012-05-21 08:27:07 UTC
Hi there,

I noticed that emerging SeaMonkey takes longer and longer (since rel. 2.4 to current 2.9). While monitoring last builds, I could see ld running long (~30-45' or more) and eating a lot of memory (up to 1.4GiB), to the point that my laptop starts swapping (I have 2.3GiB)... I can stand long linking times as it's mostly IO, but the huge memory footprint worries me a bit.
I know it's a big package with lots of deps, though I wonder if there's anything wrong with it or with my set-up. Apparently, no other build causes the same. 

Here's a genlop extract:

    Fri Oct 28 16:34:36 2011 >>> www-client/seamonkey-2.3.1
       merge time: 1 hour, 8 minutes and 38 seconds.

     Fri Oct 28 20:26:14 2011 >>> www-client/seamonkey-2.4.1-r1
       merge time: 1 hour, 11 minutes and 47 seconds.

     Wed Jan 11 20:48:31 2012 >>> www-client/seamonkey-2.6.1
       merge time: 1 hour, 45 minutes and 33 seconds.

     Fri Feb 17 21:58:39 2012 >>> www-client/seamonkey-2.7.1
       merge time: 1 hour, 38 minutes and 36 seconds.

     Thu Mar  1 21:17:14 2012 >>> www-client/seamonkey-2.7.1-r1
       merge time: 1 hour, 37 minutes and 46 seconds.

     Thu Mar 22 21:19:23 2012 >>> www-client/seamonkey-2.8
       merge time: 1 hour, 55 minutes and 19 seconds.

     Mon Apr 30 20:18:40 2012 >>> www-client/seamonkey-2.9
       merge time: 1 hour, 59 minutes and 41 seconds.

     Sun May 20 22:47:24 2012 >>> www-client/seamonkey-2.9
       merge time: 1 hour, 54 minutes.

Note that at the first sign of swap-out I close stuff to free memory, thus the merge times are good approximates of wall times (the OS might be trashing for a couple of minutes though).

Cheers,

  ^s

Reproducible: Always




$ emerge --info
Portage 2.1.10.49 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.3, glibc-2.14.1-r3, 3.2.12-gentoo x86_64)
=================================================================
System uname: Linux-3.2.12-gentoo-x86_64-AMD_Turion-tm-_64_X2-with-gentoo-2.0.3
Timestamp of tree: Sun, 20 May 2012 15:45:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r1, 3.1.5, 3.2.3
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13::<unknown repository>, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo x-unsupported x-portage-aeskulap
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS=""
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/unsupported /usr/local/portage/portage-aeskulap"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="32bit 3dnow 3dnowext 64bit X a52 aac acpi alsa amd64 amr apng bash-completion berkdb bittorrent bluetooth branding bzip2 cairo calendar cdda cddb cdr cli consolekit cracklib crypt cups curl cvs cxx dbus declarative directfb djvu dri dts dvd dvdr ebook emacs embedded emboss encode exif fam fbcon ffmpeg firefox flac fortran gdbm gif git gnutls gpm h323 http iconv ipv6 jabber jack jpeg kde kipi kontact kpathsea ladspa lame laptop latex lcms ldap libnotify libsamplerate mad mmx mng modules mp3 mp4 mpeg mplayer mudflap multilib musepack mysql ncurses nls nptl nsplugin ntfs ntfsprogs nvidia ofx ogg opengl openmp openvg pam pango pcre pdf phonon plasma png policykit ppds pppd qt3support qt4 quicktime readline rtmp samba sdl seamonkey session spell sql sqlite sse sse2 ssh ssl startup-notification svg tcpd tiff tordns truetype udev udisks unicode upower usb v4l v4l2 video vlc vorbis wifi wxwidgets x264 xcb xetex xinerama xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="hda-intel usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="crypt lvm" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson2" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev vga vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Alex Legler (RETIRED) archtester gentoo-dev Security 2012-05-21 08:33:39 UTC
(In reply to comment #0)
> I know it's a big package with lots of deps, though I wonder if there's
> anything wrong with it or with my set-up. Apparently, no other build causes
> the same. 

That's a question for the forums, mailing lists or IRC.
Comment 2 sphakka 2012-05-21 09:27:29 UTC
(In reply to comment #1)
> That's a question for the forums, mailing lists or IRC.

Right. Here it is <http://forums.gentoo.org/viewtopic-p-7043400.html#7043400>, should anybody search the tracker first...