From 9d532501e6449de845c772116cdc98bdf58caf02 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Mon, 16 May 2016 12:17:22 +0200 Subject: [PATCH] Check rtprio for SCHED_FIFO (closes #6) Explicitly check we can change to a higher rtprio for the 'SCHED_FIFO' scheduler, which is what we'll be usually interested in for audio work. --- RtprioCheck.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RtprioCheck.pm b/RtprioCheck.pm index 2ee5702..5641b84 100644 --- a/RtprioCheck.pm +++ b/RtprioCheck.pm @@ -30,7 +30,7 @@ sub new sub execute { my $self = shift; - my $rtprioout = `chrt 80 echo success`; + my $rtprioout = `chrt -f 80 echo success`; if ($rtprioout =~ /success/) { $self->{RESULTKIND} = "good"; @@ -41,7 +41,7 @@ sub execute { $self->{RESULTKIND} = "not good"; $self->{RESULT} = "no"; - $self->{COMMENT} = "Could not assign a 80 rtprio value. Set up limits.conf.\n". + $self->{COMMENT} = "Could not assign a 80 rtprio SCHED_FIFO value. Set up limits.conf.\n". "For more information, see http://wiki.linuxaudio.org/wiki/system_configuration#limitsconfaudioconf"; } }