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)
Mon, Apr 6, 10:36 AM
Unknown Object (File)
Sun, Apr 5, 12:52 PM
Unknown Object (File)
Tue, Mar 31, 12:19 PM
Unknown Object (File)
Tue, Mar 31, 7:11 AM
Unknown Object (File)
Mon, Mar 30, 10:23 AM
Unknown Object (File)
Mon, Mar 30, 2:22 AM
Unknown Object (File)
Sun, Mar 29, 12:40 PM
Unknown Object (File)
Fri, Mar 27, 1:23 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