From owner-svn-src-head@FreeBSD.ORG Sun May 29 03:01:59 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 77C621065673; Sun, 29 May 2011 03:01:59 +0000 (UTC) (envelope-from mdf356@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id A1A648FC0C; Sun, 29 May 2011 03:01:58 +0000 (UTC) Received: by wyf23 with SMTP id 23so2699499wyf.13 for ; Sat, 28 May 2011 20:01:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=gCYenPiS1o28RGSLqSKIv123C7twMd7xy81Tv6vY1qY=; b=U5m0u5nwq13Saj/d/KYH5mqldsEZ6gQ1kdKEwtKZnZIcUS5LDiBTf1y67Yhc0Sr0aj A18mtK3fOgLApFGoSabmyNAaj0lAXDKcf5S/VpAdA5sZCU1gOGQZbLD09dfj1eixRMRe 6nAPKYhS2VkXXSGCkvVc/d5FhLwwgAA9B/VCg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=sB2w2bH22b6atJuhAsm4wSHnsbn6iYBIXgchmazg42U+bJ8QZ7/RSN7lp3AQV683If 4zX9Zya8O5EioTgDxZkQILYV45rFJWhJ5ZOJ8VoN2dhtx7p6VprJKP5DiYZirUHyWeGF L247BfP97GFfVtCdKboy95uekXegjYUd92WeQ= MIME-Version: 1.0 Received: by 10.216.59.85 with SMTP id r63mr1177724wec.35.1306638117239; Sat, 28 May 2011 20:01:57 -0700 (PDT) Sender: mdf356@gmail.com Received: by 10.216.93.193 with HTTP; Sat, 28 May 2011 20:01:57 -0700 (PDT) In-Reply-To: <201105282103.43370.pieter@degoeje.nl> References: <201105131848.p4DIm1j7079495@svn.freebsd.org> <201105282103.43370.pieter@degoeje.nl> Date: Sat, 28 May 2011 20:01:57 -0700 X-Google-Sender-Auth: 6UeKLgbjHrdgXGGOwyCqPuHAHZA Message-ID: From: mdf@FreeBSD.org To: Pieter de Goeje Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r221853 - in head/sys: dev/md dev/null sys vm X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 May 2011 03:01:59 -0000 On Sat, May 28, 2011 at 12:03 PM, Pieter de Goeje wrote= : > On Friday 13 May 2011 20:48:01 Matthew D Fleming wrote: >> Author: mdf >> Date: Fri May 13 18:48:00 2011 >> New Revision: 221853 >> URL: http://svn.freebsd.org/changeset/base/221853 >> >> Log: >> =A0 Usa a globally visible region of zeros for both /dev/zero and the md >> =A0 device. =A0There are likely other kernel uses of "blob of zeros" tha= n can >> =A0 be converted. >> >> =A0 Reviewed by: =A0 =A0 =A0 =A0alc >> =A0 MFC after: =A01 week >> > > This change seems to reduce /dev/zero performance by 68% as measured by t= his > command: dd if=3D/dev/zero of=3D/dev/null bs=3D64k count=3D100000. > > x dd-8-stable > + dd-9-current > +------------------------------------------------------------------------= -+ > |+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= | > |+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= | > |+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= | > |+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0x =A0x| > |+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0x x =A0x| > |A =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 |MA_|| > +------------------------------------------------------------------------= -+ > =A0 =A0N =A0 =A0 =A0 =A0 =A0 Min =A0 =A0 =A0 =A0 =A0 Max =A0 =A0 =A0 =A0M= edian =A0 =A0 =A0 =A0 =A0 Avg =A0 =A0 =A0 =A0Stddev > x =A0 5 1.2573578e+10 1.3156063e+10 1.2827355e+10 =A01.290079e+10 2.49512= 07e+08 > + =A0 5 4.1271391e+09 4.1453925e+09 4.1295157e+09 4.1328097e+09 =A0 =A0 7= 487363.6 > Difference at 95.0% confidence > =A0 =A0 =A0 =A0-8.76798e+09 +/- 2.57431e+08 > =A0 =A0 =A0 =A0-67.9647% +/- 1.99547% > =A0 =A0 =A0 =A0(Student's t, pooled s =3D 1.76511e+08) > > This particular measurement was against 8-stable but the results are the = same > for -current just before this commit. Basically througput drops from > ~13GB/sec to 4GB/sec. > > Hardware is a Phenom II X4 945 with 8GB of 800Mhz DDR2 memory. FreeBSD/am= d64 > is installed. This processor has 6MB of L3 cache. > > To me it looks like it's not able to cache the zeroes anymore. Is this > intentional? I tried to change ZERO_REGION_SIZE back to 64K but that didn= 't > help. Hmm. I don't have access to my FreeBSD box over the weekend, but I'll run this on my box when I get back to work. Meanwhile you could try setting ZERO_REGION_SIZE to PAGE_SIZE and I think that will restore things to the original performance. Cheers, matthew