Gentoo Archives: gentoo-dev

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Guidance on adding kernel config checks to ebuilds
Date: Mon, 27 Sep 2021 17:44:13
Message-Id: robbat2-20210927T174056-929669188Z@orbis-terrarum.net
In Reply to: Re: [gentoo-dev] Guidance on adding kernel config checks to ebuilds by Mike Gilbert
1 On Mon, Sep 27, 2021 at 01:15:10PM -0400, Mike Gilbert wrote:
2 > On Mon, Sep 27, 2021 at 12:23 PM Mike Pagano <mpagano@g.o> wrote:
3 > > > Adding linux-info calls to pkg_pretend or pkg_setup causes slowdowns
4 > > > when running emerge, so we should do so only when there is a
5 > > > compensating benefit.
6 > >
7 > > Is this a significant slowdown? Do you have any numbers?
8 >
9 > Adding a check for CONFIG_PACKET to the dhcpcd ebuild adds around 7
10 > seconds of delay time to the pkg_setup and/or pkg_pretend phase on my
11 > system.
12 >
13 > That's ok if a small number of packages are doing it, but it would
14 > become quite annoying if a significant number of them get queued up.
15 7 seconds is ridiculous.
16
17 I think we need to strip out a lot of the crap about trying to detect
18 things in the stuff being built, and reduce the check to the simplest
19 possible form:
20 $ time zgrep -w CONFIG_PACKET /proc/config.gz
21 CONFIG_PACKET=y
22
23 real 0m0.032s
24 user 0m0.021s
25 sys 0m0.018s
26
27 --
28 Robin Hugh Johnson
29 Gentoo Linux: Dev, Infra Lead, Foundation Treasurer
30 E-Mail : robbat2@g.o
31 GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
32 GnuPG FP : 7D0B3CEB E9B85B1F 825BCECF EE05E6F6 A48F6136

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies