diff options
author | Jens Axboe <[email protected]> | 2015-01-22 12:07:58 -0700 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2015-01-29 09:25:34 -0800 |
commit | ac3dd5bd128b1d1ce2a037775766f39d06a4848a (patch) | |
tree | 9e6390eac98ffbbe5d7d82e6c585125ed9bba0cf /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 4ca5829ac8b1297715bf609443ade2c332f3fd0c (diff) |
NVMe: avoid kmalloc/kfree for smaller IO
Currently we allocate an nvme_iod for each IO, which holds the
sg list, prps, and other IO related info. Set a threshold of
2 pages and/or 8KB of data, below which we can just embed this
in the per-command pdu in blk-mq. For any IO at or below
NVME_INT_PAGES and NVME_INT_BYTES, we save a kmalloc and kfree.
For higher IOPS, this saves up to 1% of CPU time.
Signed-off-by: Jens Axboe <[email protected]>
Reviewed-by: Keith Busch <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions