Received: with ECARTIS (v1.0.0; list linux-xfs); Wed, 30 Mar 2005 22:13:54 -0800 (PST) Received: from quail.cita.utoronto.ca (quail.cita.utoronto.ca [128.100.76.6]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id j2V6DomC029495 for ; Wed, 30 Mar 2005 22:13:51 -0800 Received: from cita.utoronto.ca (lemming.cita.utoronto.ca [128.100.76.53]) by quail.cita.utoronto.ca (8.12.11/8.12.11) with ESMTP id j2V6DjVV018721 for ; Thu, 31 Mar 2005 01:13:45 -0500 Received: from lemming.cita.utoronto.ca (localhost [127.0.0.1]) by cita.utoronto.ca (8.13.1/8.13.1) with ESMTP id j2V6DjH8001942 for ; Thu, 31 Mar 2005 01:13:45 -0500 Received: (from rjh@localhost) by lemming.cita.utoronto.ca (8.13.1/8.13.1/Submit) id j2V6Djne001941 for linux-xfs@oss.sgi.com; Thu, 31 Mar 2005 01:13:45 -0500 Date: Thu, 31 Mar 2005 01:13:45 -0500 From: Robin Humble To: linux-xfs@oss.sgi.com Subject: Re: RHEL 4 -- how build kernel with xfs? Message-ID: <20050331061345.GA32325@lemming.cita.utoronto.ca> References: <200503302123.56513.kewley@gps.caltech.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="X1bOJ3K7DJ5YkBrT" Content-Disposition: inline In-Reply-To: <200503302123.56513.kewley@gps.caltech.edu> User-Agent: Mutt/1.4.1i X-Virus-Scanned: ClamAV 0.83/795/Wed Mar 30 01:58:09 2005 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 5187 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: rjh@cita.utoronto.ca Precedence: bulk X-list: linux-xfs Content-Length: 5681 Lines: 193 --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Mar 30, 2005 at 09:23:56PM -0800, David Kewley wrote: >As you may know, RHEL comes without xfs enabled in the kernel. My >understanding is that RH chose this path because a) they have in-house >expertise in ext3 but not for xfs, and b) they believe that xfs doesn't offer >any advantages to their customers that ext3 cannot provide. a) fair enough b) I think RedHat are wrong eg. bonnie++'s over GigE and NFS to SMP server with 11-disk 3ware raid5 sees significantly better block reads and writes with XFS: Version 1.03 ------Sequential Output------ --Sequential Input- --Random- -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP xfs nfs 64 4G 35820 98 80227 32 4540 91 37642 97 78269 15 469.0 1 ext3 nfs 64 4G 35294 97 56381 18 4094 92 37269 97 71096 14 675.6 2 kernel is recompiled AS4 2.6.9-5.0.3.EL.rootsmp. filesystems are aligned to the raid with mkfs -t xfs -d sunit=128,swidth=1280 /dev/sda1 mkfs -t ext3 -m 1 -R stride=128 /dev/sda1 and default mount options. >Bottom line I want to know is, if I simply take the RHEL 4 kernel source rpm, >enable XFS, and rebuild the kernel (I am fluent enough in these steps), am I See attached patch to apply after you have installed the .src.rpm. Then edit the spec file for any other changes you want, and rpmbuild -ba --target=i686 SPECS/kernel-2.6.spec >likely to have an xfs that is production-quality? If not, what are the production quality? who knows... it hasn't been through RedHat's testing, but seems to work ok for me. good luck. cheers, robin --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="rhel_as4_turn_on_8kstacks_and_xfs.patch" diff -ru redhat/SOURCES/kernel-2.6.9-i686-hugemem.config redhat.fixed/SOURCES/kernel-2.6.9-i686-hugemem.config --- redhat/SOURCES/kernel-2.6.9-i686-hugemem.config 2005-02-14 09:47:27.000000000 -0500 +++ redhat.fixed/SOURCES/kernel-2.6.9-i686-hugemem.config 2005-03-14 21:15:08.000000000 -0500 @@ -6,6 +6,8 @@ # CONFIG_HOTPLUG_CPU is not set CONFIG_LOCALVERSION="" +CONFIG_4KSTACKS=n + # # Code maturity level options # @@ -2077,7 +2079,7 @@ # CONFIG_JFS_DEBUG is not set # CONFIG_JFS_STATISTICS is not set CONFIG_JFS_POSIX_ACL=y -# CONFIG_XFS_FS is not set +CONFIG_XFS_FS=m # CONFIG_XFS_RT is not set CONFIG_XFS_QUOTA=y CONFIG_XFS_POSIX_ACL=y @@ -2387,7 +2389,6 @@ # CONFIG_SND_SGALAXY is not set # CONFIG_SND_SSCAPE is not set # CONFIG_REISERFS_FS is not set -# CONFIG_XFS_FS is not set # CONFIG_AFFS_FS is not set # CONFIG_BEFS_FS is not set # CONFIG_EFS_FS is not set diff -ru redhat/SOURCES/kernel-2.6.9-i686-smp.config redhat.fixed/SOURCES/kernel-2.6.9-i686-smp.config --- redhat/SOURCES/kernel-2.6.9-i686-smp.config 2005-02-14 09:47:27.000000000 -0500 +++ redhat.fixed/SOURCES/kernel-2.6.9-i686-smp.config 2005-03-14 21:15:28.000000000 -0500 @@ -6,6 +6,8 @@ # CONFIG_HOTPLUG_CPU is not set CONFIG_LOCALVERSION="" +CONFIG_4KSTACKS=n + # # Code maturity level options # @@ -2077,7 +2079,7 @@ # CONFIG_JFS_DEBUG is not set # CONFIG_JFS_STATISTICS is not set CONFIG_JFS_POSIX_ACL=y -# CONFIG_XFS_FS is not set +CONFIG_XFS_FS=m # CONFIG_XFS_RT is not set CONFIG_XFS_QUOTA=y CONFIG_XFS_POSIX_ACL=y @@ -2387,7 +2389,6 @@ # CONFIG_SND_SGALAXY is not set # CONFIG_SND_SSCAPE is not set # CONFIG_REISERFS_FS is not set -# CONFIG_XFS_FS is not set # CONFIG_AFFS_FS is not set # CONFIG_BEFS_FS is not set # CONFIG_EFS_FS is not set diff -ru redhat/SOURCES/kernel-2.6.9-i686.config redhat.fixed/SOURCES/kernel-2.6.9-i686.config --- redhat/SOURCES/kernel-2.6.9-i686.config 2005-02-14 09:47:27.000000000 -0500 +++ redhat.fixed/SOURCES/kernel-2.6.9-i686.config 2005-03-14 21:15:49.000000000 -0500 @@ -6,6 +6,8 @@ # CONFIG_HOTPLUG_CPU is not set CONFIG_LOCALVERSION="" +CONFIG_4KSTACKS=n + # # Code maturity level options # @@ -2077,7 +2079,7 @@ # CONFIG_JFS_DEBUG is not set # CONFIG_JFS_STATISTICS is not set CONFIG_JFS_POSIX_ACL=y -# CONFIG_XFS_FS is not set +CONFIG_XFS_FS=m # CONFIG_XFS_RT is not set CONFIG_XFS_QUOTA=y CONFIG_XFS_POSIX_ACL=y @@ -2387,7 +2389,6 @@ # CONFIG_SND_SGALAXY is not set # CONFIG_SND_SSCAPE is not set # CONFIG_REISERFS_FS is not set -# CONFIG_XFS_FS is not set # CONFIG_AFFS_FS is not set # CONFIG_BEFS_FS is not set # CONFIG_EFS_FS is not set diff -ru redhat/SPECS/kernel-2.6.spec redhat.fixed/SPECS/kernel-2.6.spec --- redhat/SPECS/kernel-2.6.spec 2005-02-14 09:45:59.000000000 -0500 +++ redhat.fixed/SPECS/kernel-2.6.spec 2005-03-14 22:27:14.873277464 -0500 @@ -718,7 +718,8 @@ # # x86(-64) # -%patch200 -p1 +# this patch removes 4k stacks as an option +# %patch200 -p1 # fix x86_64 copy_user_generic %patch201 -p1 # Share cache descriptors between x86/x86-64 @@ -1121,23 +1122,24 @@ # # Various crash dumping patches # -%patch1500 -p1 -%patch1510 -p1 -%patch1520 -p1 -%patch1530 -p1 -%patch1540 -p1 -%patch1541 -p1 -%patch1542 -p1 -%patch1543 -p1 -%patch1544 -p1 -%patch1545 -p1 -%patch1546 -p1 -%patch1547 -p1 -%patch1548 -p1 -%patch1549 -p1 -%patch1550 -p1 -%patch1551 -p1 -%patch1552 -p1 +# some/all of these assume 4kstacks +#%patch1500 -p1 +#%patch1510 -p1 +#%patch1520 -p1 +#%patch1530 -p1 +#%patch1540 -p1 +#%patch1541 -p1 +#%patch1542 -p1 +#%patch1543 -p1 +#%patch1544 -p1 +#%patch1545 -p1 +#%patch1546 -p1 +#%patch1547 -p1 +#%patch1548 -p1 +#%patch1549 -p1 +#%patch1550 -p1 +#%patch1551 -p1 +#%patch1552 -p1 # # Various SELinux fixes from 2.6.10rc --X1bOJ3K7DJ5YkBrT--