Re: Virtio-scsi multiqueue irq affinity
From: Thomas Gleixner
Date: Mon May 10 2021 - 15:56:53 EST
Yihang,
On Mon, May 10 2021 at 16:48, xuyihang wrote:
> 在 2021/5/8 20:26, Thomas Gleixner 写道:
>> Can you please provide a more detailed description of your system?
>> - Kernel version
> This experiment run on linux-4.19
Again. Please provide reports against the most recent mainline version
and not against some randomly picked kernel variant.
> If we make some change on this experiment:
>
> 1. Make this RT application use less CPU time instead of 100%, the problem
> disappear.
>
> 2, If we change rq_affinity to 2, in order to avoid handle softirq on
> the same core of RT thread, the problem also disappear. However, this approach
> result in about 10%-30% random write proformance deduction comparing
> to rq_affinity = 1, since it may has better cache utilization.
> echo 2 > /sys/block/sda/queue/rq_affinity
>
> Therefore, I want to exclude some CPU from managed irq on boot
> parameter,
Why has this realtime thread to run on CPU0 and cannot move to some
other CPU?
> which has simliar approach to 11ea68f553e2 ("genirq, sched/isolation:
> Isolate from handling managed interrupts").
Why can't you use the existing isolation mechanisms?
Thanks,
tglx