Find the answer to your Linux question:
Results 1 to 2 of 2
Hello! Could someone explain to me the difference between using chrt (set realtime priority) and nice when using a PREEMPT_RT kernel? I've got the impression that setting the real time ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    1

    Difference between chrt and nice with PREEMPT_RT kernel


    Hello!

    Could someone explain to me the difference between using chrt (set realtime priority) and nice when using a PREEMPT_RT kernel?

    I've got the impression that setting the real time priority affects how the scheduler shares time between the processes, but how does this compare to the nice level which (to my understanding) should have about the same effect?

    I'm interested both in simple and more detailed (tech savvy) answers.

    BR, Jaakko

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,393
    As I understand it, the realtime kernel has true realtime processes and not-so-realtime processes (safety-critical process vs. word-processors, for example). To support this kind of behavioral split, the system needs to use a different scheduler for each class of process. Nice works with the standard Linux scheduler, where as chrt works with the realtime scheduler. I haven't worked with RT Linux, so I don't know if a single process can have threads that work with both schedulers (it's possible in theory), but if it does, then I think that nice would only affect the non-realtime threads and chrt would affect the realtime threads.

    FYI, my realtime programming experience (about 15 years), was mostly done with the QNX operating system. Though I still noodle with QNX Neutrino, I've been out of that arena as a professional about 10 years now, so I'm not the best resource for you, unless you have a RMA (Rate Monotonic Analysis) or other hard realtime problem. In that case, send me an email and I'll contact you directly. I am an independent IT consultant and work with major semiconductor and electronics manufacturers on similar sorts of problems.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •