[PATCH] nvme: add cond_resched() to nvme_complete_batch()

Keith Busch kbusch at kernel.org
Mon May 15 13:40:52 PDT 2023


On Tue, May 02, 2023 at 08:54:12PM +0800, jiweisun126 at 126.com wrote:
> From: Jiwei Sun <sunjw10 at lenovo.com>
> 
> A soft lockup issue will be triggered when do fio test on a 448-core
> server, such as the following warning:

...

> According to the above two logs, we can know the nvme_irq() cost too much
> time, in the above case, about 4.8 second. And we can also know that the
> main bottlenecks is in the competition for the spin lock pool->lock.

The most recent 6.4-rc has included a significant changeset to the pool
allocator that may show a considerable difference in pool->lock timing.
It would be interesting to hear if it changes your observation with your
448-core setup. Would you be able to re-run your experiements that
produced the soft lockup with this kernel on that machine?



More information about the Linux-nvme mailing list