From owner-freebsd-alpha Sun Nov 10 11:46:49 2002 Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0A6737B401; Sun, 10 Nov 2002 11:46:48 -0800 (PST) Received: from philotas.hosting.swbell.net (philotas.hosting.swbell.net [216.100.99.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 756C143E6E; Sun, 10 Nov 2002 11:46:48 -0800 (PST) (envelope-from alc@imimic.com) Received: from imimic.com (adsl-216-63-78-19.dsl.hstntx.swbell.net [216.63.78.19]) by philotas.hosting.swbell.net id OAA12790; Sun, 10 Nov 2002 14:46:36 -0500 (EST) [ConcentricHost SMTP Relay 1.14] Message-ID: <3DCEB79A.69EB752D@imimic.com> Date: Sun, 10 Nov 2002 13:46:34 -0600 From: "Alan L. Cox" Organization: iMimic Networking, Inc. X-Mailer: Mozilla 4.8 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: mjacob@feral.com Cc: alpha@FreeBSD.ORG, John Baldwin Subject: Re: on the same note.. References: Content-Type: text/plain; charset=x-user-defined Content-Transfer-Encoding: 7bit Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Matthew Jacob wrote: > > Err, well, this *is* in vm object allocation... Ah, I see what you're talking about now. Until the vm object has been returned by the allocation routine it is not shared data. The generation count is used to detect changes in the list of resident pages by sleeping processes, not to detect that the same storage is being recycled for a new object. Alan > On Sun, 10 Nov 2002, Alan L. Cox wrote: > > > Matthew Jacob wrote: > > > > > > .... > > > > > > In vm_object.c you or somebody had a question about atomicity in bumping > > > the object generation count. What is wrong with just making that > > > atomic_add_int for now? I see no locks otherwise covering it. > > > > It and the other vm_object fields are generally covered by Giant. I > > believe that vm_object allocation and initialization are the only > > activities that aren't. > > > > Alan > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message