All of lore.kernel.org
 help / color / mirror / Atom feed
From: Neil Brown <neilb@suse.de>
To: Paul Clements <paul.clements@steeleye.com>
Cc: Linux Raid <linux-raid@vger.kernel.org>
Subject: Re: [PATCH 1/1] md: expose behind writes counter
Date: Tue, 15 Dec 2009 08:32:09 +1100	[thread overview]
Message-ID: <20091215083209.1ea23291@notabene.brown> (raw)
In-Reply-To: <4B266E40.4080202@steeleye.com>

On Mon, 14 Dec 2009 11:56:32 -0500
Paul Clements <paul.clements@steeleye.com> wrote:

> This is a very simple patch that exposes the behind_writes counter of an 
> md array via a sysfs entry. This is helpful when tuning the value of 
> behind_writes. Knowing, for instance, the maximum value over time allows 
> one to set a proper upper value for an array.
>

Hi Paul,
 while I can see that this information could be useful, I wonder if this is
 the best way of accessing it.
 I imagine that the count of behind_writes would change quite quickly, so you
 would need to sample it at quite a high rate to get a meaningful number.

 I'm very conscious that the 'active_stripes' number provided by RAID5 is
 close to useful as it almost always reads a 'zero' even when the array is
 quite busy.

 Maybe having a sysfs attribute that reports the maximum value, and allow
 that maximum to be reset by writing to the attribute?

 Or possibly a counter reporting the number of requests that were not
 treated as 'write_behind' because the max had been reached.  Then you could
 increase the max_write_behind until the counter stopped increasing - or it's
 rate of increase dropped to an acceptable level.

 Does any of that work for you?

NeilBrown

  reply	other threads:[~2009-12-14 21:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-14 16:56 [PATCH 1/1] md: expose behind writes counter Paul Clements
2009-12-14 21:32 ` Neil Brown [this message]
2009-12-17 22:08   ` Paul Clements

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=20091215083209.1ea23291@notabene.brown \
    --to=neilb@suse.de \
    --cc=linux-raid@vger.kernel.org \
    --cc=paul.clements@steeleye.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.