guihecheng commented on pull request #3168: URL: https://github.com/apache/ozone/pull/3168#issuecomment-1060533870
> What is a realistic limit of concurrent reads in a client? I don't image a client will work well reading 1000 large files concurrently, and then what is a good fixed thread pool size? In such a case, having it fixed at 14 threads is going to limit throughput. It would probably need to be an elastic pool with a reasonably high upper limit to avoid a user needing to know about a configuration option to adjust the thread limit. Well, here I a raised a case that involves big files, but actually even the file is not so big, we got to create thread pools concurrently for each corrupted file under reconstruction, so this is a possible scenario. For a good fixed thread pool size this is an issue to discuss after we reach an agreement on the idea of a client global thread pool. We may also refer to the number of cores available on the client to adjust this number dynamically. And one more thing, I don't think more threads help to increase IO throughput since the threads are usually asynchronously sending works and waiting the response which are not CPU-intensive works. You could see from the screen captures above that reconstruct read performance doesn't decrease with much less threads. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
