Skip to contentSkip to conversation

Low-latency desktop setting

Xenomai Yogi A. Patel 2 participants 3 messages Aug 28, 2014

lore
Share & tools
lore
#0 lore raw

In configuring the kernel (after patching with xenomai), there is an option to change the preemption model to "low-latency desktop".

Is this a setting that should be set? Or should it be left to the default preemption mode??

How does this setting affect the real-time performance of a xenomai enabled kernel?

--
Yogi A. Patel
(828) 291.6715
yapatel.org | @yapatel525

#1 lore raw
Quoted 8 lines · Yogi A. Patel

In configuring the kernel (after patching with xenomai), there is an option to change the preemption model to "low-latency desktop".

Is this a setting that should be set? Or should it be left to the default preemption mode??

How does this setting affect the real-time performance of a xenomai enabled kernel?

This option is about Linux preemption, it affects how often Linux is willing to preempt itself, in the throughput/latency fight, it gives advantage to (Linux) latency at the expense of througput. It does not affect Xenomai directly, but rather indirectly: it creates a code with a lower "density", by littering the Linux kernel execution with checks for the need of rescheduling, so that Linux has a larger pollution effect on caches. In my experience, you get slightly lower Linux latencies by turning CONFIG_PREEMPT off (selecting CONFIG_PREEMPT_NONE).

Signature · 1 line
                                                                Gilles.
#2 lore raw
Quoted 10 lines · Gilles Chanteperdrix
Quoted 8 lines · Yogi A. Patel

In configuring the kernel (after patching with xenomai), there is an option to change the preemption model to "low-latency desktop".

Is this a setting that should be set? Or should it be left to the default preemption mode??

How does this setting affect the real-time performance of a xenomai enabled kernel?

Quoted 9 lines

This option is about Linux preemption, it affects how often Linux is willing to preempt itself, in the throughput/latency fight, it gives advantage to (Linux) latency at the expense of througput. It does not affect Xenomai directly, but rather indirectly: it creates a code with a lower "density", by littering the Linux kernel execution with checks for the need of rescheduling, so that Linux has a larger pollution effect on caches. In my experience, you get slightly lower Linux latencies by turning CONFIG_PREEMPT off (selecting CONFIG_PREEMPT_NONE).

I meant you get lower XENOMAI latencies by turning it off. Of course you get higher Linux latencies.

Signature · 1 line
                                                                Gilles.