diff options
| author | Mike Christie <[email protected]> | 2024-12-03 19:15:08 +0000 |
|---|---|---|
| committer | Michael S. Tsirkin <[email protected]> | 2025-02-25 12:10:46 +0000 |
| commit | 4c1f3a7d74277903b290dd989cbd2ea8627fc925 (patch) | |
| tree | 892639e7e63b47ac4946b6d96b19a5b33f51fac4 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | vduse: add virtio_fs to allowed dev id (diff) | |
| download | kernel-4c1f3a7d74277903b290dd989cbd2ea8627fc925.tar.gz kernel-4c1f3a7d74277903b290dd989cbd2ea8627fc925.zip | |
vhost-scsi: Reduce mem use by moving upages to per queue
Each worker thread can process 1 command at a time so there's no need to
allocate a upages array per cmd. This patch moves it to per queue. Even a
small device with 128 cmds and 1 queue this brings mem use for the array
from
2 MB = 8 bytes per page pointer * 2048 pointers * 128 cmds
to
16K = 8 bytes per pointer * 2048 * 1 queue
Signed-off-by: Mike Christie <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Acked-by: Stefan Hajnoczi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
