From: "Jörn Engel" <joern@logfs.org>
To: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
Cc: Steven Rostedt <rostedt@goodmis.org>, linux-scsi@vger.kernel.org
Subject: Re: [RFC][PATCH] Add a flight data recorder for scsi commands
Date: Wed, 28 Aug 2013 10:28:31 -0400 [thread overview]
Message-ID: <20130828142831.GC15917@logfs.org> (raw)
In-Reply-To: <1377666559.32763.249.camel@haakon3.risingtidesystems.com>
On Tue, 27 August 2013 22:09:19 -0700, Nicholas A. Bellinger wrote:
> On Tue, 2013-08-27 at 18:17 -0400, Jörn Engel wrote:
> > Here is a fun patch in an early state. Essentially I want to trace
> > scsi commands, which has already been done long ago. The problem I
> > have is that I care about all the scsi commands for one particular
> > device - without knowing in advance which device it will be. Once I
> > know the device in question, I want to dump the last X commands.
> >
> > The existing tracing is covering all commands to all devices. So
> > either I have to oversize my trace buffer and dump way too much, or I
> > will miss the stuff I am interested in most of the time. Hence my
> > per-device trace buffer (called fdr to avoid namespace collisions).
> >
>
> Sounds like a useful idea..
>
> However, it adds another kmalloc + spin_lock -> spin_unlock in the fast
> path for each struct scsi_cmnd I/O dispatch, which is exactly what the
> scsi-mq prototype code is trying to avoid at all costs.
Agreed. It shouldn't be too hard to replace the spin_lock with
cmpxchg, maybe even rcu. And for the common case, one could reuse the
old buffer, getting rid of kmalloc overhead as well.
For the time being I will likely skip the work and see whether the
existing patch actually catches something useful. First prove the
quick hack to be useful, then optimize the hell out of it.
Jörn
--
No art, however minor, demands less than total dedication if you want
to excel in it.
-- Leon Battista Alberti
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2013-08-28 16:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20130827220325.GB7293@logfs.org>
2013-08-27 22:17 ` [RFC][PATCH] Add a flight data recorder for scsi commands Jörn Engel
2013-08-28 5:09 ` Nicholas A. Bellinger
2013-08-28 14:28 ` Jörn Engel [this message]
2013-08-28 12:45 ` Bart Van Assche
2013-08-28 14:32 ` Jörn Engel
2013-08-27 23:54 ` Steven Rostedt
2013-08-27 22:41 ` Jörn Engel
2013-08-28 0:34 ` Steven Rostedt
2013-08-28 14:19 ` Jörn Engel
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=20130828142831.GC15917@logfs.org \
--to=joern@logfs.org \
--cc=linux-scsi@vger.kernel.org \
--cc=nab@linux-iscsi.org \
--cc=rostedt@goodmis.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox