How to set Linux scheduling priority of a VM on start?

SirMaster

Renowned Member
May 20, 2015
23
2
68
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.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!