do not change the scheduling policy by default (#19808)
Costa Tsaousis committed
Mar 8, 2025 at 21:47 UTC
b71ecf1c032aec972a60ef10dbd0f0544756db07
1 file changed
+4
-4
src/daemon/daemon.c
+4
-4
@@ -254,6 +254,10 @@ struct sched_def {
254
// the available members are important too!
255
// these are all the possible scheduling policies supported by netdata
256
257
+ // do not change the scheduling priority
258
+ { "keep", 0, 0, SCHED_FLAG_KEEP_AS_IS },
259
+ { "none", 0, 0, SCHED_FLAG_KEEP_AS_IS },
260
+
261
#ifdef SCHED_BATCH
262
{ "batch", SCHED_BATCH, 0, SCHED_FLAG_USE_NICE },
263
#endif
@@ -275,10 +279,6 @@ struct sched_def {
279
{ "fifo", SCHED_FIFO, 0, SCHED_FLAG_PRIORITY_CONFIGURABLE },
280
#endif
281
278
- // do not change the scheduling priority
279
- { "keep", 0, 0, SCHED_FLAG_KEEP_AS_IS },
280
- { "none", 0, 0, SCHED_FLAG_KEEP_AS_IS },
281
-
282
// array termination
283
{ NULL, 0, 0, 0 }
284
};