Problem with chrt

Tom H tomh0665 at gmail.com
Sun Sep 26 17:04:00 UTC 2010


On Sun, Sep 26, 2010 at 12:33 PM, JD <jd1008 at gmail.com> wrote:
>  I am trying to run a command in realtime mode just to see
> if it behaves any different as far as timings are concerned.
>
> Man page says:
>
> chrt - manipulate real-time attributes of a process
>
> chrt [options] prio command [arg]...
> chrt [options] -p [prio] pid
>
> So, I tried the first example instance above:
>
> $ sudo chrt 0 ./freq -s120 -u0 -r
> chrt: failed to set pid 0's policy: Invalid argument
>
> Soo I tried:
>
> $ sudo chrt ./freq -s120 -u0 -r # i.e. no value for priority
> chrt: failed to set pid 0's policy: Invalid argument

You probably have to enclose "./freq..." in single or double quotes.


More information about the users mailing list