]> www.infradead.org Git - users/jedix/linux-maple.git/commit
uek-rpm: build: sign modules in parallel
authorNick Alcock <nick.alcock@oracle.com>
Tue, 20 Jun 2017 18:27:37 +0000 (19:27 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Mon, 18 Sep 2017 09:25:21 +0000 (10:25 +0100)
commitc7f249301abfb989fe36beb3d5920f1863494505
treebb9a1c3713706f822a1f209c5e724c93786d9a84
parent815295d16bc43b423f6fd83419a3af79e2562ac6
uek-rpm: build: sign modules in parallel

Assuming you have enough entropy, this gives a speedup in the
signing phase almost precisely proportional to the core count.

e.g. on a 20-core box (with %_smp_ncpus_max forced to 0 in
/etc/rpm/macros, but this will be irrelevant shortly, and even with the
present RPM configuration a 16-fold speedup can be seen):

old:
168.27user 19.99system 3:06.25elapsed 101%CPU (0avgtext+0avgdata 11112maxresident)k

new:
138.70user 11.32system 0:10.14elapsed 1479%CPU (0avgtext+0avgdata 11208maxresident)k

Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Reviewed-by: John Sobecki <john.sobecki@oracle.com>
Orabug: 26316447
uek-rpm/ol6/kernel-uek.spec
uek-rpm/ol6/mod-sign.sh
uek-rpm/ol7/kernel-uek.spec
uek-rpm/ol7/mod-sign.sh