Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41520 - 'emerge -pvU' is very slow when package.keywords exists
Summary: 'emerge -pvU' is very slow when package.keywords exists
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-02-13 19:11 UTC by Alkis Evlogimenos
Modified: 2004-04-10 08:27 UTC (History)
1 user (show)

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 Alkis Evlogimenos 2004-02-13 19:11:43 UTC
The existence of package.keywords (with portage 2.0.50) makes computing dependencies extremely slow. When the file doesn't exist 'emerge -pvU' runs reasonably fast, in the order of tens of seconds. On the other hand when it exists 'emerge -pvU' takes in the order of couple of minutes.
Comment 1 Alkis Evlogimenos 2004-02-13 20:09:44 UTC
Just some numbers to better illustrate the problem:

with package.keywords:    5m26s
without package. keywords:   10s
Comment 2 Masatomo Nakano (RETIRED) gentoo-dev 2004-02-14 08:14:31 UTC
I've noticed this problem and I'm working on it..
Comment 3 Masatomo Nakano (RETIRED) gentoo-dev 2004-02-21 21:08:06 UTC
Fixed in cvs
Comment 4 AlterEgo 2004-04-05 08:32:02 UTC
I believe this bug still exists and this report should be re-opened:
http://forums.gentoo.org/viewtopic.php?t=157340

Please mail or PM me if I you need more info 
Comment 5 Masatomo Nakano (RETIRED) gentoo-dev 2004-04-05 09:33:58 UTC
which version do you use?
please show us 'emerge info'
Comment 6 AlterEgo 2004-04-05 10:02:16 UTC
emerge --info
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5)
=================================================================
System uname: 2.6.5 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.4.3.13p1
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -mmmx -m3dnow -msse -fstack-protector  -Os -
pipe  -fomit-frame-pointer "
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /
usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /v
ar/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -mmmx -m3dnow -msse -fstack-protector  -Os                                                                       -pipe  -fomit-frame-pointer "
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache prelink sandbox"
MAKEOPTS="-s -j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/apps/ebuilds"
USE="X alsa apm arts avi berkdb cdr crypt cups encode esd exif foomat icdb gdbm gif gphoto2 gpm gtk gtk2 imlib java jikes jpeg kde libg++ libwww mad mikmod mmx motif mozsvg mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl pic png ppds python qt quicktime readline scanner sdl slang spell sse ssl svga tcltk tcpd truetype usb x86 xml2 xmms xv zlib" 
Comment 7 Masatomo Nakano (RETIRED) gentoo-dev 2004-04-05 10:19:38 UTC
It should be fixed in 2.0.50-r3.
Can you try it?
Comment 8 AlterEgo 2004-04-05 10:23:39 UTC
Masatomo Nakano ,
I did try the new 2.0.50-r3 as was suggested in the topic
http://forums.gentoo.org/viewtopic.php?t=157340.

It turned out to make no difference.
Comment 9 Masatomo Nakano (RETIRED) gentoo-dev 2004-04-05 10:33:39 UTC
I just tested in 16 lines package.keywords file, but it worked properly.
can you attach your package.keywords file here?
Comment 10 AlterEgo 2004-04-05 10:39:05 UTC
My package.keywords:

alsa-lib~x86
alsa-utils~x86
gimp~x86
bootsplash~x86
redhat-artwork~x86
digikam~x86
digikam-plugins~x86
baselayout~x86
sysfsutils~x86
nvidia-kernel~x86
nvidia-glx~x86
openoffice-bin~x86
openoffice-ximian-bin~x86
udev~x86
hotplug-base~x86
hotplug~x86

Even if there is only 1 line in that file, everything slows down completely.
Comment 11 AlterEgo 2004-04-05 10:40:56 UTC
Sorry; correct layout this time:
/etc/portage/package.keywords:
alsa-lib ~x86
alsa-utils ~x86
gimp ~x86
bootsplash ~x86
redhat-artwork ~x86
digikam ~x86
digikam-plugins ~x86
baselayout ~x86
sysfsutils ~x86
nvidia-kernel ~x86
nvidia-glx ~x86
openoffice-bin ~x86
openoffice-ximian-bin ~x86
udev ~x86
hotplug-base ~x86
hotplug~ x86
Comment 12 AlterEgo 2004-04-10 08:27:05 UTC
I rm-ed the file and built a new /etc/portage/package.keywords. 
Identical contents. 
Problem fixed.