-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: add load average limit to reduce CPU overcommitment #4094
Conversation
Is (or maybe, should?) For instance, if the user forces In which case we could use this:
Also, I'd like to allow a way to completely disable |
With this PR I think we can now lose this line, as it's redundant: Line 4 in 254dedf
|
Could we also replace Alternatively I'd be happy for this to be addressed in a follow-up PR. |
|
I didn't use |
Yeah, thanks for being on the ball - I looked at the ninja PR and thought to myself "this seems like a no-brainer" and that it had been merged. Little did I know the drama that was to follow, including an actual fork. Crazy. :( |
493c3de
to
4832383
Compare
Updated screen, mame and mame2016 patches. |
d40ee77
to
0c4d093
Compare
Don't set PTR64=0 on 32bit archs, instead set ARCHITECTURE to an empty string. That way we don't need to patch out hardcoded -m32 arguments. While at it, disable the bgfx hw renderers, or that pile of build crap tries to include X11 headers.
Yay, more missing dependencies: In file included from ../../../../../src/mame/audio/taito_zm.h:14, from ../../../../../src/mame/drivers/zn.cpp:15: ../../../../../src/devices/cpu/tms57002/tms57002.h:208:10: fatal error: ../../emu/cpu/tms57002/tms57002.hxx: No such file or directory
Replace the current patch with the same approach as libretro-mame: Don't set PTR64=0 on 32bit archs, instead set ARCHITECTURE to an empty string. That way we don't need to patch out hardcoded -m32 arguments. While at it, disable the bgfx hw renderers, or that pile of build crap tries to include X11 headers.
The make dependecies are a mess, take no chances.
Occasionally it attempts to link the plugin against the library before the library is linked.
For make and ninja based build systems, no new jobs are started if the load average is greater than number_of_cores * 1.5.
The independent Ninja build language reimplementation in C, at https://github.com/michaelforney/samurai, supports this via the SAMUFLAGS environment variable. |
For
make
andninja
based build systems, no new jobs are started if the loadaverage is greater than
number_of_cores * 1.5
.Building an image on a 8-Core CPU, so using a load limit of
10.00
(earlier version of the patch which used * 1.25):(that's with building on tmpfs and autoremove)