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

MAX_EVENTS times Thread Number should not exceed aio-max-nr #1

Open
PwzXxm opened this issue Sep 29, 2022 · 0 comments
Open

MAX_EVENTS times Thread Number should not exceed aio-max-nr #1

PwzXxm opened this issue Sep 29, 2022 · 0 comments

Comments

@PwzXxm
Copy link
Collaborator

PwzXxm commented Sep 29, 2022

DiskANN will assign an I/O context to each thread when doing io_setup(), MAX_EVENTS times the number of threads should not exceed the aio-max-nr in the system.

MAX_EVENTS is 1024 in DiskANN. The default aio-max-nr is 65536, so the maximum number of threads is 64.

To check the value of aio-max-nr on the system, run

sudo sysctl -a | grep fs.aio-max-nr

To change, run

sudo sysctl -w fs.aio-max-nr=X

Related Knowhere issue and fix milvus-io/knowhere#379

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

1 participant