Gentoo Archives: gentoo-dev

From: Roy Bamford <neddyseagoon@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] check-reqs.eclass: clamp MAKEOPTS for memory/RAM usage
Date: Wed, 05 Jan 2022 22:22:25
Message-Id: 3N4MZAIC.UVYVN7QF.VQYOGILB@TW7LUJWY.N5LZQOBS.SUBJWTM7
In Reply to: Re: [gentoo-dev] [PATCH] check-reqs.eclass: clamp MAKEOPTS for memory/RAM usage by David Seifert
1 On 2022.01.05 21:10, David Seifert wrote:
2 > On Wed, 2022-01-05 at 21:06 +0000, Roy Bamford wrote:
3 > > On 2022.01.05 20:22, Sam James wrote:
4 > > >
5 > > >
6 > > > > On 5 Jan 2022, at 19:02, Roy Bamford <neddyseagoon@g.o>
7 > > > wrote:
8 > > > >
9 > > > > Sam,
10 > > > >
11 > > > > Do users with FEATURES=distcc still have to opt out of this
12 > > > > MAKEOPTS clamping?
13 > > > >
14 > > >
15 > > > Great point! I think we could add an exemption for that and make
16 > it
17 > > > a
18 > > > noop or warning-only.
19 > > >
20 > > > Best,
21 > > > sam
22 > > >
23 > > >
24 > >
25 > >
26 > > Sam,
27 > >
28 > > You are building a better mousetrap here. That's not a reason to
29 > try.
30 > >
31 > > Do users of I_KNOW_WHAT_I_AM_DOING, who have already
32 > > opted to shoot themselves in both feet, get a free pass here? 
33 > >
34 > > There are users who run emerge --jobs=X with MAKEOPTS='-jY"
35 > > and get firefox, thunderbird and libreoffice all building
36 > concurrently
37 > > as they allow X * Y MAKE threads, reduced by this proposed
38 > > throttling, still triggering the OOM.
39 > >
40 > > I don't think you can head that off beforehand.
41 > >
42 >
43 > What's your proposed alternative?
44 >
45 >
46
47 I don't really have one ... hence the better mousetrap analogy at
48 the start of my post.
49
50 grep -i killed
51
52 on the build log, if portage can do that and tell the user the rules
53 of thumb to try to stop it in future.
54
55 --
56 Regards,
57
58 Roy Bamford
59 (Neddyseagoon) a member of
60 elections
61 gentoo-ops
62 forum-mods
63 arm64