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
DiskANN will assign an I/O context to each thread when doing
io_setup()
,MAX_EVENTS
timesthe number of threads
should not exceed theaio-max-nr
in the system.MAX_EVENTS
is1024
in DiskANN. The defaultaio-max-nr
is 65536, so the maximum number of threads is64
.To check the value of
aio-max-nr
on the system, runTo change, run
Related Knowhere issue and fix https://github.com/milvus-io/knowhere/pull/379