Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 652200 - dev-qt/qtwebengine:5 doesn't respect MAKEOPTS=-j1
Summary: dev-qt/qtwebengine:5 doesn't respect MAKEOPTS=-j1
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
: 666270 683776 (view as bug list)
Depends on: 630834
Blocks: makeopts-ignored
  Show dependency tree
 
Reported: 2018-04-02 10:37 UTC by Toralf Förster
Modified: 2020-11-07 20:39 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
27.20180402-012705 (27.20180402-012705,83.73 KB, text/plain)
2018-04-02 10:37 UTC, Toralf Förster
Details
load.23.20190117-142310 (load.23.20190117-142310,97.89 KB, text/plain)
2019-01-17 18:47 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-04-02 10:37:02 UTC
pls see attached pstree - at least ninja ignores it, although the tinderbox set this:

MAKEOPTS="-j 1"
NINJAFLAGS="-j 1"
EGO_BUILD_FLAGS="-p 1"
GOMAXPROCS="1"
GO19CONCURRENTCOMPILATION=0
RUSTFLAGS="-C codegen-units=1"
RUST_TEST_THREADS=1
RUST_TEST_TASKS=1
Comment 1 Toralf Förster gentoo-dev 2018-04-02 10:37:26 UTC
Created attachment 526316 [details]
27.20180402-012705

pstree
Comment 2 Arfrever Frehtes Taifersar Arahesis 2018-04-03 03:45:22 UTC
Patch #1 from patchset in bug #630834 should fix this problem.

Your attachment shows that src/3rdparty/chromium/tools/gn/bootstrap/bootstrap.py was run and exactly this file is changed by sed in the aforementioned patch.
Comment 3 Andreas Sturmlechner gentoo-dev 2018-09-15 13:35:30 UTC
*** Bug 666270 has been marked as a duplicate of this bug. ***
Comment 4 Toralf Förster gentoo-dev 2019-01-17 18:47:43 UTC
Created attachment 561864 [details]
load.23.20190117-142310

this is from qt-webengine-5.11.3, where 13 c++ processes are spawned
Comment 5 Davide Pesavento gentoo-dev 2019-04-18 16:09:32 UTC
*** Bug 683776 has been marked as a duplicate of this bug. ***
Comment 6 Nathan Shearer 2019-04-18 16:33:08 UTC
I have encountered this bug on a 4-core system with only 1GB of ram (and 8 GB of swap). At times there were 6 instances of cc1plus, and the system was swapping so hard I could barely open top or even kill the compilation.

This seems to be an issue with the way ninja is allocating resources on the build system for maximum performance: https://github.com/ninja-build/ninja/issues/1441

Is there a way, any way, to force ninja to stop fork bombing my computer? Even if it is forced to run in a throttled sandbox of some kind?
Comment 7 Toralf Förster gentoo-dev 2019-04-18 17:30:39 UTC
FWIW these settings here seems not to be enough but might be a starting point:

https://github.com/toralf/tinderbox/blob/master/bin/setup_img.sh#L422