Jens Axboe
9054650fac
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 >
2020-07-15 09:23:35 -06:00
..
2020-06-19 13:11:26 -07:00
2019-04-30 16:11:57 -06:00
2020-03-21 14:31:03 -06:00
2020-05-29 10:23:24 -06:00
2020-03-21 14:31:00 -06:00
2020-02-03 06:58:15 -07:00
2020-06-02 17:21:50 -06:00
2020-07-01 07:27:24 -06:00
2019-11-07 12:28:13 -07:00
2019-11-07 12:28:13 -07:00
2020-07-08 17:05:53 -06:00
2020-07-07 11:45:59 -06:00
2020-07-01 07:27:24 -06:00
2020-05-14 09:48:03 -06:00
2020-07-01 07:27:24 -06:00
2020-05-27 05:21:23 -06:00
2020-07-08 16:06:42 -06:00
2020-05-14 09:48:03 -06:00
2020-03-12 07:07:38 -06:00
2020-06-24 09:15:58 -06:00
2020-07-01 08:02:38 -06:00
2018-11-14 08:17:18 -07:00
2020-05-14 09:47:53 -06:00
2020-07-01 07:27:24 -06:00
2019-08-04 21:43:12 -06:00
2019-01-17 21:21:40 -07:00
2020-07-01 07:25:36 -06:00
2019-06-13 03:00:30 -06:00
2019-05-31 15:12:34 -06:00
2019-05-31 15:12:34 -06:00
2020-07-10 07:58:09 -06:00
2019-07-23 07:25:09 -06:00
2019-11-04 07:14:10 -07:00
2020-06-30 12:57:59 -06:00
2020-07-08 16:06:42 -06:00
2020-03-17 20:55:21 +01:00
2020-07-10 07:58:33 -06:00
2020-07-01 22:58:32 -06:00
2019-09-12 07:11:56 -06:00
2018-11-15 12:17:28 -07:00
2020-06-28 08:11:14 -06:00
2019-10-15 10:13:13 -06:00
2020-05-12 20:36:28 -06:00
2019-10-07 21:19:10 -06:00
2018-12-12 06:47:51 -07:00
2020-06-24 09:15:58 -06:00
2020-07-01 07:27:24 -06:00
2020-07-15 09:23:35 -06:00
2020-05-29 16:30:39 -06:00
2020-05-29 16:30:39 -06:00
2020-05-12 20:36:28 -06:00
2020-07-08 16:06:42 -06:00
2020-07-01 07:27:24 -06:00
2020-06-24 09:15:57 -06:00
2020-01-03 09:33:21 +01:00
2017-11-02 11:10:55 +01:00
2019-11-07 12:27:19 -07:00
2020-07-08 16:19:47 -06:00
2020-05-19 09:40:29 -06:00
2019-07-15 09:20:27 -03:00
2020-06-14 01:57:21 +09:00
2020-06-14 01:57:21 +09:00
2020-05-14 09:48:03 -06:00
2020-05-29 10:23:24 -06:00
2020-06-24 09:15:56 -06:00
2020-05-29 10:23:24 -06:00
2020-03-12 08:00:10 -06:00
2020-03-16 18:26:31 -04:00
2020-03-12 08:00:10 -06:00
2020-01-06 20:59:04 -07:00