From owner-freebsd-hackers Wed Oct 31 17:43:31 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from peter3.wemm.org (c1315225-a.plstn1.sfba.home.com [24.14.150.180]) by hub.freebsd.org (Postfix) with ESMTP id D013A37B405 for ; Wed, 31 Oct 2001 17:43:22 -0800 (PST) Received: from overcee.netplex.com.au (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id fA11hMM67827 for ; Wed, 31 Oct 2001 17:43:22 -0800 (PST) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 1954A3808; Wed, 31 Oct 2001 17:43:22 -0800 (PST) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: "David Xu" Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: pmap_collect() and PG_UNMANAGED In-Reply-To: <000f01c1626e$011ac220$ef01a8c0@davidwnt> Date: Wed, 31 Oct 2001 17:43:22 -0800 From: Peter Wemm Message-Id: <20011101014322.1954A3808@overcee.netplex.com.au> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "David Xu" wrote: > This is a multi-part message in MIME format. > > ------=_NextPart_000_000C_01C162B1.0ECE7770 > Content-Type: text/plain; > charset="gb2312" > Content-Transfer-Encoding: quoted-printable > > Hi, > > is there any reason why pmap_collect() in /sys/i386/i386/pmap.c does = > not > check PG_UNMANAGED flag? unmanaged page does not have pv_entry = > associated, > so call pmap_remove_all() has side effect, PG_MAPPED and PG_WRITEABLE = > are=20 > roughly cleared. > > -- > David Xu Did you have something like this in mind? @@ -1729,7 +1729,7 @@ for(i = 0; i < vm_page_array_size; i++) { m = &vm_page_array[i]; if (m->wire_count || m->hold_count || m->busy || - (m->flags & PG_BUSY)) + (m->flags & (PG_BUSY | PG_UNMANAGED))) continue; pmap_remove_all(m); } BTW; please stop posting MIME/HTML onto mailing lists. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message