t/io_uring: pre-calculate per-file depth
authorJens Axboe <axboe@kernel.dk>
Thu, 15 Feb 2024 15:17:31 +0000 (08:17 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 15 Feb 2024 15:17:31 +0000 (08:17 -0700)
commit6067863c7016faa8033f4363ba8702fa15063900
treeed012f724955b0b39edf47e11b6998535a4d6c37
parentb5d2b658c867917ebecc228cf7565fb5d246003d
t/io_uring: pre-calculate per-file depth

Rather than do this math every time, just calculate it at setup time
and use that.

Note that there's something wonky with how the depths are distributed,
it's quite common to see the first file eat the majority of the queue
depth, causing multiple file runs to be both slower than they should be,
and with very unevenly distributed depths. To be investigated.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/io_uring.c