All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ming Lei <ming.lei@redhat.com>
To: Josh Hunt <johunt@akamai.com>
Cc: Mikulas Patocka <mpatocka@redhat.com>,
	"Jayaramappa, Srilakshmi" <sjayaram@akamai.com>,
	"yukuai (C)" <yukuai3@huawei.com>,
	"axboe@kernel.dk" <axboe@kernel.dk>,
	"snitzer@redhat.com" <snitzer@redhat.com>,
	"linux-block@vger.kernel.org" <linux-block@vger.kernel.org>
Subject: Re: Precise disk statistics
Date: Thu, 28 Apr 2022 08:12:02 +0800	[thread overview]
Message-ID: <Ymnb0nvUGksjby3y@T590> (raw)
In-Reply-To: <63116fb6-bc11-d551-6734-f5407c8f3af4@akamai.com>

On Wed, Apr 27, 2022 at 12:32:25PM -0700, Josh Hunt wrote:
> On 4/27/22 02:57, Mikulas Patocka wrote:
> > > [+ Mikulas and Ming]
> > > 
> > > I see. Thank you for the response, Kuai, appreciate it.
> > > 
> > > The conversation here https://urldefense.com/v3/__https://lkml.org/lkml/2020/3/24/1870__;!!GjvTz_vk!US3LozmCgynsWtz-1LkwhFPTXfY0XZNT7XKAw9GSNjZn0JkehqevMU7StsFKkjsS9b1hfGRsOCu0e1E$  hints at
> > > potential improvements to io_ticks tracking.
> > > 
> > > @Mikulas, Mike, please let us know if you have plans for more accurate
> > > accounting or if there is some idea we can work on and submit a patch.
> > 
> > I know that the accounting is not accurate, but more accurate accounting
> > needed a shared atomic variable and it caused performance degradation. So,
> > we don't plan to improve the accounting.
> 
> Thanks this is all very helpful.
> 
> If we know the accounting is not accurate then is there any reason to keep
> it around? What value is it providing? Also, should we update tools that use
> ioticks like iostat to report that disk utilization is deprecated and should
> not be referred to going forward?


man iostat
...
      %util
             Percentage of elapsed time during which I/O requests were issued to the device (bandwidth utilization
             for the device). Device saturation occurs when this value is close to 100% for  devices  serving  re‐
             quests  serially.  But for devices serving requests in parallel, such as RAID arrays and modern SSDs,
             this number does not reflect their performance limits.
...

As you saw, %util isn't accurate from the beginning. If you want a bit more accurate
accounting before applying 5b18b5a73760 ("block: delete part_round_stats and switch
to less precise counting"), it can be done easily by one simple bcc/bpftrace prog
with extra cost.


Thanks,
Ming


      reply	other threads:[~2022-04-28  0:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1650661324247.40468@akamai.com>
2022-04-25 19:35 ` Precise disk statistics Jayaramappa, Srilakshmi
2022-04-26  6:25   ` yukuai (C)
2022-04-26 23:56     ` Jayaramappa, Srilakshmi
2022-04-27  9:57       ` Mikulas Patocka
2022-04-27 19:32         ` Josh Hunt
2022-04-28  0:12           ` Ming Lei [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Ymnb0nvUGksjby3y@T590 \
    --to=ming.lei@redhat.com \
    --cc=axboe@kernel.dk \
    --cc=johunt@akamai.com \
    --cc=linux-block@vger.kernel.org \
    --cc=mpatocka@redhat.com \
    --cc=sjayaram@akamai.com \
    --cc=snitzer@redhat.com \
    --cc=yukuai3@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.