From owner-svn-src-all@FreeBSD.ORG Wed Jun 22 13:48:03 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F116F1065676; Wed, 22 Jun 2011 13:48:03 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id C3E218FC14; Wed, 22 Jun 2011 13:48:03 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 5DF1D46B0D; Wed, 22 Jun 2011 09:48:03 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id ED5F48A027; Wed, 22 Jun 2011 09:48:02 -0400 (EDT) From: John Baldwin To: Bruce Evans Date: Wed, 22 Jun 2011 09:48:02 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110617; KDE/4.5.5; amd64; ; ) References: <201106191913.p5JJDOqJ006272@svn.freebsd.org> <20110622063258.D2275@besplex.bde.org> In-Reply-To: <20110622063258.D2275@besplex.bde.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201106220948.02421.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Wed, 22 Jun 2011 09:48:03 -0400 (EDT) Cc: Alan Cox , svn-src-head@freebsd.org, svn-src-all@freebsd.org, "Bjoern A. Zeeb" , src-committers@freebsd.org Subject: Re: svn commit: r223307 - head/sys/vm X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2011 13:48:04 -0000 On Tuesday, June 21, 2011 4:58:10 pm Bruce Evans wrote: > On Tue, 21 Jun 2011, Bjoern A. Zeeb wrote: > > > On Jun 19, 2011, at 7:13 PM, Alan Cox wrote: > > > > Hi Alan, > > > >> Author: alc > >> Date: Sun Jun 19 19:13:24 2011 > >> New Revision: 223307 > >> URL: http://svn.freebsd.org/changeset/base/223307 > >> > >> Log: > >> Precisely document the synchronization rules for the page's dirty field. > >> (Saying that the lock on the object that the page belongs to must be held > >> only represents one aspect of the rules.) > >> > >> Eliminate the use of the page queues lock for atomically performing read- > >> modify-write operations on the dirty field when the underlying architecture > >> supports atomic operations on char and short types. > >> > >> Document the fact that 32KB pages aren't really supported. > > > > contrary to the tinderbox I'd like to point out that all mips kernels built by universe are broken with a SVN HEAD from earlier today. Could you please check and see if you can fix it? The errors I get are: > > > > vm_page.o: In function `vm_page_clear_dirty': > > /sys/vm/vm_page.c:(.text+0x18d0): undefined reference to `atomic_clear_8' > > /sys/vm/vm_page.c:(.text+0x18d0): relocation truncated to fit: R_MIPS_26 against `atomic_clear_8' > > vm_page.o: In function `vm_page_set_validclean': > > /sys/vm/vm_page.c:(.text+0x38f0): undefined reference to `atomic_clear_8' > > /sys/vm/vm_page.c:(.text+0x38f0): relocation truncated to fit: R_MIPS_26 against `atomic_clear_8' > > Atomic types shorter than int cannot be used in MI code, since they might > not exist. Apparently they don't exist on mips. jake@ fixed all their > old uses for sparc4 in ~Y2K. I agree. Is there any harm in having the 'dirty' and 'valid' fields in vm_page always be at least of size 'int'? In the case of amd64, vm_page would change from a size of 120 bytes to 128. On i386 I think you'd end up changing the size from 68 to 76. (Using an int results in alignment padding after 'busy'.) Hmm, that's around 120k of extra vm_page_t space for a machine with 64M of RAM, so around 0.18% of RAM would be used on both platforms (presumably the usage would be similar on other platforms as well). At 24 GB of RAM, the extra space is just under 0.20% of RAM (48M). -- John Baldwin