You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rename the kick thread scheduling configuration to `kick_kern_nice` and
clarify Linux nice semantics as `[-20, 19]`, where lower values indicate
higher priority.
Remove references to SCHED_FIFO, as this setting now controls a
nice-based priority. Realtime scheduling requires extra privileges and
host tuning (e.g., `kernel.sched_rt_runtime_us`) and can interfere with
production workloads. Using nice ensures safe, container-compatible
thread prioritization.
if (setpriority(PRIO_PROCESS, tid, kick_kern_nice) !=0) {
1733
+
if (kick_kern_nice<0&& (errno==EACCES||errno==EPERM)) {
1734
+
ebpf_warning("Kick thread %d failed to set nice value %d and will continue with default CFS priority; CAP_SYS_NICE or RLIMIT_NICE may be required: %s(%d)\n",
1735
+
tid, kick_kern_nice, strerror(errno), errno);
1736
+
} else {
1737
+
ebpf_warning("Kick thread %d failed to set nice value %d and will continue with default CFS priority: %s(%d)\n",
1738
+
tid, kick_kern_nice, strerror(errno), errno);
1739
+
}
1741
1740
} else {
1742
-
ebpf_info("Kick thread %d set SCHED_FIFO priority %d.\n",
1743
-
tid, sched_param.sched_priority);
1741
+
ebpf_info("Kick thread %d set nice value %d.\n", tid,
0 commit comments