Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what is the benefit for using aio in bcache? #20

Closed
wangwang3210 opened this issue Jul 1, 2019 · 1 comment
Closed

what is the benefit for using aio in bcache? #20

wangwang3210 opened this issue Jul 1, 2019 · 1 comment

Comments

@wangwang3210
Copy link

In my environment

  1. when I use aio engine created by create_async_io_engine()

time lvs

real 0m0.093s
user 0m0.017s
sys 0m0.009s

  1. when I close aio engine by setting use_aio=0 in /etc/lvm/lvm.conf

time lvs

real 0m0.026s
user 0m0.007s
sys 0m0.019s

I wonder why adding aio feature to lvm? It takes much time when call io_setup io_destroy. Actually, it doesn't make scanning faster.
Thanks

@zkabelac
Copy link
Contributor

zkabelac commented Jul 1, 2019

Hi

You need to compare with different number of devices. If you have very low number of devices that are very fast (i.e. nearly zero latency NVMe) - there will be close to 0 benefit of aio (or even it may get slightly slower due to extra expensive syscalls).

But once you start to work with hundreds of disks which also do have some seek time - there should be measurable improvement of scanning time.

If there is not - that there is bug somewhere in code - i.e. some regression - adding extra reads... in all case it would be then worth to report as bug - be sure to provide reproducible test and trace (-vvvv) with timestamps in this case then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants