config PREEMPT_NONE
bool "No Forced Preemption (Server)"
help
This is the traditional Linux preemption model, geared towards
throughput. It will still provide good latencies most of the
time, but there are no guarantees and occasional longer delays
are possible.
Select this option if you are building a kernel for a server or
scientific/computation system, or if you want to maximize the
raw processing power of the kernel, irrespective of scheduling
latencies.
config PREEMPT_VOLUNTARY
bool "Voluntary Kernel Preemption (Desktop)"
help
This option reduces the latency of the kernel by adding more
"explicit preemption points" to the kernel code. These new
preemption points have been selected to reduce the maximum
latency of rescheduling, providing faster application reactions,
at the cost of slightly lower throughput.
This allows reaction to interactive events by allo
Linux调度-关于抢占的几个配置
最新推荐文章于 2024-08-16 21:44:02 发布
本文探讨了Linux调度中的抢占配置,包括PREEMPT_NONE、CONFIG_PREEMPT和CONFIG_PREEMPT_VOLUNTARY。PREEMPT_NONE禁止内核抢占,而CONFIG_PREEMPT允许在中断返回时进行抢占。CONFIG_PREEMPT_VOLUNTARY则在未选CONFIG_PREEMPT时无效,且过多的抢占点可能降低系统吞吐量。RTLinux通过PREEMPT_RT_BASE和PREEMPT_RT_FULL提供硬实时支持。
摘要由CSDN通过智能技术生成