Page MenuHomeFreeBSD

bhyve/virtio-scsi: unlimit max_sectors
AcceptedPublic

Authored by rosenfeld_grumpf.hope-2000.org on Oct 30 2025, 7:37 AM.
Tags
None
Referenced Files
F140989205: D53466.id54425.diff
Tue, Dec 30, 11:34 AM
Unknown Object (File)
Sun, Dec 28, 10:45 AM
Unknown Object (File)
Sat, Dec 27, 9:28 PM
Unknown Object (File)
Wed, Dec 17, 12:09 PM
Unknown Object (File)
Thu, Dec 11, 11:00 AM
Unknown Object (File)
Sun, Dec 7, 7:55 AM
Unknown Object (File)
Nov 12 2025, 6:11 PM
Unknown Object (File)
Nov 11 2025, 4:11 PM

Details

Reviewers
jhb
corvink
markj
Group Reviewers
bhyve
Summary

The old default of 2 for max_sectors limits performance significantly
with guest systems where the virtio-scsi driver actually honors this
value.

As CTL doesn't seem to have any limit of the maximum size of a single
transfer, set this to INT32_MAX by default.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 68261
Build 65144: arc lint + arc unit