Received: with ECARTIS (v1.0.0; list linux-xfs); Wed, 11 May 2005 08:16:35 -0700 (PDT) Received: from omx2.sgi.com (omx2-ext.sgi.com [192.48.171.19]) by oss.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id j4BFGUOv011669 for ; Wed, 11 May 2005 08:16:30 -0700 Received: from ledzep.americas.sgi.com (ledzep.americas.sgi.com [198.149.16.14]) by omx2.sgi.com (8.12.11/8.12.9/linux-outbound_gateway-1.1) with ESMTP id j4BGxeuE021370 for ; Wed, 11 May 2005 09:59:40 -0700 Received: from [128.162.232.50] (stout.americas.sgi.com [128.162.232.50]) by ledzep.americas.sgi.com (8.12.9/8.12.10/SGI_generic_relay-1.2) with ESMTP id j4BFF30F14838362; Wed, 11 May 2005 10:15:04 -0500 (CDT) Message-ID: <42822177.3010607@sgi.com> Date: Wed, 11 May 2005 10:15:03 -0500 From: Eric Sandeen User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bub Thomas CC: linux-xfs@oss.sgi.com, Braehler Uwe , Lindenkreuz Morris , Waldschmidt Stefan Subject: Re: Every new file goes into a new ag References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-archive-position: 5191 X-ecartis-version: Ecartis v1.0.0 Sender: linux-xfs-bounce@oss.sgi.com Errors-to: linux-xfs-bounce@oss.sgi.com X-original-sender: sandeen@sgi.com Precedence: bulk X-list: linux-xfs Content-Length: 1725 Lines: 38 If you have a "rotorstep" systune in your xfs codebase you might play with that; otherwise try making the size of your inode bigger (at mkfs time) so that you don't get into inode32 mode. (or, if you're on a 64-bit machine, mount with the "inode64" option to make 64-bit inodes). for large filesystems, xfs must ensure that inode numbers don't go over 32 bits. To do that, inodes are allocated in the lower part of the fileysstem, and files are allocated round-robin through the AGs. rotorstep changes that round-robin behavior to switch to a new AG every (X) new files, instead of every (1) new file. If you can get out of inode32 mode by either mounting with 64-bit inodes on a 64-bit machine, or making the inode size larger (affects the inode numbering scheme) then files created in a single directory will generally be allocated in the same AG. -Eric Bub Thomas wrote: > Hi there, > I just got XFS running under RedHat EL 3.0. > Since I need high bandwidth for media playout, where in our case each > and every frame of a film image sequence is a new file, I need file > sequences being physically close to each other. > I'm struggling with the fact that consecutive files on a new filesystem > don't get consecutive inode numbers. It seems that every new file ends > up in a new ag. > Thus the read performance for consecutive files is very poor > I tried it with two different kernels which are > 2.4.21-27.0.2.EL.sgi9.i386 and 2.4.21-15.0.4.EL.sgi3.i38. with both the > effect is the same. > My filesystem is located on a JBOD array on 14 FC-2 disks with less then > 2 TByte and the kernel config CONFIG_LBD not set. > The volume on the JBOD I use is made with LVM. > Any help welcome. > Thomas Bub