I created some processes in user space and tried to visualize its working in kernelshark with the trace recorded using trace-cmd. But kernel processes like the ones shown below are preempting my processes with real-time priority 98. I use the scheduler SCHED_FIFO for the processes that I have created in user space.


359     1 TS   19      - mount.ntfs /dev/disk/by-uuid/AC72763B72760A7A /root
366     2 TS   39      - [loop0]

What can I do to run my processes uninterrupted by these kind of kernel processes?

  • Generic Linux is a preemptive operating system and if you try to hack around that, you'll probably make the system unhappy. If you truly need real-time behavior, then you need a real real-time OS. I suggest that you confirm that you truly need an RTOS before making the jump; there are many control and monitoring tasks that might have needed RTOS in the past but don't now because computers have gotten so fast. – msw Aug 23 '13 at 10:54
  • Thank you. I'll go for some open source RTOS like RTAI soon if it gets too messy – sagittarius Aug 23 '13 at 15:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.