Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 921309 - dev-db/mysql-connector-c++ : ignores makeopts -j4
Summary: dev-db/mysql-connector-c++ : ignores makeopts -j4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux MySQL bugs team
URL: https://bugs.mysql.com/bug.php?id=115734
Whiteboard:
Keywords:
Depends on:
Blocks: makeopts-ignored
  Show dependency tree
 
Reported: 2024-01-03 19:41 UTC by Toralf Förster
Modified: 2024-08-01 07:05 UTC (History)
1 user (show)

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


Attachments
ps-faux-20240102-233300-55.txt (ps-faux-20240102-233300-55.txt,201.50 KB, application/text-plain)
2024-01-03 19:41 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 2024-01-03 19:41:11 UTC
resulting in a too high load.
Comment 1 Toralf Förster gentoo-dev 2024-01-03 19:41:45 UTC
Created attachment 881419 [details]
ps-faux-20240102-233300-55.txt

ps faux
Comment 2 Eli Schwartz gentoo-dev 2024-08-01 05:14:50 UTC
Free system crashes, yikes.
Comment 3 Larry the Git Cow gentoo-dev 2024-08-01 07:05:49 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=943614ccefce87dd83cbaf99849726eb481311ab

commit 943614ccefce87dd83cbaf99849726eb481311ab
Author:     Eli Schwartz <eschwartz@gentoo.org>
AuthorDate: 2024-08-01 05:05:39 +0000
Commit:     Eli Schwartz <eschwartz@gentoo.org>
CommitDate: 2024-08-01 06:50:25 +0000

    dev-db/mysql-connector-c++: fix tragic overcommit of make jobs
    
    Internally, this builds additional dependencies inside of cmake by
    having build rules that run another cmake. Inside src_compile, make
    forks out to make -j$(nproc) at least once, and perhaps even more times
    (this logic is part of their generic handling of included dependencies
    but we may only be building protobuf that way anyway).
    
    We end up with a minimum of two times the number of reasonably safe jobs
    to run, your system resources get clobbered, and everything freezes
    until the OOM killer gets involved.
    
    Golly gee, I *wish* it were merely ignoring MAKEFLAGS. Then we would
    eventually succeed, except slower...
    
    Closes: https://bugs.gentoo.org/921309
    Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>

 .../mysql-connector-c++/mysql-connector-c++-8.0.33-r1.ebuild | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)