Ask Your Question
4

How does changing the scheduler/nice value compare to applying the PREEMPT_RT patch to the Linux kernel?

asked 2021-10-15 11:00:00 +0000

plato gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2021-08-19 19:00:00 +0000

david gravatar image

Changing the scheduler/nice value and applying the PREEMPT_RT patch to the Linux kernel are two different approaches to achieve real-time performance in a Linux system.

Changing the scheduler/nice value can affect the priority level of processes, but it may not provide deterministic behavior for real-time applications. It may also not guarantee that a process will get all the CPU resources it needs for its desired performance.

On the other hand, applying the PREEMPT_RT patch to the Linux kernel provides hard real-time performance by ensuring that all processes can be preempted at any time, even if they are in a critical section. This means that real-time processes can get immediate access to CPU resources without delay, which is essential for applications such as control systems, robotics, and video/audio streaming.

In summary, changing the scheduler/nice value can improve performance for non-critical applications, while applying the PREEMPT_RT patch is necessary for hard real-time applications that require deterministic behavior and immediate access to CPU resources.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-10-15 11:00:00 +0000

Seen: 10 times

Last updated: Aug 19 '21