-1770. [perf] fdupont
+1772. [perf] fdupont
Set kea-lfc process priority to lower than default.
+ This change should alleviate CPU utilization spikes caused
+ by LFC process observed on some systems.
(Gitlab #1311)
1771. [func] fdupont
/// errors, EXIT_FAILURE otherwise.
int main(int argc, char* argv[]) {
// Ask scheduling to not give too much resources to LFC.
+ // First parameter means to change only the process priority.
+ // Second parameter (0) means the calling process.
+ // Third parameter 4 is a bit below the default priority of 0 in
+ // a range of -20 (highest priority) and 19 or 20 (lowest priority).
static_cast<void>(setpriority(PRIO_PROCESS, 0, 4));
int ret = EXIT_SUCCESS;