Gentoo Archives: gentoo-portage-dev

From: Joakim Tjernlund <Joakim.Tjernlund@××××××××.com>
To: "gentoo-portage-dev@l.g.o" <gentoo-portage-dev@l.g.o>
Subject: [gentoo-portage-dev] emerging binary pkgs very slow on ppc32
Date: Wed, 14 Feb 2018 15:49:46
Message-Id: 1518623380.24467.50.camel@infinera.com
1 We got an embedded target which we upded with binary pks(157 in this case) using:
2 PKGDIR=/opt/fs/osappl04a-r30b-1/usr/portage/packages emerge --rebuilt-binaries --verbose --usepkgonly -NDu @world @cusfpv3
3 and this takes forever, about 1 hour
4
5 not sure where to start looking for a cause, is this known for ppc32 ?
6
7 I got btrfs root FS on 4 core, 1.3 GHz CPU on eMMC media. The rw performance is decent I think.
8 load avg. about 1.1 so no CPU is not limiting.
9 sys-apps/portage:
10 Installed versions: 2.3.19-r1(17:41:24 24/01/18)(ipc native-extensions xattr -build -doc -epydoc -selinux LINGUAS="-ru" PYTHON_TARGETS="python2_7 python3_4 -pypy -python3_5 -python3_6")
11
12 Is there some I can speed up binary pkg emerge?
13 when stracing I see way too many system calls
14 but this one stands out, 1 byte reads:
15
16 17750 16:39:40 brk(0x100d7000) = 0x100d7000
17 17750 16:39:40 brk(0x100d6000) = 0x100d6000
18 17750 16:39:40 read(0, "d", 1) = 1
19 17750 16:39:40 read(0, "e", 1) = 1
20 17750 16:39:40 read(0, "c", 1) = 1
21 17750 16:39:40 read(0, "l", 1) = 1
22 17750 16:39:40 read(0, "a", 1) = 1
23 17750 16:39:40 read(0, "r", 1) = 1
24 17750 16:39:40 read(0, "e", 1) = 1
25 17750 16:39:40 read(0, " ", 1) = 1
26 17750 16:39:40 read(0, "-", 1) = 1
27 17750 16:39:40 read(0, "x", 1) = 1
28 17750 16:39:40 read(0, " ", 1) = 1
29 17750 16:39:40 read(0, "A", 1) = 1
30 17750 16:39:40 read(0, "=", 1) = 1
31 17750 16:39:40 read(0, "\"", 1) = 1
32 ....
33 17750 16:39:43 read(0, "t", 1) = 1
34 17750 16:39:43 read(0, "\n", 1) = 1
35 17750 16:39:43 read(0, "}", 1) = 1
36 17750 16:39:43 read(0, "\n", 1) = 1
37 17750 16:39:43 read(0, "", 1) = 0
38 17750 16:39:43 write(1, " function _eapply_patch () \n "..., 4345) = 4345
39
40 Jocke

Replies