From: Andrew Morton <akpm@osdl.org>
To: Neil Brown <neilb@cse.unsw.edu.au>
Cc: linux-raid@vger.kernel.org
Subject: Re: [PATCH] md - 2 of 10 - Don't allow raid5 rebuild to swamp raid5 stripe cache
Date: Thu, 15 Jan 2004 17:55:15 -0800 [thread overview]
Message-ID: <20040115175515.0f064aa7.akpm@osdl.org> (raw)
In-Reply-To: <16391.16842.560527.897653@notabene.cse.unsw.edu.au>
Neil Brown <neilb@cse.unsw.edu.au> wrote:
>
> On Thursday January 15, akpm@osdl.org wrote:
> > NeilBrown <neilb@cse.unsw.edu.au> wrote:
> > >
> > > + if (sh == NULL) {
> > > + sh = get_active_stripe(conf, sector_nr, pd_idx, 0);
> > > + /* make sure we don't swamp the stripe cache if someone else
> > > + * is trying to get access
> > > + */
> > > + yield();
> > > + }
> >
> > In 2.6, yield() has utterly awful behaviour when there are a lot of other
> > runnable tasks.
> >
> > Have you tested this when the kernel is busy doing other stuff, like a
> > `make -j2' or a few busywait loops? You might find that rebuild simply
> > stops.
> >
>
> No I haven't, and I'm not near my test box today, so it would be
> awkward.
OK. We had a yeild like that in ext3 for a while. The CPU scheduler
changes killed it stone dead. I ended up just making it a schedule(),
which is too weak and probably broke the transaction batching speedup :(
> No other patches are dependant on that one so you can just leave it
> out if you like.
OK. It'll take a few days after Linus gets back from .au to get all this
stuff flushed out anyway. I'll probably have >700 patches by then.
> I just want to wait until every other runnable process has had a
> turn. Maybe cond_resched() would be better?? I try some things out.
There isn't an equivalent, really. We could add one to the CPU scheduler.
With HZ=1000 you'll probably find that a brief schedule_timeout() is OK.
blk_congestion_wait() probably does the wrong thing too.
prev parent reply other threads:[~2004-01-16 1:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-16 1:19 [PATCH] md - 2 of 10 - Don't allow raid5 rebuild to swamp raid5 stripe cache NeilBrown
2004-01-16 1:33 ` Andrew Morton
2004-01-16 1:43 ` Neil Brown
2004-01-16 1:55 ` Andrew Morton [this message]
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=20040115175515.0f064aa7.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@cse.unsw.edu.au \
/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).