[Top] [All Lists]

Re: xfs tuning for a 830 GB partition (mkfs.xfs options)

To: Abel Coto <whitewolf573@xxxxxxxxx>
Subject: Re: xfs tuning for a 830 GB partition (mkfs.xfs options)
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Thu, 9 Dec 2010 12:05:31 +1100
Cc: xfs@xxxxxxxxxxx
In-reply-to: <AANLkTimkZB20eqywSPvwh00gcXWcr4_Eqm5u40P6RqaJ@xxxxxxxxxxxxxx>
References: <AANLkTimkZB20eqywSPvwh00gcXWcr4_Eqm5u40P6RqaJ@xxxxxxxxxxxxxx>
User-agent: Mutt/1.5.20 (2009-06-14)
On Wed, Dec 08, 2010 at 08:32:28PM +0100, Abel Coto wrote:
> I want to create a 830 GB partition, to mount as /home in my Centos 5.4
> workstation.
> Actually i have /home not mounted ,so i would have to create the new
> partition in the lvm,format it and use rsync to copy /home directory to it.
> for a 830 GB partition that i will use to save my data in general and also
> 3d / CG projects and renders once finished them what agcount value should be
> used. I have read that mkfs default option creates 1 allocation group each
> 4G , so i understand that for a 830 GB partition agcount should be 208.
> It is this correct ?

No, you've read something that is at least 5 years out of date. Just
use the defaults - they are already optimised for best performance
in most circumstances.

> I have read that too much allocation groups are bad , but i don't now if 416
> are  too much for a 830 GB partition (and shoukd use 208 to 300) or not.

Any more than 4 AGs on a single spindle is bad for performance. AGs
can be up to 1TB in size, so you're going to get 4 as the default
for your 830GB partition.

> I will mount the partition with logbufs=8. (i use a 128m journal and
> logbufs=8 to improve a bit deleting performance). I will perhaps use noatime
> too ,but i have to see if my backup app, uses atime or not.

logbufs=8 is the default. Also, the default atime option is relatime
which has pretty much zero compareeed to noatime, so once again just
use the defaults.

> for this partition , that will handle mostly big files (500 MB to 2-3 GB at
> least) what mkfs.xfs options should i use ?

The defaults.


Dave Chinner

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