All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc MERLIN <marc@merlins.org>
To: linux-raid@vger.kernel.org
Subject: Re: Can reading a raid drive trigger all the other drives in that set?
Date: Thu, 1 Sep 2011 18:23:27 -0700	[thread overview]
Message-ID: <20110902012327.GK30313@merlins.org> (raw)
In-Reply-To: <20110628162205.GG20420@merlins.org>

On Tue, Jun 28, 2011 at 09:22:05AM -0700, Marc MERLIN wrote:
> I have ext4 over lvm2 on a sw raid5 with 2.6.39.1
> 
> In order to save power I have my drives spin down.
> 
> When I access my filesystem mount point, I get hangs of 30sec or a bit more
> as each and every drive are woken up serially.
> 
> Is there any chance to put a patch in the block layer so that when it gets a
> read on a block after a certain timeout, it just does one dummy read on all
> the other droves in parallel so that all the drives have a chance to spin
> back up at the same time and not serially?

Ok, so the lack of answer probably means 'no' :)

Given that, is there a user space way to do this?
I'm thinking I might be able to poll drives every second to see if they
were spun down and got an IO. If any drive gets an IO, then the other
ones all get a dummy read, although I'd have to make sure that read is
random so that it can't be in the cache.

I take it there is no such code in existence yet, correct? :)

Thanks,
Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/

  reply	other threads:[~2011-09-02  1:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-31  2:20 Decoding marvel + Sil PMP errors / NCQ disabled due to excessive errors / 1.5G downgrade Marc MERLIN
2011-06-28 16:22 ` Can reading a raid drive trigger all the other drives in that set? Marc MERLIN
2011-09-02  1:23   ` Marc MERLIN [this message]
2011-09-02 21:28     ` Doug Dumitru
2011-09-03  5:13       ` Marc MERLIN
2011-09-24 22:33       ` Marc MERLIN
2011-09-02 23:09 ` Decoding marvel + Sil PMP errors / NCQ disabled due to excessive errors / 1.5G downgrade Mark Lord

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=20110902012327.GK30313@merlins.org \
    --to=marc@merlins.org \
    --cc=linux-raid@vger.kernel.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.