From owner-freebsd-mips@FreeBSD.ORG Thu Nov 15 19:09:50 2012 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 367D3E3F; Thu, 15 Nov 2012 19:09:50 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by mx1.freebsd.org (Postfix) with ESMTP id 01F388FC17; Thu, 15 Nov 2012 19:09:49 +0000 (UTC) Received: by mail-pa0-f54.google.com with SMTP id kp6so1389624pab.13 for ; Thu, 15 Nov 2012 11:09:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=1gLgA+zkCzMpT93RYQUgTgtjSjcjSNGBm8ZKNgVD4cg=; b=cYrWE0yS5BpbFeLVK+8EO7pE10UMfyBExFedxgPRSk/qyYGyjWpIQ/da36dX05tLK4 /mFzMfMpTWslo9WH75jashj4TucEpXWuIYuwRF6rknx05dGDy/ch19KKuaQ0BbpKmYHH 0z595sizy0jU+75DN9kwO2iyUaWvjv4nwWaBqx3nuqZmsAuvIedlvVZ+JCRHc1wf3xw1 hKWNeTWEs4pwhuuEK8sKNcrv+tIU29mu6vjj7YYPQD/wMuZTbFTV6d3u0baX5k0QSuvz +mdzXYwl8AsKPGUE9gg+HCN98tLyBj91QB0yI+maiYd/SAx9nVIWep2Df6pYA/Ahya1F HMtw== MIME-Version: 1.0 Received: by 10.66.72.136 with SMTP id d8mr6038475pav.4.1353006588940; Thu, 15 Nov 2012 11:09:48 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.68.124.130 with HTTP; Thu, 15 Nov 2012 11:09:48 -0800 (PST) In-Reply-To: <50A53391.4080909@rice.edu> References: <50A53391.4080909@rice.edu> Date: Thu, 15 Nov 2012 11:09:48 -0800 X-Google-Sender-Auth: H1HYeqs_4Tv1D0Ix0B9xOJx1b1w Message-ID: Subject: Re: ZERO_REGION_SIZE From: Adrian Chadd To: Alan Cox Content-Type: text/plain; charset=ISO-8859-1 Cc: "Jayachandran C." , mips@freebsd.org X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Nov 2012 19:09:50 -0000 Alan, would you like me to send you some MIPS hardwarE? Adrian On 15 November 2012 10:25, Alan Cox wrote: > Given the possibility of L1 cache aliasing on some (many?) MIPS > processors, I think that you, i.e., MIPS users, should evaluate the > performance effects of the following change: > > Index: mips/include/vmparam.h > =================================================================== > --- mips/include/vmparam.h (revision 243091) > +++ mips/include/vmparam.h (working copy) > @@ -190,6 +190,6 @@ > */ > #define VM_NFREEORDER 9 > > -#define ZERO_REGION_SIZE (64 * 1024) /* 64KB */ > +#define ZERO_REGION_SIZE 4096 > > #endif /* !_MACHINE_VMPARAM_H_ */ > > You can quantify the impact with a simple test like: > > dd if=/dev/zero of=/dev/null bs=<64 or 128>k count= > > If possible, please use a kernel without WITNESS or INVARIANTS. > > Alan > > P.S. I would also be curious how setting this to 8192 would perform. >