mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 23:27:04 +02:00
BUG/MINOR: mworker: disable busy polling in the master process
When enabling busy polling, we don't want the master to use it, or it wastes a dedicated processor to this! Must be backported to 1.9.
This commit is contained in:
parent
769a92d86d
commit
d83b6c1ab3
@ -650,6 +650,8 @@ static void mworker_loop()
|
|||||||
if (global.tune.options & GTUNE_USE_SYSTEMD)
|
if (global.tune.options & GTUNE_USE_SYSTEMD)
|
||||||
sd_notifyf(0, "READY=1\nMAINPID=%lu", (unsigned long)getpid());
|
sd_notifyf(0, "READY=1\nMAINPID=%lu", (unsigned long)getpid());
|
||||||
#endif
|
#endif
|
||||||
|
/* Busy polling makes no sense in the master :-) */
|
||||||
|
global.tune.options &= ~GTUNE_BUSY_POLLING;
|
||||||
|
|
||||||
master = 1;
|
master = 1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user