Hi everybody,
the following command chrt run a program in, real time.
chrt -r 20 ./mycommand // run real priority 20 ./mycommand in roundRobin scheduling
But when you do :
chrt -pf 80 $$ // mean that you run the shell with priority 80 (0..99) scheduling in fifo
// $$ contain the pid of the shell
this fail with error policies…
So you should do :
sysctl -w kernel.sched_rt_runtime_us=-1
ant the chrt command souhld run fine.
Example:
chrt -pf 80 $$ // mean that you run the shell with prority 80 (0..99) scheduling in FIFO $$ contain the pid of the shell
and so if you want use vlc with regular flow video
vlc //witch herit of property of the shell behavior
Look at :
https://www.blaess.fr/christophe/livres/solutions-temps-reel-sous-linux/
extract of his is book real time linux.
Regard’s
Laurent.