]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "block/mq-deadline: Prioritize high-priority requests"
authorJens Axboe <axboe@kernel.dk>
Thu, 26 Aug 2021 18:59:44 +0000 (12:59 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 26 Aug 2021 18:59:44 +0000 (12:59 -0600)
commitd3460acb6820bf810c7cd0837a9f7129c50cf5ea
tree7220ad3f581eaa5fbad9ad0d86cd23dc2c5878c4
parentadc62f941703f9fa41ce778c13e1ffa1e2b7788c
Revert "block/mq-deadline: Prioritize high-priority requests"

This reverts commit cf498422e2ef887f2c56647e19480c9e9367cd0f.

Zhen reports that this commit slows down mq-deadline on a 128 thread
box, going from 258K IOPS to 170-180K. My testing shows that Optane
gen2 IOPS goes from 2.3M IOPS to 1.2M IOPS on a 64 thread box.

Looking in detail at the code, the main culprit here is needing to sum
percpu counters in the dispatch hot path, leading to very high CPU
utilization there. To make matters worse, the code currently needs to
sum 2 percpu counters, and it does so in the most naive way of iterating
possible CPUs _twice_.

Since we're close to release, revert this commit and we can re-do it
with regular per-priority counters instead for the 5.15 kernel.

Link: https://lore.kernel.org/linux-block/20210826144039.2143-1-thunder.leizhen@huawei.com/
Reported-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/mq-deadline.c