[Top] [All Lists]

Re: XFS - issues with writes using sync

To: Dave Chinner <david@xxxxxxxxxxxxx>
Subject: Re: XFS - issues with writes using sync
From: Amit Sahrawat <amit.sahrawat83@xxxxxxxxx>
Date: Thu, 20 Jan 2011 12:39:26 +0530
Cc: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=mxKE3k8NAA9ohNDPs+nY40a+HIINFt3ct2JaJFQUHQU=; b=nOYm4mBmJ721lSixichDZ05o/2xxqemA9UtDb6X5IMW7NGzNKD9ybZOEsExAz6t9/O QfeMfV8zkxG41Jj0mnmscQO8uqvaNWE1LUd5CbLH9ahufObJfCUITyqsdSDoaPGuA7hP AamSCgl4XGK62K6kjIsxgkvvnZEIPv0ns36Eo=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=FocKMmsFJ8IKwQLGKo2roCQvRUfPcbZMjEidmtD/+/95jIvBz8mkm+dmOQpXbu3V3d g4FUyEZpo3CrEt+z8uBe/RzPM+c0Ng/jp63bMKFqOtYW2Og3vOd9JKO2rHzmM37TKQgZ eNQlVfHJo7V41d32sU2/OM0rNNRR6/TIg7elI=
In-reply-to: <20110120064137.GS16267@dastard>
References: <AANLkTin22efc0cHSmM+2rNQpE2aJoobQCnMwbNUjw617@xxxxxxxxxxxxxx> <20110120051720.GR16267@dastard> <AANLkTik0KUQaRzLeBNR8M=u+ijO6gAZu601zyCp2zmDS@xxxxxxxxxxxxxx> <20110120064137.GS16267@dastard>

On Thu, Jan 20, 2011 at 12:11 PM, Dave Chinner <david@xxxxxxxxxxxxx> wrote:
On Thu, Jan 20, 2011 at 11:37:44AM +0530, Amit Sahrawat wrote:
> Hi,
> I will try to find out the cause for this.
> Meanwhile, just a small request/suggestion - in the past this type of
> testcases have helped us in finding many problems in XFS.
> Can something like this be added to xfstests? This might help.

Definitely.  We're always looking for more people to add tests that
expose problems to xfstests. :) We try to keep individual test
runtime to as little as possible - under 5 minutes for the auto
group, under 15s for the quick group, but by the looks of it the
test you are running doesn't take that long to run.
>> Yes, the test case we are using is not taking much time this time to cause issue - around 3-4 minutes.
FWIW, there are already tests that cause worst case filesystem
fragmentation as part of their test setup (e.g. test 042) but the
coverage of such issues could definitely be improved. Also, the way
we generate fragmented filesystems - by writing files and then
removing a subset - could be greatly sped up by preallocation and
hole punching. There's no need to write data when we could just use
unwritten extents to do the same thing...
>> We basically fragment by doing following steps:
 Full the disk with same size files (in this case it is 16k)
Then, randomly remove files from the disk.
Doing so, allows us to create files as per our requirement - complete control when we need - single extent, multiple extent files, Btree format file, single leaf file, multiple leaf file - It allows us ease to use XFS.
I hope you are getting what I am trying to say.
But, in this case - it starts causing issue at the very first stage - just copying 16k file to make disk full.
Amit Sahrawat
<Prev in Thread] Current Thread [Next in Thread>