Re: Runtime overhead of PREEMPT_DYNAMIC

From: Emanuele Rocca
Date: Fri Oct 20 2023 - 10:42:24 EST


On 2023-10-20 04:34, Mike Galbraith wrote:
> Hm, I don't recall the overhead as being that bad, but thar she blows.
>
> i7-4790 avg cmdline
> 6.5.8-voluntary 3685.08 3679.93 3704.98 3689.99 1.000
> 6.5.8-dynamic 3571.62 3568.61 3550.55 3563.59 .965
> 3052.06 3032.74 3019.93 3034.91 .822 +DEBUG_PREEMPT
> 3651.37 3599.87 3615.18 3622.14 .981 preempt=none
> 3459.58 3514.09 3539.88 3504.51 .949 preempt=full

Perfect, that's in line with my measurements (~20% overhead). Debian
kernels have CONFIG_DEBUG_PREEMPT=y, it seems wise to set it to 'n'
instead. Thank you.