Gentoo Archives: gentoo-dev

From: Sam James <sam@g.o>
To: gentoo-dev@l.g.o
Cc: qa@g.o
Subject: Re: [gentoo-dev] [PATCH] check-reqs.eclass: clamp MAKEOPTS for memory/RAM usage
Date: Tue, 04 Jan 2022 23:03:57
Message-Id: 831181B2-99D4-41C0-9702-1A4DBB793DDB@gentoo.org
In Reply to: [gentoo-dev] [PATCH] check-reqs.eclass: clamp MAKEOPTS for memory/RAM usage by Sam James
1 > On 4 Jan 2022, at 22:58, Sam James <sam@g.o> wrote:
2 >
3 > Crank down MAKEOPTS jobs if MAKEOPTS="-jN" is too high for the
4 > amount of RAM available (uses amount declared as needed
5 > in the ebuild). Typically should be ~2GB per job.
6 >
7 > Bug: https://bugs.gentoo.org/570534
8 > Signed-off-by: Sam James <sam@g.o>
9 > ---
10 > eclass/check-reqs.eclass | 42 +++++++++++++++++++++++++++++++++++++---
11 > 1 file changed, 39 insertions(+), 3 deletions(-)
12
13 Note that we discussed this on GitHub a bit when I just posted it there
14 for some rough feedback: https://github.com/gentoo/gentoo/pull/23311 <https://github.com/gentoo/gentoo/pull/23311>.
15
16 I think this is valuable for reducing invalid bug reports from OOM and
17 easing user experience.
18
19 Still kind of a WIP/rough draft, but may be ready in this state. Need
20 more testing, so not planning on pushing yet or anything.

Attachments

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

Replies