All of lore.kernel.org
 help / color / mirror / Atom feed
From: Walker, Benjamin <benjamin.walker at intel.com>
To: spdk@lists.01.org
Subject: Re: [SPDK] Tool to monitor disk activity
Date: Wed, 12 Oct 2016 17:40:21 +0000	[thread overview]
Message-ID: <1476294019.63592.86.camel@intel.com> (raw)
In-Reply-To: CAG=8psVWYvBxCKp6ikZRr7g8oiS_PaEbD=HvfKrq9u_+=f39-Q@mail.gmail.com

[-- Attachment #1: Type: text/plain, Size: 2110 bytes --]

On Wed, 2016-10-12 at 04:02 +0000, Naoki Iwakami wrote:
> Hello,
> 
> I am looking for a way to monitor disk activity while I access an SSD via
> SPDK.
> For example, any disk activity does not appear in vmstat or iostat
> while I am running SPDK perf tool.
> I understand it is expected, but I wonder if there is any tool
> available to replace iostat for SPDK.
> Or is there any SPDK API method that helps probing disk activities?
> 

I think this is an important problem to solve as SPDK matures into a solution
used in production deployments, and we've been giving it some thought. Today,
our only available tool is our tracing library (include/spdk/trace.h,
lib/trace), which is an efficient mechanism to add small trace points to the
code. The trace points are placed in a shared memory region that can be mapped
by other tools to do analysis. We're currently investigating either expanding
this (adding well documented tracepoints instead of the ad hoc ones we have in
there now), or changing the format. At some point someone really needs to write
a simplified
iostat-like tool that consumes these tracepoints and displays I/Ops and
bandwidth. We have a very basic example of how this would work (app/iscsi_top)
that displays live connection statistics for the iSCSI target, so maybe that's a
reasonable starting point. It would be awesome if someone from the community
took on the task of formalizing the tracepoints and writing the tool!

We're also working on multi-process support for the NVMe driver, which means
multiple processes
will be able to create I/O queues for the same NVMe device. This could
potentially allow tools to attach to an active SPDK process and send commands
directly to the SSD to query
performance metrics, if the SSD provides them. I think our long term vision for
this feature is to enable support for configuration and management of SPDK-owned 
NVMe SSDs with the standard nvme-cli tool, but we're quite a ways off yet.

We're very open to ideas and feedback in this area if anyone has anything to say
on the subject!

> Thank you,

             reply	other threads:[~2016-10-12 17:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-12 17:40 Walker, Benjamin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-10-12  4:02 [SPDK] Tool to monitor disk activity Naoki Iwakami

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=1476294019.63592.86.camel@intel.com \
    --to=spdk@lists.01.org \
    /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.