Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754980Ab0HBVIU (ORCPT ); Mon, 2 Aug 2010 17:08:20 -0400 Received: from purin.rz.uni-konstanz.de ([134.34.240.45]:48525 "EHLO purin.rz.uni-konstanz.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751979Ab0HBVIS (ORCPT ); Mon, 2 Aug 2010 17:08:18 -0400 X-IronPort-AV: E=Sophos;i="4.55,305,1278288000"; d="p7s'?scan'208";a="8226061" Message-ID: <4C5733BD.3040801@uni-konstanz.de> Date: Mon, 02 Aug 2010 23:08:13 +0200 From: Kay Diederichs User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.1.11) Gecko/20100711 Lightning/1.0b1 Thunderbird/3.0.6 MIME-Version: 1.0 To: Eric Sandeen CC: Dave Chinner , linux , Ext4 Developers List , Karsten Schaefer Subject: Re: ext4 performance regression 2.6.27-stable versus 2.6.32 and later References: <4C508A54.7070002@uni-konstanz.de> <20100729232856.GP655@dastard> <4C56DBB0.9080405@uni-konstanz.de> <4C56EE67.4070905@redhat.com> In-Reply-To: <4C56EE67.4070905@redhat.com> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="------------ms080400040803070405020309" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 12001 Lines: 231 This is a cryptographically signed message in MIME format. --------------ms080400040803070405020309 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Am 02.08.2010 18:12, schrieb Eric Sandeen: > On 08/02/2010 09:52 AM, Kay Diederichs wrote: >> Dave, >> >> as you suggested, we reverted "ext4: Avoid group preallocation for >> closed files" and this indeed fixes a big part of the problem: after >> booting the NFS server we get >> >> NFS-Server: turn5 2.6.32.16p i686 >> NFS-Client: turn10 2.6.18-194.8.1.el5 x86_64 >> >> exported directory on the nfs-server: >> /dev/md5 /mnt/md5 ext4 >> rw,seclabel,noatime,barrier=3D1,stripe=3D512,data=3Dwriteback 0 0 >> >> 48 seconds for preparations >> 28 seconds to rsync 100 frames with 597M from nfs directory >> 57 seconds to rsync 100 frames with 595M to nfs directory >> 70 seconds to untar 24353 kernel files with 323M to nfs directory >> 57 seconds to rsync 24353 kernel files with 323M from nfs directory >> 133 seconds to run xds_par in nfs directory >> 425 seconds to run the script > > Interesting, I had found this commit to be a problem for small files > which are constantly created& deleted; the commit had the effect of > packing the newly created files in the first free space that could be > found, rather than walking down the disk leaving potentially fragmented= > freespace behind (see seekwatcher graph attached). Reverting the patch= > sped things up for this test, but left the filesystem freespace in bad > shape. > > But you seem to see one of the largest effects in here: > > 261 seconds to rsync 100 frames with 595M to nfs directory > vs > 57 seconds to rsync 100 frames with 595M to nfs directory > > with the patch reverted making things go faster. So you are doing 100 > 6MB writes to the server, correct? correct. > > Is the filesystem mkfs'd fresh > before each test, or is it aged? it is too big to "just create it freshly". It was actually created a=20 week ago, and filled by a single ~ 10-hour rsync job run on the server=20 such that the filesystem should be filled in the most linear way=20 possible. Since then, the benchmarking has created and deleted lots of=20 files. > If not mkfs'd, is it at least > completely empty prior to the test, or does data remain on it? I'm jus= t it's not empty: df -h reports Filesystem Size Used Avail Use% Mounted on /dev/md5 3.7T 2.8T 712G 80% /mnt/md5 e2freefrag-1.41.12 reports: Device: /dev/md5 Blocksize: 4096 bytes Total blocks: 976761344 Free blocks: 235345984 (24.1%) Min. free extent: 4 KB Max. free extent: 99348 KB Avg. free extent: 1628 KB HISTOGRAM OF FREE EXTENT SIZES: Extent Size Range : Free extents Free Blocks Percent 4K... 8K- : 1858 1858 0.00% 8K... 16K- : 3415 8534 0.00% 16K... 32K- : 9952 54324 0.02% 32K... 64K- : 23884 288848 0.12% 64K... 128K- : 27901 658130 0.28% 128K... 256K- : 25761 1211519 0.51% 256K... 512K- : 35863 3376274 1.43% 512K... 1024K- : 48643 9416851 4.00% 1M... 2M- : 150311 60704033 25.79% 2M... 4M- : 244895 148283666 63.01% 4M... 8M- : 3970 5508499 2.34% 8M... 16M- : 187 551835 0.23% 16M... 32M- : 302 1765912 0.75% 32M... 64M- : 282 2727162 1.16% 64M... 128M- : 42 788539 0.34% > wondering if fragmented freespace is contributing to this behavior as > well. If there is fragmented freespace, then with the patch I think th= e > allocator is more likely to hunt around for small discontiguous chunks > of free sapce, rather than going further out in the disk looking for a > large area to allocate from. the last step of the benchmark, "xds_par", reads 600MB and writes 50MB.=20 It has 16 threads which might put some additional pressure on the=20 freespace hunting. That step also is fast in 2.6.27.48 but slow in 2.6.32= + . > > It might be interesting to use seekwatcher on the server to visualize > the allocation/IO patterns for the test running just this far? > > -Eric will try to install seekwatcher. thanks, Kay --------------ms080400040803070405020309 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIQeDCC BUowggQyoAMCAQICDlWEAAEAAqRMpMa23uKCMA0GCSqGSIb3DQEBBQUAMHwxCzAJBgNVBAYT AkRFMRwwGgYDVQQKExNUQyBUcnVzdENlbnRlciBHbWJIMSUwIwYDVQQLExxUQyBUcnVzdENl bnRlciBDbGFzcyAxIEwxIENBMSgwJgYDVQQDEx9UQyBUcnVzdENlbnRlciBDbGFzcyAxIEwx IENBIElYMB4XDTEwMDYxNTA4MDkwMVoXDTExMDYxNjA4MDkwMVowKjELMAkGA1UEBhMCREUx GzAZBgNVBAMTEkRyLiBLYXkgRGllZGVyaWNoczCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC AQoCggEBAMbAmv25QwsaAarHgt8nG5J9Dv9r7axiD28qwd686RlqZFXGTElUJlXz+AB0X+dZ 5RO+ciIWfbfrqrnQWcr8twqAvAR/wEF1qCR1UKCo9/QkRbhHKSqkr0kwJ9Wauvos4druwBjf 3ax/sv/BzwWDlcp3b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IokuD7WAQ3031sY2rr7kVe3CjrO8b/gAAAAAAAA== --------------ms080400040803070405020309-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/