* [gentoo-user] Limit Memory Used By Portage/Firefox Build Causes OOM
@ 2020-06-21 23:02 Sid Spry
2020-06-22 1:13 ` Walter Dnes
0 siblings, 1 reply; 3+ messages in thread
From: Sid Spry @ 2020-06-21 23:02 UTC (permalink / raw
To: gentoo-user
Is there any way to limit the memory used by portage? I am
suspecting setting a climit on the portage user is the easiest way.
My immediate issue is cargo seems to ignore MAKEOPTS. Cargo
also seems to select build parallelism itself.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] Limit Memory Used By Portage/Firefox Build Causes OOM
2020-06-21 23:02 [gentoo-user] Limit Memory Used By Portage/Firefox Build Causes OOM Sid Spry
@ 2020-06-22 1:13 ` Walter Dnes
2020-06-22 3:11 ` Sid Spry
0 siblings, 1 reply; 3+ messages in thread
From: Walter Dnes @ 2020-06-22 1:13 UTC (permalink / raw
To: gentoo-user
On Sun, Jun 21, 2020 at 06:02:22PM -0500, Sid Spry wrote
>
> My immediate issue is cargo seems to ignore MAKEOPTS. Cargo
> also seems to select build parallelism itself.
You can also set the load average in MAKEOPTS ("-l" parameter; letter
"ell") to indirectly force fewer jobs. Try...
MAKEOPTS="-j1 -l1.5"
See also https://wiki.gentoo.org/wiki//etc/portage/package.env and
https://wiki.gentoo.org/wiki/Knowledge_Base:Overriding_environment_variables_per_package for pointers on how to create package-specific make.conf files
(or other stuff) for individual packages.
--
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] Limit Memory Used By Portage/Firefox Build Causes OOM
2020-06-22 1:13 ` Walter Dnes
@ 2020-06-22 3:11 ` Sid Spry
0 siblings, 0 replies; 3+ messages in thread
From: Sid Spry @ 2020-06-22 3:11 UTC (permalink / raw
To: gentoo-user
On Sun, Jun 21, 2020, at 8:13 PM, Walter Dnes wrote:
> On Sun, Jun 21, 2020 at 06:02:22PM -0500, Sid Spry wrote
> >
> > My immediate issue is cargo seems to ignore MAKEOPTS. Cargo
> > also seems to select build parallelism itself.
>
> You can also set the load average in MAKEOPTS ("-l" parameter; letter
> "ell") to indirectly force fewer jobs. Try...
>
> MAKEOPTS="-j1 -l1.5"
>
> See also https://wiki.gentoo.org/wiki//etc/portage/package.env and
> https://wiki.gentoo.org/wiki/Knowledge_Base:Overriding_environment_variables_per_package for pointers on how to create package-specific make.conf files
> (or other stuff) for individual packages.
>
I did set this. It seems to be ignored. The llvm/clang portions of
the build do abide by them but part of the build still runs out of
memory.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-06-22 3:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-21 23:02 [gentoo-user] Limit Memory Used By Portage/Firefox Build Causes OOM Sid Spry
2020-06-22 1:13 ` Walter Dnes
2020-06-22 3:11 ` Sid Spry
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox