From owner-freebsd-alpha Wed Jun 6 16:24:24 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id BD0AA37B401; Wed, 6 Jun 2001 16:24:21 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.3/8.11.2) with ESMTP id f56NOD116540; Wed, 6 Jun 2001 16:24:13 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20010606184523.P1832@superconductor.rush.net> Date: Wed, 06 Jun 2001 16:24:20 -0700 (PDT) From: John Baldwin To: Alfred Perlstein Subject: Re: -current kernel still considered dangerous Cc: obrien@FreeBSD.org, Freebsd-alpha@FreeBSD.org, Andrew Gallatin 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 On 06-Jun-01 Alfred Perlstein wrote: > * John Baldwin [010606 12:58] wrote: >> >> > Is there any documentation what the locking requirements of various >> > vm functions are now? I tested osf1 after my initial set of commits to >> > catch >> > alpha up to x86, but an assert must have been added since then. >> >> Not really, and it is in a state of flux right now. On my todo list is to >> change the vm_map's to be locked by a sx lock, and once that is done I will >> change those mtx_assert's to simply require the sx lock rather than the >> vm_mtx >> lock. However, I'm still not sure how vm_page's will be locked. >> vm_object's >> will probably have their own mutex or sx lock though. > > Linux uses a single lock to protect them, most of the splvm()'s that you > removed were placeholders for the vm page queue's mutex. Which use a single lock: pages, objects, or both? Due to the fact that getpages/putpages can block, I'm thinking that objects may actually need a sx lock. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message