From: Allison Henderson <achender@linux.vnet.ibm.com>
To: Dave Chinner <david@fromorbit.com>
Cc: linux-fsdevel <linux-fsdevel@vger.kernel.org>,
Eric Sandeen <sandeen@redhat.com>,
Ext4 Developers List <linux-ext4@vger.kernel.org>,
xfs-oss <xfs@oss.sgi.com>
Subject: Re: [XFS Tests Punch Hole 2/3 v3] XFS TESTS: Add Fallocate Punch Hole Test Routines
Date: Fri, 20 May 2011 21:55:18 -0700 [thread overview]
Message-ID: <4DD745B6.4030302@linux.vnet.ibm.com> (raw)
In-Reply-To: <20110521035704.GW32466@dastard>
On 5/20/2011 8:57 PM, Dave Chinner wrote:
> On Fri, May 20, 2011 at 05:46:19PM -0700, Allison Henderson wrote:
>> On 5/19/2011 6:22 PM, Allison Henderson wrote:
>>> Also, there was one more test that I meant to be a part of this
>>> collection, but I was not finished with it at the time I submitted the
>>> patch for feedback. Basically it checks to see if a hole can still be
>>> punched out when the disk is full. In ext4 this is allowable because
>>> reserved space is used to allow the operation to proceed where it would
>>> have otherwise failed. I'm not sure if this is also ext4 specific
>>> though. Would this be another candidate for adding to 252? Thx!
>>
>> I just didnt want this question to get washed away in the traffic.
>> I am working on an updated patch set, should I include the extra
>> test case? Thx!
>
> Yes, though probably not in the _generic_test_punch function. And
> extra case specific to 252 that does something like:
>
> umount SCRATCH_DEV
> make a small filesystem
> scratch_mount
> prealloc to ENOSPC
> punch
>
>
> Cheers,
>
> Dave.
Thx Dave, I will include include it once I get it working in the
xfstests frame work. The code for it though ended up being a little
more complex than what you have there. This one might be easier to talk
about with the code in front of us, but I will trying to sum it up quickly:
Because punching a hole does not always require extra blocks, it has to
go through a couple rounds of punching holes, and then "topping off" the
file system to 100% usage before it is forced to grow the tree in order
to deal with the fragmentation. The growing of the tree is what would
have triggered the ENOSPC on the next punch if not for the use of
reserved blocks. Before this feature was in place, this magic number
appeared to be about 333 iterations for ext4. Once we added it though,
it was able to run through an indefinite cycle of punching out every
other two blocks and topping off the fs (at least until it ran off the
edge of the file it is punching away at). The test case I have calls it
good after 500, but this may be something we may need to tweek in order
for it to be effective for other file systems too.
On a side note, I've hit a bit of a snag at the moment, because it
appears that test 252 hangs when run on ext4. It looks like the call to
get the fiemap doesnt come back for some reason, so I will need to
figure this out first, but when I get it all working, I will get the
updated set out to you asap. Thx for all your help, Dave. I really
appreciate all the thorough reviews! :)
Allison Henderson
prev parent reply other threads:[~2011-05-21 4:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-18 20:58 [XFS Tests Punch Hole 2/3 v3] XFS TESTS: Add Fallocate Punch Hole Test Routines Allison Henderson
2011-05-19 1:31 ` Dave Chinner
2011-05-19 1:41 ` Joel Becker
2011-05-19 18:26 ` Allison Henderson
2011-05-19 23:36 ` Sunil Mushran
2011-05-19 23:56 ` Dave Chinner
2011-05-20 1:22 ` Allison Henderson
2011-05-21 0:46 ` Allison Henderson
2011-05-21 3:57 ` Dave Chinner
2011-05-21 4:55 ` Allison Henderson [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=4DD745B6.4030302@linux.vnet.ibm.com \
--to=achender@linux.vnet.ibm.com \
--cc=david@fromorbit.com \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=sandeen@redhat.com \
--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;
as well as URLs for NNTP newsgroup(s).