LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   why too mach requests will increase IO latency (https://www.linuxquestions.org/questions/linux-kernel-70/why-too-mach-requests-will-increase-io-latency-4175728541/)

plznobug 08-31-2023 05:40 AM

why too mach requests will increase IO latency
 
I am learning block layer. I found a patch in this link.https://patchwork.kernel.org/project...ei@redhat.com/

He mentioned in it that "the default nr_requests for scheduler is too big for small queuedepth devices, and latency is increased much."

I don't understand why a too larger nr_requests can let to bad effect.
If there are few requests, wouldn't it quickly exhaust the tags and cause IO blocking?

smallpond 09-01-2023 09:45 AM

The bad cases for I/O frequently have one greedy process launching a lot of I/O and other victim processes launching few. What happens to latency for the victims if you let the greedy process fill the queue instead of blocking?


All times are GMT -5. The time now is 06:27 PM.