From owner-cvs-all@FreeBSD.ORG Sun Feb 13 23:01:20 2005 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 85CC716A4CE; Sun, 13 Feb 2005 23:01:20 +0000 (GMT) Received: from cs.rice.edu (cs.rice.edu [128.42.1.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 56A4A43D2D; Sun, 13 Feb 2005 23:01:20 +0000 (GMT) (envelope-from alc@cs.rice.edu) Received: from localhost (calypso.cs.rice.edu [128.42.1.127]) by cs.rice.edu (Postfix) with ESMTP id 021444A9A4; Sun, 13 Feb 2005 17:01:20 -0600 (CST) Received: from cs.rice.edu ([128.42.1.30]) by localhost (calypso.cs.rice.edu [128.42.1.127]) (amavisd-new, port 10024) with LMTP id 06395-01-42; Sun, 13 Feb 2005 17:01:19 -0600 (CST) Received: by cs.rice.edu (Postfix, from userid 19572) id 8BFC64A9A0; Sun, 13 Feb 2005 17:01:19 -0600 (CST) Date: Sun, 13 Feb 2005 17:01:19 -0600 From: Alan Cox To: Alan Cox Message-ID: <20050213230119.GE10496@cs.rice.edu> References: <200502132151.j1DLpoLO035854@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200502132151.j1DLpoLO035854@repoman.freebsd.org> User-Agent: Mutt/1.4.2i X-Virus-Scanned: by amavis-20030616-p7 at cs.rice.edu cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/md md.c 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: Sun, 13 Feb 2005 23:01:20 -0000 On Sun, Feb 13, 2005 at 09:51:50PM +0000, Alan Cox wrote: > alc 2005-02-13 21:51:50 UTC > > FreeBSD src repository > > Modified files: > sys/dev/md md.c > Log: > Request a CPU private mapping from sf_buf_alloc(). If the swap-backed > memory disk is larger than the number of available sf_bufs, this improves > performance on SMPs by eliminating interprocessor TLB shootdowns. For > example, with 6656 sf_bufs, the default on my test machine, and a 256MB > swap-backed memory disk, I see the command > "dd if=/dev/md0 of=/dev/null bs=64k" achieve ~489MB/sec with the default, > shared mappings, and ~587MB/sec with CPU private mappings. > > Revision Changes Path > 1.153 +6 -1 src/sys/dev/md/md.c For completeness, I'll add that with a uniprocessor kernel on the same machine, this test achieves a bandwidth of ~827MB/sec. Alan