From: Eric Blake <eblake@redhat.com>
To: Stefan Hajnoczi <stefanha@gmail.com>,
Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Cc: kwolf@redhat.com, qemu-block@nongnu.org, armbru@redhat.com,
qemu-devel@nongnu.org, mreitz@redhat.com,
nshirokovskiy@virtuozzo.com, den@openvz.org
Subject: Re: [Qemu-devel] [PATCH v2 1/2] block/accounting: introduce latency histogram
Date: Thu, 8 Mar 2018 11:31:03 -0600 [thread overview]
Message-ID: <49f2f289-ce1c-6e24-8b54-bb5b5c1601bc@redhat.com> (raw)
In-Reply-To: <20180306153213.GK31045@stefanha-x1.localdomain>
On 03/06/2018 09:32 AM, Stefan Hajnoczi wrote:
> On Wed, Feb 07, 2018 at 03:50:36PM +0300, Vladimir Sementsov-Ogievskiy wrote:
>> Introduce latency histogram statics for block devices.
>> For each accounted operation type latency region [0, +inf) is
>> divided into subregions by several points. Then, calculate
>> hits for each subregion.
>>
>> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
>> ---
> According to Wikipedia and Mathworld, "intervals" and "bins" are
> commonly used terms:
> https://en.wikipedia.org/wiki/Histogram
> http://mathworld.wolfram.com/Histogram.html
>
> I suggest:
>
> typedef struct {
> /* The following histogram is represented like this:
> *
> * 5| *
> * 4| *
> * 3| * *
> * 2| * * *
> * 1| * * * *
> * +------------------
> * 10 50 100
> *
> * BlockLatencyHistogram histogram = {
> * .nbins = 4,
> * .intervals = {10, 50, 100},
> * .bins = {3, 1, 5, 2},
> * };
The name 'intervals' is still slightly ambiguous: does it hold the
boundary point (0-10 for 10 slots, 10-50 for 40 slots, 50-100, for 50
slots, then 100-INF) or is it the interval size of each slot (first bin
is 10 slots for 0-10, next bin is 50 slots wide so 10-60, next bin is
100 slots wide so 60-160, everything else is 160-INF). But the
ascii-art diagram plus the text is sufficient to resolve the intent if
you keep that name (I don't have a suggestion for a better name).
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
next prev parent reply other threads:[~2018-03-08 17:31 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-07 12:50 [Qemu-devel] [PATCH v2 0/2] block latency histogram Vladimir Sementsov-Ogievskiy
2018-02-07 12:50 ` [Qemu-devel] [PATCH v2 1/2] block/accounting: introduce " Vladimir Sementsov-Ogievskiy
2018-03-05 14:36 ` Vladimir Sementsov-Ogievskiy
2018-03-06 15:32 ` Stefan Hajnoczi
2018-03-08 17:31 ` Eric Blake [this message]
2018-03-08 18:14 ` Vladimir Sementsov-Ogievskiy
2018-03-08 18:21 ` Vladimir Sementsov-Ogievskiy
2018-03-08 18:58 ` Vladimir Sementsov-Ogievskiy
2018-03-08 19:49 ` Eric Blake
2018-02-07 12:50 ` [Qemu-devel] [PATCH v2 2/2] qapi: add block latency histogram interface Vladimir Sementsov-Ogievskiy
2018-03-06 15:58 ` Stefan Hajnoczi
2018-02-07 13:20 ` [Qemu-devel] [PATCH v2 0/2] block latency histogram no-reply
2018-02-07 13:29 ` Vladimir Sementsov-Ogievskiy
2018-02-15 9:38 ` [Qemu-devel] ping " Vladimir Sementsov-Ogievskiy
2018-03-02 10:27 ` Vladimir Sementsov-Ogievskiy
2018-03-06 16:00 ` [Qemu-devel] " Stefan Hajnoczi
2018-03-06 17:49 ` Emilio G. Cota
2018-03-08 11:42 ` Vladimir Sementsov-Ogievskiy
2018-03-08 18:56 ` Emilio G. Cota
2018-03-08 19:07 ` Vladimir Sementsov-Ogievskiy
2018-03-08 20:05 ` Emilio G. Cota
2018-03-08 17:32 ` Eric Blake
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=49f2f289-ce1c-6e24-8b54-bb5b5c1601bc@redhat.com \
--to=eblake@redhat.com \
--cc=armbru@redhat.com \
--cc=den@openvz.org \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=nshirokovskiy@virtuozzo.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
--cc=vsementsov@virtuozzo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).