public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: Christoph Hellwig <hch@lst.de>, xfs@oss.sgi.com
Subject: Re: [RFC] btree test harness
Date: Sat, 16 Aug 2008 00:02:03 +0200	[thread overview]
Message-ID: <20080815220203.GA25942@lst.de> (raw)
In-Reply-To: <20080814005755.GF6119@disturbed>

> > does it's own freelist to avoid having to call in the alloc code
> > and make it even slower.
> 
> I'll have a closer look in a while. It's just a bitmap array, right?

Yes, it's just a trivial bitmap of all blocks.

> > I'd also like some input on how interface to userspace.  Doing it during
> > mount but conditional would be one option, the other one an ioctl -
> > in both cases I'd like to be able to specify up to which maxlevel to go
> > as the tests for higher levels can take forever.
> 
> I was thinking of a couple of approaches when I started on this
> harness:
> 
> 	- similar to RCU torture tests, the btree test harness is
> 	  run on XFS intialisation if config'd in. Requires faking a
> 	  struct xfs_mount, though, and isn't configurable.
> 	- ioctl interface to run each test operation individually,
> 	  and hook that up to an xfsqa test that used a sparse
> 	  loopback mounted filesytem to exercise AG sizes up to 1TB.
> 
> I think the second approach allows us to test btrees on demand on
> arbitrary disposable filesystems. It would also allow us to easily
> extend the test harness over time - a new xfsqa test group could be
> added so that each test can be written as a standalone test so
> that we can easily isolate regressions.

Faking up the mount doesn't really wrok, we need a _lot_ of fields
in there, plus a buftarg plus a real xfs_trans and thus the whole log
subsystem, so we need a real filesystem anyway.  With the way I use a
separate btree I can just use up the whole filesystem without making
it sprase.  But yes, splitting things into individual ioctls makes sense
to make the tests a little more flexible.

       reply	other threads:[~2008-08-15 22:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20080813223022.GA15025@lst.de>
     [not found] ` <20080814005755.GF6119@disturbed>
2008-08-15 22:02   ` Christoph Hellwig [this message]
2008-08-31 22:24 ` [RFC] btree test harness Christoph Hellwig

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=20080815220203.GA25942@lst.de \
    --to=hch@lst.de \
    --cc=xfs@oss.sgi.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox