Linux AIO: Poor Scaling

前端 未结 3 1314
灰色年华
灰色年华 2021-02-04 07:25

I am writing a library that uses the Linux asynchronous I/O system calls, and would like to know why the io_submit function is exhibiting poor scaling on the ext4 f

3条回答
  •  臣服心动
    2021-02-04 08:18

    My understanding is that very few (if any) filesystems on linux fully supports AIO. Some filesystem operations still block, and sometimes io_submit() will, indirectly via filesystem operations, invoke such blocking calls.

    My understanding is further that the main users of kernel AIO primarily care about AIO being truly asynchronous on raw block devices (i.e. no filesystem). essentially database vendors.

    Here's a relevant post from the linux-aio mailing list. (head of the thread)

    A possibly useful recommendation:

    Add more requests via /sys/block/xxx/queue/nr_requests and the problem will get better.

提交回复
热议问题