From owner-cvs-all@FreeBSD.ORG Fri Mar 28 16:23:22 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5125F37B401; Fri, 28 Mar 2003 16:23:22 -0800 (PST) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id D956343FD7; Fri, 28 Mar 2003 16:23:21 -0800 (PST) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by canning.wemm.org (Postfix) with ESMTP id BE6752A8C1; Fri, 28 Mar 2003 16:23:21 -0800 (PST) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: des@ofug.org (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) In-Reply-To: Date: Fri, 28 Mar 2003 16:23:21 -0800 From: Peter Wemm Message-Id: <20030329002321.BE6752A8C1@canning.wemm.org> cc: David Malone cc: src-committers@FreeBSD.org cc: Bruce Evans cc: Nate Lawson cc: cvs-src@FreeBSD.org cc: Mike Silbersack cc: cvs-all@FreeBSD.org Subject: Re: Checksum/copy X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Mar 2003 00:23:26 -0000 Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?= wrote: > David Malone writes: > > On Thu, Mar 27, 2003 at 09:57:35AM +0100, des@ofug.org wrote: > > > Might it be a good idea to have separate b{copy,zero} implementations > > > for special purposes like pmap_{copy,zero}_page? > > We do have a i686_pagezero already, which seems to be used in > > pmap_zero_page - I guess it may not be well tuned to modern processors, > > as it is almost 5 years old. > > i686_pagezero uses 'rep stosl' after an initial 'rep scasl' to check > if the page was already zero (which is a pessimization unless we zero > a lot of pages that are already zeroed). SSE can do far better than > that. i686_pagezero was written with SMP in mind. The cache state ends up in a more favourable condition when sharing with other cpus. Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5