I'm looking for a way to set the Linux scheduling priority of my VM on Proxmox to SCHED_FIFO automatically when it's started.
Currently I have to start my VM, then look up the PID of the process and all it's threads and run the command "chrt -f -p 1 PID" to set the scheduler to SCHED_FIFO.
I actually run "ls /proc/$(pgrep -f nick-htpc)/task | xargs -n 1 chrt -f -p 1" which sets the scheduler to SCHED_FIFO for all processes/threads for a VM with the name "nick-htpc"
But yeah, I am looking for a way to have the processes/threads set this way automatically on VM start if anyone has any ideas.
Currently I have to start my VM, then look up the PID of the process and all it's threads and run the command "chrt -f -p 1 PID" to set the scheduler to SCHED_FIFO.
I actually run "ls /proc/$(pgrep -f nick-htpc)/task | xargs -n 1 chrt -f -p 1" which sets the scheduler to SCHED_FIFO for all processes/threads for a VM with the name "nick-htpc"
But yeah, I am looking for a way to have the processes/threads set this way automatically on VM start if anyone has any ideas.
Last edited: