[Top] [All Lists]

Re: specify agsize?

To: Eric Sandeen <sandeen@xxxxxxxxxxx>
Subject: Re: specify agsize?
From: aurfalien <aurfalien@xxxxxxxxx>
Date: Sat, 13 Jul 2013 21:20:29 -0700
Cc: xfs@xxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=aCI4bljja3KqsN3OFr2DQQ0FKrccYSwwZZhcvTJ1Tps=; b=KZGdz+LnigUNsCBFsH7Zki7LMqTfFkBxnpjqNNv66Vg5IM8jAutkKa5M3Dwe0ZmQpP OIBya5w8coyBXXDtho2cqLR7W10BTuWIZ7dkfsP63qp4MQQm9Kbej2hYgUfmXbKZlKbD 4EWB/DGW6ifA9H3b8Nym/o7wRRnrE/utaoNSnIOEoDcC2ek6Q5XAVV0cyNFSavVALEsZ 7qc5EcXpL7/pBrNhqyGAjeaZ/A9Qndpnd1ukZwOc6ORy4ENNzwQzs7HCyA+2Krx76KRR NKXaVVrwrdGoT0s4xiSpnVs5vFfMo62XH0HRhnFe7vfD96pZMstKNt2ZSlNx1nj5hWqk ZW7A==
In-reply-to: <51E2092D.7090409@xxxxxxxxxxx>
References: <6A14EB72-A699-47AF-937D-D6DA1CF12ACB@xxxxxxxxx> <51E2092D.7090409@xxxxxxxxxxx>
On Jul 13, 2013, at 7:13 PM, Eric Sandeen wrote:

> On 7/13/13 7:11 PM, aurfalien wrote:
>> Hello again,
>> I have a Raid 6 x16 disk array with 128k stripe size and a 512 byte block 
>> size.
>> So I do;
>> mkfs.xfs -f -l size=512m -d su=128k,sw=14 /dev/mapper/vg_doofus_data-lv_data
>> And I get;
>> meta-data=/dev/mapper/vg_doofus_data-lv_data isize=256    agcount=32, 
>> agsize=209428640 blks
>>         =                       sectsz=512   attr=2, projid32bit=0
>> data     =                       bsize=4096   blocks=6701716480, imaxpct=5
>>         =                       sunit=32     swidth=448 blks
>> naming   =version 2              bsize=4096   ascii-ci=0
>> log      =internal log           bsize=4096   blocks=131072, version=2
>>         =                       sectsz=512   sunit=32 blks, lazy-count=1
>> realtime =none                   extsz=4096   blocks=0, rtextents=0
>> All is fine but I was recently made aware of tweaking agsize.
> Made aware by what?  For what reason?

Autodesk has this software called Flame which requires very very fast local 
storage using XFS.  They have an entire write up on how to calc proper agsize 
for optimal performance.

I never mess with agsize but it is required when creating the XFS file system 
for use with Flame.  I realize its tailored for there apps particular IO 
characteristics, so I'm curious about it. 

>> So I would like to mess around and iozone any diffs between the above
>> agcount of 32 and whatever agcount changes I may do.
> Unless iozone is your machine's normal workload, that will probably prove to 
> be uninteresting.

Well, it will give me a base line comparison of non tweaked agsize vs tweaked 

>> I didn't see any mention of agsize/agcount on the XFS FAQ and would
>> like to know, based on the above, why does XFS think I have 32
>> allocation groups with the corresponding size?
> It doesn't think so, it _knows_ so, because it made them itself.  ;)

Yea but based on what?

Why 32 at there current size?

>> And are these optimal
>> numbers?
> How high is up?
> Here's the appropriate faq entry:
> http://xfs.org/index.php/XFS_FAQ#Q:_I_want_to_tune_my_XFS_filesystems_for_.3Csomething.3E

Problem is I run Centos so the line;

"As of kernel 3.2.12, the default i/o scheduler, CFQ, will defeat much of the 
parallelization in XFS. "

... doesn't really apply.

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