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)
Sun, Aug 16, 3:45 AM
Unknown Object (File)
Thu, Aug 13, 6:07 PM
Unknown Object (File)
Thu, Aug 13, 4:39 PM
Unknown Object (File)
Sun, Aug 9, 8:58 PM
Unknown Object (File)
Sun, Aug 2, 1:33 AM
Unknown Object (File)
Sun, Aug 2, 12:46 AM
Unknown Object (File)
Sat, Aug 1, 6:19 AM
Unknown Object (File)
Jul 25 2026, 11:46 PM

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