Hello, I want to have a real-time process take over my computer. :)
I've been playing a bit with this. I created a process which is essentially a while (1)
(never blocks nor yields the processor) and used schedtool
to run it with SCHED_FIFO
policy (also tried chrt
). However, the process was letting other processes run as well.
Then someone told me about sched_rt_runtime_us
and sched_rt_period_us
. So I set the runtime to -1
in order to make the real-time process take over the processor (and also tried making both values the same), but it didn't work either.
I'm on Linux 2.6.27-16-server, in a virtual machine with just one CPU. What am I doing wrong?
Thanks,
EDIT: I don't want a fork bomb. I just want one process to run forever, without letting other processes run.