Skip to content

Performance enhancements

Keith Busch linux-block linux-nvme 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 30 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3nvme/pci: Start request after doorbell ringdrivers/nvme/host/pci.c+1 -212 replies
2/3nvme/pci: Remove cq_vector check in IO pathdrivers/nvme/host/pci.c+2 -97 replies
3/3block: Polling completion performance optimizationfs/block_dev.c+4 -111 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchJens AxboeSagi Grimberg
1/3
2/3R-b R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] Performance enhancements

A few IO micro-optimizations for IO polling and NVMe. I'm really working to close the performance gap with userspace drivers, and this gets me halfway there on latency. The fastest hardware I could get measured roundtrip read latency at 5usec with this series that was previously measuring 5.7usec.

Note with NVMe, you really need to crank up the interrupt coalescing to see the completion polling benefit.

Test pre-setup:

echo performance | tee /sys/devices/system/cpu/cpufreq/policy*/scaling_governor echo 0 > /sys/block/nvme0n1/queue/iostats
echo -1 > /sys/block/nvme0n1/queue/io_poll_delay
nvme set-feature /dev/nvme0 -f 8 -v 0x4ff

fio profile:

[global]
ioengine=pvsync2
rw=randread
norandommap
direct=1
bs=4k
hipri

[hi-pri]
filename=/dev/nvme0n1
cpus_allowed=2

Keith Busch (3):
nvme/pci: Start request after doorbell ring nvme/pci: Remove cq_vector check in IO path
block: Polling completion performance optimization

 drivers/nvme/host/pci.c | 14 +++-----------
 fs/block_dev.c          |  5 ++++-
 2 files changed, 7 insertions(+), 12 deletions(-)
Signature · 1 line
2.13.6