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)
Tue, Sep 22, 8:53 PM
Unknown Object (File)
Sun, Sep 6, 8:03 PM
Unknown Object (File)
Sun, Sep 6, 7:03 PM
Unknown Object (File)
Sun, Sep 6, 6:47 AM
Unknown Object (File)
Sat, Sep 5, 12:29 PM
Unknown Object (File)
Sat, Sep 5, 1:32 AM
Unknown Object (File)
Fri, Sep 4, 8:50 PM
Unknown Object (File)
Aug 16 2026, 3:45 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