[opensuse-security] chrt in opensuse 11.4?
SInce upgrading to 11.4, I no longer seem to be able to use real-time scheduling. If I just try something like: chrt -r 1 ls I get chrt: failed to set pid 0's policy: Operation not permitted. I have set what I believe to be correct settings in /etc/security/limits.conf, i.e.: @realtime soft cpu unlimited @realtime - rtprio 100 @realtime - nice -20 @realtime - memlock unlimited The command "groups" outputs: users video realtime and the command "ulimit -a" outputs: core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 40 file size (blocks, -f) unlimited pending signals (-i) 63885 max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) 6961752 open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 100 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 63885 virtual memory (kbytes, -v) 8235840 file locks (-x) unlimited What am I missing? What might I have lost in the upgrade from 11.3 -> 11.4? -- Lennart Börjeson -- To unsubscribe, e-mail: opensuse-security+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-security+help@opensuse.org
torsdagen den 14 april 2011 16.01.52 skrev Lennart Börjeson:
SInce upgrading to 11.4, I no longer seem to be able to use real-time scheduling. If I just try something like:
chrt -r 1 ls
I get
chrt: failed to set pid 0's policy: Operation not permitted.
[...]
What am I missing? What might I have lost in the upgrade from 11.3 -> 11.4?
Found it. The reason is "group RT scheduling", cf. /usr/src/linux/Documentation/scheduler/sched-rt-group.txt. As I understand this document, I need to configure control groups for real-time scheduling, cf. /usr/src/linux/Documentation/cgroups/cgroups.txt, but this seems to be a work in progress. Rather than messing with it, I just disabled group rt scheduling: sysctl -w kernel.sched_rt_runtime_us=-1 Voilá! -- Lennart Börjeson -- To unsubscribe, e-mail: opensuse-security+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-security+help@opensuse.org
participants (1)
-
Lennart Börjeson