xfs
[Top] [All Lists]

Re: Performance impact of mkfs.xfs vs mkfs.xfs -f

To: "Carlos E. R." <carlos.e.r@xxxxxxxxxxxx>
Subject: Re: Performance impact of mkfs.xfs vs mkfs.xfs -f
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Wed, 26 Aug 2015 11:09:23 +1000
Cc: XFS mailing list <xfs@xxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <55DD0AAF.9090401@xxxxxxxxxxxx>
References: <CABppvi6GdaTQgqpYJi6RhkpjP9ydTV8-2VV8LF9tHSN63XzWtA@xxxxxxxxxxxxxx> <55DCE1CF.5030708@xxxxxxxxxxx> <CABppvi6W5_1GBrb8x1wOAq3X6yraTtt1UYEFE+dBzcXj3yTzrg@xxxxxxxxxxxxxx> <20150825234300.GN714@dastard> <55DD0AAF.9090401@xxxxxxxxxxxx>
User-agent: Mutt/1.5.21 (2010-09-15)
On Wed, Aug 26, 2015 at 02:39:11AM +0200, Carlos E. R. wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> On 2015-08-26 01:43, Dave Chinner wrote:
> > On Tue, Aug 25, 2015 at 04:09:33PM -0700, Shrinand Javadekar 
> > wrote:
> 
> >> Formatted the new disks with mkfs.xfs. Ran the workload. 
> >> Reformatted the disks with mkfs.xfs -f. Ran the workload.
> 
> 
> > Anyway, please post the output so we can see the differences for 
> > ourselves. What we need is mkfs output in both cases, and xfs_info
> >  output in both cases after mount.
> 
> Suggestion (for the OP):
> 
> To reformat a third time without "-f", you can reformat as ext4, then
> format a second time as xfs.

That doesn't work - mkfs.xfs detects that the device has an ext4
filesystem on it, and demands you use -f to overwrite it.

> But to imitate a new disk, you have to
> zero it with dd.

Only the first MB or so - enough for blkid not to be able to see a
filesystem signature on it.

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx

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