mbox series

[v2,0/8] vhost-scsi: Memory reduction patches

Message ID 20241203191705.19431-1-michael.christie@oracle.com (mailing list archive)
Headers show
Series vhost-scsi: Memory reduction patches | expand

Message

Mike Christie Dec. 3, 2024, 7:15 p.m. UTC
The following patches were made over Linus's tree and also apply over
the mst vhost branch. They reduce the memory use for vhost-scsi.

For a simple device with 1 queue and 128 cmds we use around 25 MB. These
patches allow us to reduce that to 8.2 MB when supporting up to 128 8 MB
IOs (the current passthrough max size).

For a more complex device with 16 queues we use around 2.5 GB. These
patches allow us to reduce that to 77.1 MB when supporting 1024 8 MB IOs.

v2
- Rebase against current trees/branches.
- Fix email threading.

Comments

Stefan Hajnoczi Dec. 4, 2024, 8:47 p.m. UTC | #1
On Tue, Dec 03, 2024 at 01:15:07PM -0600, Mike Christie wrote:
> The following patches were made over Linus's tree and also apply over
> the mst vhost branch. They reduce the memory use for vhost-scsi.
> 
> For a simple device with 1 queue and 128 cmds we use around 25 MB. These
> patches allow us to reduce that to 8.2 MB when supporting up to 128 8 MB
> IOs (the current passthrough max size).
> 
> For a more complex device with 16 queues we use around 2.5 GB. These
> patches allow us to reduce that to 77.1 MB when supporting 1024 8 MB IOs.
> 
> v2
> - Rebase against current trees/branches.
> - Fix email threading.
> 

Nice improvement! I haven't reviewed the patches in detail but this
sounds good.

Acked-by: Stefan Hajnoczi <stefanha@redhat.com>