From: Chris Mason <chris.mason@oracle.com>
To: Roland Dreier <rdreier@cisco.com>
Cc: Ingo Molnar <mingo@elte.hu>,
Frederic Weisbecker <fweisbec@gmail.com>,
Andi Kleen <andi@firstfloor.org>,
LKML <linux-kernel@vger.kernel.org>,
Jeff Mahoney <jeffm@suse.com>,
Alexander Beregalov <a.beregalov@gmail.com>,
Bron Gondwana <brong@fastmail.fm>,
Reiserfs <reiserfs-devel@vger.kernel.org>,
Al Viro <viro@zeniv.linux.org.uk>,
Andrea Gelmini <andrea.gelmini@gmail.com>,
"Trenton D. Adams" <trenton.d.adams@gmail.com>,
Thomas Meyer <thomas@m3y3r.de>,
Alessio Igor Bogani <abogani@texware.it>,
Marcel Hilzinger <mhilzinger@linuxnewmedia.de>,
Edward Shishkin <edward.shishkin@gmail.com>
Subject: Re: [ANNOUNCE] Reiserfs/kill-bkl tree v2
Date: Mon, 3 Aug 2009 09:26:59 -0400 [thread overview]
Message-ID: <20090803132659.GC3570@think> (raw)
In-Reply-To: <adatz0po5cn.fsf@cisco.com>
On Sun, Aug 02, 2009 at 10:04:40PM -0700, Roland Dreier wrote:
>
> > Well, dont waste too much time on it (beyond the due diligence
> > level) - Andi forgot that the right way to stress-test patches is to
> > get through the review process and then through the integration
> > trees which have far more test exposure than any single contributor
> > can test.
> >
> > Patch submitters cannot possibly test every crazy possibility that
> > is out there - nor should they: it just doesnt scale. What we expect
> > people to do is to write clean patches, to test the bits on their
> > own boxes and submit them to lkml and address specific review
> > feedback.
>
> I respectfully disagree in this case. For patches that touch, say,
> something hardware dependent where the patch submitter doesn't have all
> the variations on the hardware, yes, I agree, scale the testing by
> running the code on many machines. But for the code in question, where
> some very fundamental and complex changes are being made to filesystem
> locking, I don't think that testing really scales -- after all, if there
> is some race then it's quite likely that testers will just see some rare
> filesystem corruption, which could easily waste weeks of debugging
> before the BKL/reiserfs patches were even implicated.
Definitely, the cost of the rare bug is much higher. The good news is
that reiserfs tends to pile its races into a few spots. Most of them
can be found with a 12 hour run of the namesys stress.sh program and a
lot of memory pressure. I'd compile with preemption on and you'll have
a good test on any SMP machine.
http://oss.oracle.com/~mason/stress.sh
stress.sh just copies a source directory into the test filesystem, then
reads it back and deletes it in a loop. I'd run with 50 procs and
enough memory pressure for the box to lightly swap (booting w/mem= is a
fine way to make memory pressure). This way you make sure to hammer on
the metadata writeback paths, which is where all of the difficult races
come in.
Testing with an fsx-linux process running at the same time will make
sure all of the mmap/truncate paths are working correctly as well.
-chris
next prev parent reply other threads:[~2009-08-03 13:28 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-31 17:46 [ANNOUNCE] Reiserfs/kill-bkl tree v2 Frederic Weisbecker
2009-08-01 8:11 ` Andi Kleen
2009-08-01 15:53 ` Frederic Weisbecker
2009-08-02 14:21 ` Ingo Molnar
2009-08-02 14:32 ` Daniel Walker
2009-08-02 23:41 ` Frank Ch. Eigler
2009-08-03 6:09 ` Ingo Molnar
2009-08-05 22:10 ` Frederic Weisbecker
2009-08-03 5:04 ` Roland Dreier
2009-08-03 13:26 ` Chris Mason [this message]
2009-08-03 13:56 ` Ingo Molnar
2009-08-05 22:13 ` Frederic Weisbecker
2009-08-09 23:27 ` [PATCH] kill-the-bkl/reiserfs: fix early readdir offset increment Frederic Weisbecker
2009-08-05 21:59 ` [ANNOUNCE] Reiserfs/kill-bkl tree v2 Frederic Weisbecker
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=20090803132659.GC3570@think \
--to=chris.mason@oracle.com \
--cc=a.beregalov@gmail.com \
--cc=abogani@texware.it \
--cc=andi@firstfloor.org \
--cc=andrea.gelmini@gmail.com \
--cc=brong@fastmail.fm \
--cc=edward.shishkin@gmail.com \
--cc=fweisbec@gmail.com \
--cc=jeffm@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mhilzinger@linuxnewmedia.de \
--cc=mingo@elte.hu \
--cc=rdreier@cisco.com \
--cc=reiserfs-devel@vger.kernel.org \
--cc=thomas@m3y3r.de \
--cc=trenton.d.adams@gmail.com \
--cc=viro@zeniv.linux.org.uk \
/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