diff options
author | Jens Axboe <axboe@kernel.dk> | 2021-10-18 14:47:18 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-10-19 20:41:09 +0200 |
commit | a9a7e30fd918588bc312ba782426e3a1282df359 (patch) | |
tree | 469362f97239ca9fb84910917ab683d26038da12 /drivers/rpmsg | |
parent | nvme: move command clear into the various setup helpers (diff) | |
download | linux-a9a7e30fd918588bc312ba782426e3a1282df359.tar.xz linux-a9a7e30fd918588bc312ba782426e3a1282df359.zip |
nvme: don't memset() the normal read/write command
This memset in the fast path costs a lot of cycles on my setup. Here's a
top-of-profile of doing ~6.7M IOPS:
+ 5.90% io_uring [nvme] [k] nvme_queue_rq
+ 5.32% io_uring [nvme_core] [k] nvme_setup_cmd
+ 5.17% io_uring [kernel.vmlinux] [k] io_submit_sqes
+ 4.97% io_uring [kernel.vmlinux] [k] blkdev_direct_IO
and a perf diff with this patch:
0.92% +4.40% [nvme_core] [k] nvme_setup_cmd
reducing it from 5.3% to only 0.9%. This takes it from the 2nd most
cycle consumer to something that's mostly irrelevant.
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/rpmsg')
0 files changed, 0 insertions, 0 deletions