diff options
| author | Guixin Liu <[email protected]> | 2022-02-16 10:21:49 +0800 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2022-02-22 21:11:07 -0500 |
| commit | c7ede4f044b92d2b46a022890af2285834e8105a (patch) | |
| tree | f465a5a3eb074e1e2f468605c2970c3d199fda0a /tools/perf/scripts/python/flamegraph.py | |
| parent | 1f652aa0e469ecd870f01f2ab7cf01b4ab71d9b1 (diff) | |
scsi: target: tcmu: Make cmd_ring_size changeable via configfs
Make cmd_ring_size changeable similar to the way it is done for
max_data_area_mb. The reason is that our tcmu client will create thousands
of tcmu instances, and this will consume lots of mem with default 8Mb cmd
ring size for every backstore.
One can change the value by typing:
echo "cmd_ring_size_mb=N" > control
The "N" is a integer between 1 to 8, if set 1, the cmd ring can hold about
6k cmds(tcmu_cmd_entry about 176 byte) at least.
The value is printed when doing:
cat info
In addition, a new readonly attribute 'cmd_ring_size_mb' returns the value
in read.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Xiaoguang Wang <[email protected]>
Reviewed-by: Bodo Stroesser <[email protected]>
Signed-off-by: Guixin Liu <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions