How to determine a good value for --load-average using gnu Make?

后端 未结 2 1358
面向向阳花
面向向阳花 2021-02-13 09:25

In Make this flag exists:

-l [load], --load-average[=load] Specifies that no new jobs (commands) should be started if there are others jobs running a

2条回答
  •  情书的邮戳
    2021-02-13 10:17

    Acceptable load depends on the number of CPU cores. If there is one core, than load average more than 1 is overload. If there are four cores, than load average of more than four is overload.

    People often just specify the number of cores using -j switch.

    See some empirical numbers here: https://stackoverflow.com/a/17749621/412080

提交回复
热议问题