[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <eaf4f9a8-dfc6-402e-4a1a-732034d1512d@kernel.dk>
Date: Wed, 7 Dec 2022 10:08:50 -0700
From: Jens Axboe <axboe@...nel.dk>
To: Gulam Mohamed <gulam.mohamed@...cle.com>,
linux-block@...r.kernel.org
Cc: philipp.reisner@...bit.com, lars.ellenberg@...bit.com,
christoph.boehmwalder@...bit.com, minchan@...nel.org,
ngupta@...are.org, senozhatsky@...omium.org, colyli@...e.de,
kent.overstreet@...il.com, agk@...hat.com, snitzer@...nel.org,
dm-devel@...hat.com, song@...nel.org, dan.j.williams@...el.com,
vishal.l.verma@...el.com, dave.jiang@...el.com,
ira.weiny@...el.com, junxiao.bi@...cle.com,
martin.petersen@...cle.com, kch@...dia.com,
drbd-dev@...ts.linbit.com, linux-kernel@...r.kernel.org,
linux-bcache@...r.kernel.org, linux-raid@...r.kernel.org,
nvdimm@...ts.linux.dev, konrad.wilk@...cle.com
Subject: Re: [RFC] block: Change the granularity of io ticks from ms to ns
On 12/6/22 11:15?AM, Gulam Mohamed wrote:
> Use ktime to change the granularity of IO accounting in block layer from
> milli-seconds to nano-seconds to get the proper latency values for the
> devices whose latency is in micro-seconds. After changing the granularity
> to nano-seconds the iostat command, which was showing incorrect values for
> %util, is now showing correct values.
>
> We did not work on the patch to drop the logic for
> STAT_PRECISE_TIMESTAMPS yet. Will do it if this patch is ok.
>
> The iostat command was run after starting the fio with following command
> on an NVME disk. For the same fio command, the iostat %util was showing
> ~100% for the disks whose latencies are in the range of microseconds.
> With the kernel changes (granularity to nano-seconds), the %util was
> showing correct values. Following are the details of the test and their
> output:
As mentioned, this will most likely have a substantial performance
impact. I'd test it, but your patch is nowhere near applying to the
current block tree. Please resend it against for-6.2/block so it can
get tested.
--
Jens Axboe
Powered by blists - more mailing lists