Page MenuHomeFreeBSD

bhyve/virtio-scsi: unlimit max_sectors
ClosedPublic

Authored by rosenfeld_grumpf.hope-2000.org on Oct 30 2025, 7:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Feb 19, 4:00 AM
Unknown Object (File)
Tue, Feb 17, 3:44 AM
Unknown Object (File)
Thu, Feb 5, 6:51 PM
Unknown Object (File)
Dec 30 2025, 11:34 AM
Unknown Object (File)
Dec 28 2025, 10:45 AM
Unknown Object (File)
Dec 27 2025, 9:28 PM
Unknown Object (File)
Dec 17 2025, 12:09 PM
Unknown Object (File)
Dec 11 2025, 11:00 AM

Details

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 Not Applicable
Unit
Tests Not Applicable