[RFCv2] nvme-pci: adjust tagset parameters to match b/w
Martin K. Petersen
martin.petersen at oracle.com
Wed Oct 13 09:04:49 PDT 2021
Keith,
> Instead of auto-adjusting the timeout to cope with the worst case
> scenario, this version adjusts the IO depth and max transfer size so
> that the worst case scenario fits within the driver's timeout
> tolerance.
I am totally in agreement with the concept of preventing mismatched
queue depth and I/O timeout.
I am a bit concerned wrt. PCIe bandwidth as a measure since that is not
necessarily representative of a drive's actual performance. But
obviously the queue feedback mechanism is still a bit of a can of
worms. For a sanity check, PCIe bandwidth is definitely acceptable.
> + static const u32 min_bytes = 128 * 1024;
> + static const u32 min_depth = 128;
Not sure about 128 as min depth. We have seen workloads where 32 or 64
performed best in practice although the drive internally had more
command slots available.
Also, haven't looked closely at your algorithm yet (impending meeting),
just want to point out that the default 30 seconds is a totally
unacceptable timeout for many of the things we care about. Our I/O
timeout is typically set to a couple of seconds. My hunch is that the
algorithm needs to take into account. In the past we have been bitten by
scaling algorithms that were essentially linear in nature and failed to
pick sensible defaults at very low input values or timeouts.
Anyway. Will have a closer look later.
--
Martin K. Petersen Oracle Linux Engineering
More information about the Linux-nvme
mailing list