chrt from util-linux not working
“chrt” from util-linux/schedutils is currently using
“sched_setscheduler()” for setting CPU scheduler and realtime
priority.
The musl implementation of this function is just returning “1“, so
”chrt" is unable to change priority making ”chrt" nearly useless in
AlpineLinux.
musl source-code: https://github.com/bpowers/musl/blob/master/src/sched/sched\_setscheduler.c
int sched_setscheduler(pid_t pid, int sched, const struct sched_param *param)
{
return __syscall_ret(-ENOSYS);
}
(from redmine: issue id 9188, created on 2018-08-05, closed on 2019-01-23)