Page MenuHomeFreeBSD

hyperv/storvsc: tune storage performance by changing io max and channel selection
ClosedPublic

Authored by honzhan_microsoft.com on Aug 24 2016, 6:43 AM.
Tags
None
Referenced Files
F120767812: D7622.diff
Fri, Jun 20, 10:36 PM
Unknown Object (File)
Tue, Jun 17, 9:19 PM
Unknown Object (File)
Sat, Jun 14, 4:52 PM
Unknown Object (File)
Mon, Jun 9, 6:48 AM
Unknown Object (File)
Apr 15 2025, 2:11 AM
Unknown Object (File)
Mar 20 2025, 5:51 AM
Unknown Object (File)
Mar 12 2025, 6:31 AM
Unknown Object (File)
Feb 27 2025, 11:55 AM

Details

Summary

Storage performance IOPS or latency will degrade under multiple thread test with FIO, when comparing with Linux for Hyper-V. The possible reasons are:
(1) IO request queue is not as long as Linux.
(2) outgoing channels were not fully utilized.

So, this fix targets to improve the storage performance by 2.2X on Azure with RAID0 (12 SSD 1T disks) after enlarging the max io request queue, and considering both CPUID and LUN for channel selection.

Submitted by: Hongjiang Zhang <honzhan microsoft com>

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

honzhan_microsoft.com retitled this revision from to hyperv/storvsc: tune storage performance by changing io max and channel selection.
sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
139

Since the variable is u_int, we should use SYSCTL_UINT here.

723

We probably should combine this two lines. Since ch_sel is only used once here.

sys/dev/hyperv/vmbus/vmbus_chan.c
1333 ↗(On Diff #19615)

I don't think we need this. vmbus_subchan_get() is already there.

sys/dev/hyperv/vmbus/vmbus_chanvar.h
92

This does not look correct :P

136

Probably put it in drivers instead of in channel. Not all drivers need this stat.

This revision was automatically updated to reflect the committed changes.