.. using portage 2.3.24 on our embedded target(ppc329 It takes forever, > 10 
mins) to just do the
dependencies for emerge -aNDuv world
Here is what strace says, one can see portage is rereading the profile over and 
over again.
At this point I am prepared to try anything to eliminate the rereading of the 
profile, any pointers?
 
23:04:25.472818 _llseek(5, 0, [0], SEEK_CUR) = 0
23:04:25.472978 read(5, "# Copyright 1999-2015 Gentoo Fou"..., 32768) = 677
23:04:25.473099 read(5, "", 28672)      = 0
23:04:25.473228 read(5, "", 32768)      = 0
23:04:25.473366 close(5)                = 0
23:04:25.482102 stat64("/usr/portage/profiles/base/profile.bashrc", 
{st_mode=S_IFREG|0644, st_size=183, ...}) = 0
23:04:25.482509 stat64("/usr/portage/profiles/default/linux/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.482887 stat64("/usr/portage/profiles/arch/base/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.483240 stat64("/usr/portage/profiles/arch/powerpc/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.483594 
stat64("/usr/portage/profiles/default/linux/powerpc/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.483924 stat64("/usr/portage/profiles/arch/base/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.484269 stat64("/usr/portage/profiles/arch/powerpc/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.484604 
stat64("/usr/portage/profiles/arch/powerpc/ppc32/profile.bashrc", 0xbfe61330) = 
-1 ENOENT (No such file or directory)
23:04:25.484930 
stat64("/usr/portage/profiles/default/linux/powerpc/ppc32/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.485272 stat64("/usr/portage/profiles/releases/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.485615 stat64("/usr/portage/profiles/releases/13.0/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.485944 
stat64("/usr/portage/profiles/default/linux/powerpc/ppc32/13.0/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.486329 
stat64("/usr/local/portage/tmv3-target-overlay/profiles/cusfpv3/profile.bashrc",
 {st_mode=S_IFREG|0644, st_size=133, ...}) = 0
23:04:25.486764 stat64("/etc/portage/profile/profile.bashrc", 0xbfe61330) = -1 
ENOENT (No such file or directory)
23:04:25.499748 
access("/usr/portage/virtual/perl-Text-ParseWords/perl-Text-ParseWords-3.290.0-r1.ebuild",
 R_OK) = 0
23:04:25.500088 
stat64("/usr/portage/virtual/perl-Text-ParseWords/perl-Text-ParseWords-3.290.0-r1.ebuild",
 {st_mode=S_IFREG|0644, st_size=664, ...}) = 0
23:04:25.500417 
open("/usr/portage/metadata/md5-cache/virtual/perl-Text-ParseWords-3.290.0-r1", 
O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 5
23:04:25.500545 fstat64(5, {st_mode=S_IFREG|0644, st_size=593, ...}) = 0
23:04:25.500664 ioctl(5, TCGETS, 0xbfe61f98) = -1 ENOTTY (Inappropriate ioctl 
for device)
23:04:25.500761 fstat64(5, {st_mode=S_IFREG|0644, st_size=593, ...}) = 0
23:04:25.500897 _llseek(5, 0, [0], SEEK_CUR) = 0
23:04:25.501101 _llseek(5, 0, [0], SEEK_CUR) = 0
23:04:25.501238 _llseek(5, 0, [0], SEEK_CUR) = 0
23:04:25.501343 fstat64(5, {st_mode=S_IFREG|0644, st_size=593, ...}) = 0
23:04:25.501446 read(5, "DEFINED_PHASES=-\nDESCRIPTION=Vir"..., 594) = 593
23:04:25.501552 read(5, "", 1)          = 0
23:04:25.501831 fstat64(5, {st_mode=S_IFREG|0644, st_size=593, ...}) = 0
23:04:25.502013 close(5)                = 0
23:04:25.502474 
open("/usr/portage/virtual/perl-Text-ParseWords/perl-Text-ParseWords-3.290.0-r1.ebuild",
 O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 5
23:04:25.502607 fstat64(5, {st_mode=S_IFREG|0644, st_size=664, ...}) = 0
23:04:25.502739 ioctl(5, TCGETS, 0xbfe61b88) = -1 ENOTTY (Inappropriate ioctl 
for device)
23:04:25.502838 fstat64(5, {st_mode=S_IFREG|0644, st_size=664, ...}) = 0
23:04:25.502961 _llseek(5, 0, [0], SEEK_CUR) = 0
23:04:25.503114 read(5, "# Copyright 1999-2015 Gentoo Fou"..., 32768) = 664
23:04:25.503244 read(5, "", 28672)      = 0
23:04:25.503374 read(5, "", 32768)      = 0
23:04:25.503519 close(5)                = 0
23:04:25.512617 stat64("/usr/portage/profiles/base/profile.bashrc", 
{st_mode=S_IFREG|0644, st_size=183, ...}) = 0
23:04:25.513003 stat64("/usr/portage/profiles/default/linux/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.513379 stat64("/usr/portage/profiles/arch/base/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.513736 stat64("/usr/portage/profiles/arch/powerpc/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.514142 
stat64("/usr/portage/profiles/default/linux/powerpc/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.514494 stat64("/usr/portage/profiles/arch/base/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.514831 stat64("/usr/portage/profiles/arch/powerpc/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.515183 
stat64("/usr/portage/profiles/arch/powerpc/ppc32/profile.bashrc", 0xbfe61330) = 
-1 ENOENT (No such file or directory)
23:04:25.515509 
stat64("/usr/portage/profiles/default/linux/powerpc/ppc32/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.515853 stat64("/usr/portage/profiles/releases/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.516198 stat64("/usr/portage/profiles/releases/13.0/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.516544 
stat64("/usr/portage/profiles/default/linux/powerpc/ppc32/13.0/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.516873 
stat64("/usr/local/portage/tmv3-target-overlay/profiles/cusfpv3/profile.bashrc",
 {st_mode=S_IFREG|0644, st_size=133, ...}) = 0
23:04:25.517276 stat64("/etc/portage/profile/profile.bashrc", 0xbfe61330) = -1 
ENOENT (No such file or directory)
23:04:25.530828 
access("/usr/local/portage/tmv3-target-overlay/dev-lang/perl/perl-5.22.0.ebuild",
 R_OK) = -1 ENOENT (No such file or directory)
23:04:25.531390 access("/usr/portage/dev-lang/perl/perl-5.22.0.ebuild", R_OK) = 0
23:04:25.531691 stat64("/usr/portage/dev-lang/perl/perl-5.22.0.ebuild", 
{st_mode=S_IFREG|0644, st_size=4170, ...}) = 0
23:04:25.532011 open("/usr/portage/metadata/md5-cache/dev-lang/perl-5.22.0", 
O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 5
23:04:25.532157 fstat64(5, {st_mode=S_IFREG|0644, st_size=1621, ...}) = 0
23:04:25.532276 ioctl(5, TCGETS, 0xbfe62178) = -1 ENOTTY (Inappropriate ioctl 
for device)
23:04:25.532382 fstat64(5, {st_mode=S_IFREG|0644, st_size=1621, ...}) = 0
23:04:25.532505 _llseek(5, 0, [0], SEEK_CUR) = 0
23:04:25.532710 _llseek(5, 0, [0], SEEK_CUR) = 0
23:04:25.532846 _llseek(5, 0, [0], SEEK_CUR) = 0
23:04:25.532949 fstat64(5, {st_mode=S_IFREG|0644, st_size=1621, ...}) = 0
23:04:25.533053 read(5, "DEFINED_PHASES=configure install"..., 1622) = 1621
23:04:25.533162 read(5, "", 1)          = 0
23:04:25.533509 fstat64(5, {st_mode=S_IFREG|0644, st_size=1621, ...}) = 0
23:04:25.533713 close(5)                = 0
23:04:25.534239 open("/usr/portage/dev-lang/perl/perl-5.22.0.ebuild", 
O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 5
23:04:25.534374 fstat64(5, {st_mode=S_IFREG|0644, st_size=4170, ...}) = 0
23:04:25.534497 ioctl(5, TCGETS, 0xbfe61d68) = -1 ENOTTY (Inappropriate ioctl 
for device)
23:04:25.534595 fstat64(5, {st_mode=S_IFREG|0644, st_size=4170, ...}) = 0
23:04:25.534724 _llseek(5, 0, [0], SEEK_CUR) = 0
23:04:25.534881 read(5, "# Copyright 1999-2015 Gentoo Fou"..., 32768) = 4170
23:04:25.535023 read(5, "", 24576)      = 0
23:04:25.535187 read(5, "", 32768)      = 0
23:04:25.535331 close(5)                = 0
23:04:25.547388 stat64("/usr/portage/profiles/base/profile.bashrc", 
{st_mode=S_IFREG|0644, st_size=183, ...}) = 0
23:04:25.547810 stat64("/usr/portage/profiles/default/linux/profile.bashrc", 
0xbfe61510) = -1 ENOENT (No such file or directory)
23:04:25.548213 stat64("/usr/portage/profiles/arch/base/profile.bashrc", 
0xbfe61510) = -1 ENOENT (No such file or directory)
23:04:25.548566 stat64("/usr/portage/profiles/arch/powerpc/profile.bashrc", 
0xbfe61510) = -1 ENOENT (No such file or directory)
23:04:25.548912 
stat64("/usr/portage/profiles/default/linux/powerpc/profile.bashrc", 
0xbfe61510) = -1 ENOENT (No such file or directory)
23:04:25.549270 stat64("/usr/portage/profiles/arch/base/profile.bashrc", 
0xbfe61510) = -1 ENOENT (No such file or directory)
23:04:25.549623 stat64("/usr/portage/profiles/arch/powerpc/profile.bashrc", 
0xbfe61510) = -1 ENOENT (No such file or directory)
23:04:25.549959 
stat64("/usr/portage/profiles/arch/powerpc/ppc32/profile.bashrc", 0xbfe61510) = 
-1 ENOENT (No such file or directory)
23:04:25.550360 
stat64("/usr/portage/profiles/default/linux/powerpc/ppc32/profile.bashrc", 
0xbfe61510) = -1 ENOENT (No such file or directory)
23:04:25.550707 stat64("/usr/portage/profiles/releases/profile.bashrc", 
0xbfe61510) = -1 ENOENT (No such file or directory)
23:04:25.551066 stat64("/usr/portage/profiles/releases/13.0/profile.bashrc", 
0xbfe61510) = -1 ENOENT (No such file or directory)
23:04:25.551399 
stat64("/usr/portage/profiles/default/linux/powerpc/ppc32/13.0/profile.bashrc", 
0xbfe61510) = -1 ENOENT (No such file or directory)
23:04:25.551741 
stat64("/usr/local/portage/tmv3-target-overlay/profiles/cusfpv3/profile.bashrc",
 {st_mode=S_IFREG|0644, st_size=133, ...}) = 0
23:04:25.552160 stat64("/etc/portage/profile/profile.bashrc", 0xbfe61510) = -1 
ENOENT (No such file or directory)
23:04:25.566716 access("/usr/portage/sys-apps/help2man/help2man-1.47.3.ebuild", 
R_OK) = 0
23:04:25.567043 stat64("/usr/portage/sys-apps/help2man/help2man-1.47.3.ebuild", 
{st_mode=S_IFREG|0644, st_size=1159, ...}) = 0
23:04:25.567369 
open("/usr/portage/metadata/md5-cache/sys-apps/help2man-1.47.3", 
O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 5
23:04:25.567515 fstat64(5, {st_mode=S_IFREG|0644, st_size=931, ...}) = 0
23:04:25.567636 ioctl(5, TCGETS, 0xbfe61f98) = -1 ENOTTY (Inappropriate ioctl 
for device)
23:04:25.567745 fstat64(5, {st_mode=S_IFREG|0644, st_size=931, ...}) = 0
23:04:25.567869 _llseek(5, 0, [0], SEEK_CUR) = 0
23:04:25.568064 _llseek(5, 0, [0], SEEK_CUR) = 0
23:04:25.568208 _llseek(5, 0, [0], SEEK_CUR) = 0
23:04:25.568303 fstat64(5, {st_mode=S_IFREG|0644, st_size=931, ...}) = 0
23:04:25.568404 read(5, "DEFINED_PHASES=configure prepare"..., 932) = 931
23:04:25.568513 read(5, "", 1)          = 0
23:04:25.568831 fstat64(5, {st_mode=S_IFREG|0644, st_size=931, ...}) = 0
23:04:25.569020 close(5)                = 0
23:04:25.569503 open("/usr/portage/sys-apps/help2man/help2man-1.47.3.ebuild", 
O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 5
23:04:25.569635 fstat64(5, {st_mode=S_IFREG|0644, st_size=1159, ...}) = 0
23:04:25.569762 ioctl(5, TCGETS, 0xbfe61b88) = -1 ENOTTY (Inappropriate ioctl 
for device)
23:04:25.569861 fstat64(5, {st_mode=S_IFREG|0644, st_size=1159, ...}) = 0
23:04:25.569983 _llseek(5, 0, [0], SEEK_CUR) = 0
23:04:25.570179 read(5, "# Copyright 1999-2015 Gentoo Fou"..., 32768) = 1159
23:04:25.570304 read(5, "", 28672)      = 0
23:04:25.570455 read(5, "", 32768)      = 0
23:04:25.570595 close(5)                = 0
23:04:25.579423 stat64("/usr/portage/profiles/base/profile.bashrc", 
{st_mode=S_IFREG|0644, st_size=183, ...}) = 0
23:04:25.579845 stat64("/usr/portage/profiles/default/linux/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.580223 stat64("/usr/portage/profiles/arch/base/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.580556 stat64("/usr/portage/profiles/arch/powerpc/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.580898 
stat64("/usr/portage/profiles/default/linux/powerpc/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.581247 stat64("/usr/portage/profiles/arch/base/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.581598 stat64("/usr/portage/profiles/arch/powerpc/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.581923 
stat64("/usr/portage/profiles/arch/powerpc/ppc32/profile.bashrc", 0xbfe61330) = 
-1 ENOENT (No such file or directory)
23:04:25.582314 
stat64("/usr/portage/profiles/default/linux/powerpc/ppc32/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.582674 stat64("/usr/portage/profiles/releases/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.582994 stat64("/usr/portage/profiles/releases/13.0/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.583325 
stat64("/usr/portage/profiles/default/linux/powerpc/ppc32/13.0/profile.bashrc", 
0xbfe61330) = -1 ENOENT (No such file or directory)
23:04:25.583671 
stat64("/usr/local/portage/tmv3-target-overlay/profiles/cusfpv3/profile.bashrc",
 {st_mode=S_IFREG|0644, st_size=133, ...}) = 0
23:04:25.584088 stat64("/etc/portage/profile/profile.bashrc", 0xbfe61330) = -1 
ENOENT (No such file or directory)
23:04:25.597236 access("/usr/portage/sys-apps/help2man/help2man-1.47.2.ebuild", 
R_OK) = 0
23:04:25.597538 stat64("/usr/portage/sys-apps/help2man/help2man-1.47.2.ebuild", 
{st_mode=S_IFREG|0644, st_size=1054, ...}) = 0
23:04:25.597890 
open("/usr/portage/metadata/md5-cache/sys-apps/help2man-1.47.2", 
O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 5
23:04:25.598025 fstat64(5, {st_mode=S_IFREG|0644, st_size=931, ...}) = 0
23:04:25.598199 ioctl(5, TCGETS, 0xbfe61f98) = -1 ENOTTY (Inappropriate ioctl 
for device)
23:04:25.598299 fstat64(5, {st_mode=S_IFREG|0644, st_size=931, ...}) = 0
23:04:25.598422 _llseek(5, 0, [0], SEEK_CUR) = 0
23:04:25.598613 _llseek(5, 0, [0], SEEK_CUR) = 0
23:04:25.598764 _llseek(5, 0, [0], SEEK_CUR) = 0
23:04:25.598866 fstat64(5, {st_mode=S_IFREG|0644, st_size=931, ...}) = 0
23:04:25.598969 read(5, "DEFINED_PHASES=configure prepare"..., 932) = 931
23:04:25.599076 read(5, "", 1)          = 0
23:04:25.599397 fstat64(5, {st_mode=S_IFREG|0644, st_size=931, ...}) = 0
23:04:25.599587 close(5)                = 0
23:04:25.600060 open("/usr/portage/sys-apps/help2man/help2man-1.47.2.ebuild", 
O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 5
23:04:25.600193 fstat64(5, {st_mode=S_IFREG|0644, st_size=1054, ...}) = 0
23:04:25.600319 ioctl(5, TCGETS, 0xbfe61b88) = -1 ENOTTY (Inappropriate ioctl 
for device)
23:04:25.600417 fstat64(5, {st_mode=S_IFREG|0644, st_size=1054, ...}) = 0
23:04:25.600548 _llseek(5, 0, [0], SEEK_CUR) = 0
23:04:25.600703 read(5, "# Copyright 1999-2015 Gentoo Fou"..., 32768) = 1054
23:04:25.600824 read(5, "", 28672)      = 0
23:04:25.600957 read(5, "", 32768)      = 0
23:04:25.601103 close(5)                = 0

Reply via email to