diff options
author | Mike Christie <michael.christie@oracle.com> | 2024-12-03 22:15:14 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2025-02-25 15:10:46 +0300 |
commit | fd47976581333765964f4ce0ea01176fa1e646d5 (patch) | |
tree | ebdaa531e50bbd712b560893113a4f01eb522cff /tools/perf/scripts/python/gecko.py | |
parent | ddc5b5f68ec553a037a822f81150acbbdefa3ad1 (diff) | |
download | linux-fd47976581333765964f4ce0ea01176fa1e646d5.tar.xz |
vhost-scsi: Allocate iov_iter used for unaligned copies when needed
It's extremely rare that we get unaligned requests that need to drop
down to the data copy code path. However, the iov_iter is almost 5% of
the mem used for the vhost_scsi_cmd. This patch has us allocate the
iov_iter only when needed since it's not a perf path that uses the
struct. This along with the patches that removed the duplicated fields on
the vhost_scsd_cmd allow us to reduce mem use by 1 MB in mid size setups
where we have 16 virtqueues and are doing 1024 cmds per queue.
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Message-Id: <20241203191705.19431-8-michael.christie@oracle.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions