]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1311] Addressed comments
authorFrancis Dupont <fdupont@isc.org>
Mon, 13 Jul 2020 13:44:04 +0000 (15:44 +0200)
committerFrancis Dupont <fdupont@isc.org>
Mon, 13 Jul 2020 13:47:52 +0000 (15:47 +0200)
ChangeLog
src/bin/lfc/main.cc

index 81b616f9ae666f061ce55fe7209397ac6d0f122a..f2c47a959b1fdc3b8cab1ca420dd0d294ad00410 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
-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
index 2e67e9b3b79138610c95e5af632b2e3c7402f8ee..a04dfe79e883e4527c1796c34b7594cd2dd8e8b4 100644 (file)
@@ -25,6 +25,10 @@ using namespace isc::lfc;
 /// 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;