xfs
[Top] [All Lists]

Re: XFS drops create/delete files to 6.6% of EXT3 (software raid) and to

To: Michael Darling <darlingm@xxxxxxxxx>
Subject: Re: XFS drops create/delete files to 6.6% of EXT3 (software raid) and to 0.6% of EXT3 (3ware hardware raid)
From: David Chinner <dgc@xxxxxxx>
Date: Thu, 24 Apr 2008 16:31:02 +1000
Cc: David Chinner <dgc@xxxxxxx>, Eric Sandeen <sandeen@xxxxxxxxxxx>, xfs@xxxxxxxxxxx
In-reply-to: <c33e4330804232323p1b6d5121oc56b0c43663a4e84@xxxxxxxxxxxxxx>
References: <c33e4330804231848n72ce683cqd48a8d45937f302@xxxxxxxxxxxxxx> <4810062F.50100@xxxxxxxxxxx> <20080424053358.GW103491721@xxxxxxx> <c33e4330804232323p1b6d5121oc56b0c43663a4e84@xxxxxxxxxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
On Thu, Apr 24, 2008 at 02:23:45AM -0400, Michael Darling wrote:
> Eric, for the numbers you provided, are you using a single drive, software
> raid, or hardware raid?  If a hardware raid, is it a 3ware card?
> 
> I hadn't seen the nobarrier mount option before.  Using that changes
> sequential creates from about 190/second to about 2500/second, and changes
> sequential deletes from about 170/second to about 3700/second.
> 
> I don't yet have a BBU for the 3ware card, but would certainly get one if we
> go with the 3ware card before we start putting real data on the raid.  Am I
> right that with a BBU unit and a battery backup for the server as a whole,
> that nobarrier would be safe to use?

Are you using write caching on the RAID card? If yes, then you need a BBU
for the card if you want to enable the write cache safely.

> Not using nobarrier, but using logbsize 256k changes sequential creates from
> about 190/second to about 270/second.  So, it's an improvement, but no where
> near where a software raid performs (1600/second) or where the hardware raid
> performs with nobarrier.

Sounds like the hardware RAID is doing a full cache flush on barrier I/Os
which will cause lots and lots RMW cycles in the back end. i.e. slow.

Software raid ignores barriers, so is unsafe with any write cache turned
on (and that goes for any filesystem, not just XFS).

Cheers,

Dave.
-- 
Dave Chinner
Principal Engineer
SGI Australian Software Group


<Prev in Thread] Current Thread [Next in Thread>