[lkml]   [2021]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v2] lib/raid6: Reduce high latency by using migrate instead of preempt
On Thu, Dec 16, 2021 at 1:27 AM Yajun Deng <> wrote:
> We found an abnormally high latency when executing modprobe raid6_pq, the
> latency is greater than 1.2s when CONFIG_PREEMPT_VOLUNTARY=y, greater than
> 67ms when CONFIG_PREEMPT=y, and greater than 16ms when CONFIG_PREEMPT_RT=y.
> This is caused by ksoftirqd fail to scheduled due to disable preemption,
> this time is too long and unreasonable.
> Reduce high latency by using migrate_disabl()/emigrate_enable() instead of
> preempt_disable()/preempt_enable().
> How to reproduce:
> - Install cyclictest
> sudo apt install rt-tests
> - Run cyclictest example in one terminal
> sudo cyclictest -S -p 95 -d 0 -i 1000 -D 24h -m
> - Modprobe raid6_pq in another terminal
> sudo modprobe raid6_pq
> This patch beneficial for CONFIG_PREEMPT=y and CONFIG_PREEMPT_RT=y, but
> Fixes: fe5cbc6e06c7 ("md/raid6 algorithms: delta syndrome functions")
> Fixes: cc4589ebfae6 ("Rename raid6 files now they're in a 'raid6' directory.")
> Link:
> Signed-off-by: Yajun Deng <>

Updated the patch and CC'ed stable. It should make to LTS kernels.


 \ /
  Last update: 2021-12-16 20:24    [W:0.058 / U:0.844 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site