[Top] [All Lists]

Re: mkfs.xfs error creating large agcount an raid

To: Marcus Pereira <marcus@xxxxxxxxxxx>
Subject: Re: mkfs.xfs error creating large agcount an raid
From: Stan Hoeppner <stan@xxxxxxxxxxxxxxxxx>
Date: Sat, 25 Jun 2011 21:09:16 -0500
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <4E063BC6.9000801@xxxxxxxxxxx>
References: <4E063BC6.9000801@xxxxxxxxxxx>
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20110616 Thunderbird/3.1.11
On 6/25/2011 2:49 PM, Marcus Pereira wrote:
> I have an issue when creating xfs volume using large agcounts on raid
> volumes.

Yes, you do have an issue, but not the one you think.

> /dev/md0 is a 4 disks raid 0 array:
> ----------------------------------------
> # mkfs.xfs -V
> mkfs.xfs version 3.1.4
> # mkfs.xfs -d agcount=1872 -b size=4096 /dev/md0 -f

mkfs.xfs queries mdraid for its parameters and creates close to the
optimal number of AGs, sets the stripe width, etc, all automatically.
The default number of AGs for striped mdraid devices is 16 IIRC, and
even that is probably a tad too high for a 4 spindle stripe.  Four or
eight AGs would probably be better here, depending on your workload,
which you did not state.  Please state your target workload.

At 1872 you have 117 times the number of default AGs.  The two main
downsides to doing this are:

1. Abysmal performance due to excessive head seeking on an epic scale
2. Premature drive failure due to head actuator failure

Now, the above assumes your "4 disks" are mechanical drives.  If these
are actually SSDs then the hardware won't suffer failures, but
performance will likely be far less than optimal.

Why are you attempting to create an insane number of allocation groups?
 What benefit do you expect to gain from doing so?

Regardless of your answer, the correct answer is that such high AG
counts only have downsides, and zero upside.


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