linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: "Bryn M. Reeves" <bmr@redhat.com>
To: dm-devel@redhat.com
Cc: linux-lvm@redhat.com
Subject: [linux-lvm] dmioscope: visualise IO distribution for DM devices
Date: Tue, 27 Sep 2016 14:56:45 +0100	[thread overview]
Message-ID: <20160927135644.GA29650@localhost.localdomain> (raw)

I wanted to give a quick plug for a little tool I've been working on for
the last few weeks: dmioscope is a python script that uses device-mapper
statistics to generate histograms of IO distribution on a DM device:

# python dmioscope.py -C READS -b 6 3 0 vg_hex/root
Initialised READS adaptive histogram with 6 bins,
min_size=1677721.
vg_hex/root: current IO distribution
        0.0            2000.0         4000.0         6000.0         8000.0         
         +-------------------------------------------------------------
0.0B     |#######
5.3GiB   |#####################################################
10.7GiB  |#####
16.0GiB  |###
21.3GiB  |
26.7GiB  |
90.00% of IO reaches 50.00% of disk.
[...]

(watch reads, six bins, interval of 3s, carry on forever)

It's useful for finding and tracking hot-spots in real time, and for
getting a general picture of where IO is going to on a device. I'm
hoping it can also be used to get an idea of the benefits that can
be achieved with caching.

I've pushed it to GitHub - if anyone finds any bugs, or has any
suggestions, I'm very interested to hear them: there's a README.md with
usage information and more details on the histogram implementation on
the main page:

  https://github.com/bmr-cymru/dmioscope

Regards,
Bryn.

                 reply	other threads:[~2016-09-27 13:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20160927135644.GA29650@localhost.localdomain \
    --to=bmr@redhat.com \
    --cc=dm-devel@redhat.com \
    --cc=linux-lvm@redhat.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).