diff options
author | 2020-07-13 15:48:16 -0600 | |
---|---|---|
committer | 2020-07-15 09:23:35 -0600 | |
commit | 9054650fac24b784df8500aba2869ebf240d069a (patch) | |
tree | 46ae23f1a8065541a9a0f3649fc38e57c8ba1c07 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | blk-mq: remove redundant validation in __blk_mq_end_request() (diff) | |
download | wireguard-linux-9054650fac24b784df8500aba2869ebf240d069a.tar.xz wireguard-linux-9054650fac24b784df8500aba2869ebf240d069a.zip |
block: relax jiffies rounding for timeouts
In doing high IOPS testing, blk-mq is generally pretty well optimized.
There are a few things that stuck out as using more CPU than what is
really warranted, and one thing is the round_jiffies_up() that we do
twice for each request. That accounts for about 0.8% of the CPU in
my testing.
We can make this cheaper by avoiding an integer division, by just adding
a rough HZ mask that we can AND with instead. The timeouts are only on a
second granularity already, we don't have to be that accurate here and
this patch barely changes that. All we care about is nice grouping.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions