Switch back to YIELD HoldOffMode for now (gives best performance)

We will have to investigate load average highness and ways to deal with it later
This commit is contained in:
Tristan B. Velloza Kildaire 2022-11-26 18:19:21 +02:00
parent cc75eefa15
commit 28d64f799e
1 changed files with 7 additions and 3 deletions

View File

@ -184,9 +184,13 @@ public final class Engine : Thread
/* Yield if a lock fails (prevent potential thread starvation) */ /* Yield if a lock fails (prevent potential thread starvation) */
defaultSettings.agressiveTryLock = false; defaultSettings.agressiveTryLock = false;
/* Make the event engine loop sleep (1) and for 200ms (2) (TODO: Adjust this) */ // FIXME: Investigate ways to lower load average
defaultSettings.holdOffMode = HoldOffMode.SLEEP; // /* Make the event engine loop sleep (1) and for 50ms (2) (TODO: Adjust this) */
defaultSettings.sleepTime = dur!("msecs")(50); // defaultSettings.holdOffMode = HoldOffMode.SLEEP;
// defaultSettings.sleepTime = dur!("msecs")(50);
/* Use yeilding for most responsiveness */
defaultSettings.holdOffMode = HoldOffMode.YIELD;
/* Do not gracefully shutdown */ /* Do not gracefully shutdown */
defaultSettings.gracefulShutdown = false; defaultSettings.gracefulShutdown = false;