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.
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
Asked: 2021-10-15 11:00:00 +0000
Seen: 10 times
Last updated: Aug 19 '21
What is the process by which the kernel launches an executable binary file on a Linux system?
When the process is aware of how to handle, why does it transfer control flow to the kernel?
How can I eliminate deleted conda environments that still show up in jupyter-lab?
How to monkey patch minio.New function in Go?
What could be the reason that my docker container is not accepting my patch?
How can I add up the value of a different layer's field when it intersects with a polygon in QGIS?
What is the method for de-linearizing the value of the depth buffer?
What is the expected outcome of the math.floor function in terms of the return value?