Skip to content

Fix broken and potentially paralyzing parallelism MAKEFLAGS#14

Open
daniel-santos wants to merge 1 commit intoopenwrt:chaos_calmerfrom
daniel-santos:paralyzing_parallelism
Open

Fix broken and potentially paralyzing parallelism MAKEFLAGS#14
daniel-santos wants to merge 1 commit intoopenwrt:chaos_calmerfrom
daniel-santos:paralyzing_parallelism

Conversation

@daniel-santos
Copy link
Copy Markdown

Really, any build system should use the makeflags passed to it. The
exception is when such a system makes more than one sub-package like
OpenWRT. In this case, we now have --load-average to prevent over-loading
CPU, cache and memory, but this probably did not exist when OpenWRT's
parallelism was added.

As-is it isn't just broken, it's horrific. I stepped away and came
back to a five minute load average of 139 when I only have 4 CPU cores!
The OOM killer saved me. This patch adds an alternative feature,
enabling the user to explicitly specify per-package makeflags.

Really, any build system should use the makeflags passed to it.  The
exception is when such a system makes more than one sub-package like
OpenWRT.  In this case, we now have --load-average to over-loading CPU,
cache and memory, but this probably did not exist when OpenWRT's
parallelism was added.

But as-is it isn't just broken, it's horrific.  I stepped away and came
back to a five minute load average of 139 when I only have 4 CPU cores!
The OOM killer saved me.  This patch adds an alternative feature,
enabling the user to explicitly specify per-package makeflags.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant