From owner-cvs-all Mon Jun 17 15:51:42 2002 Delivered-To: cvs-all@freebsd.org Received: from mail.chesapeake.net (chesapeake.net [205.130.220.14]) by hub.freebsd.org (Postfix) with ESMTP id D264337B442; Mon, 17 Jun 2002 15:51:35 -0700 (PDT) Received: from localhost (jroberson@localhost) by mail.chesapeake.net (8.11.6/8.11.6) with ESMTP id g5HMlfP65811; Mon, 17 Jun 2002 18:47:41 -0400 (EDT) (envelope-from jroberson@chesapeake.net) Date: Mon, 17 Jun 2002 18:47:41 -0400 (EDT) From: Jeff Roberson To: Jeff Roberson Cc: cvs-committers@FreeBSD.org, Subject: Re: cvs commit: src/sys/sys malloc.h src/sys/vm uma.h uma_core.c uma_int.h vm_map.c src/sys/i386/i386 pmap.c In-Reply-To: <200206172202.g5HM2gC40310@freefall.freebsd.org> Message-ID: <20020617184535.Q63891-100000@mail.chesapeake.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 17 Jun 2002, Jeff Roberson wrote: > jeff 2002/06/17 15:02:42 PDT > > Modified files: > sys/sys malloc.h > sys/vm vm_map.c uma_core.c uma_int.h uma.h > sys/i386/i386 pmap.c > Log: > - Introduce the new M_NOVM option which tells uma to only check the currently > allocated slabs and bucket caches for free items. It will not go ask the vm > for pages. This differs from M_NOWAIT in that it not only doesn't block, it > doesn't even ask. > > - Add a new zcreate option ZONE_VM, that sets the BUCKETCACHE zflag. This > tells uma that it should only allocate buckets out of the bucket cache, and > not from the VM. It does this by using the M_NOVM option to zalloc when > getting a new bucket. This is so that the VM doesn't recursively enter > itself while trying to allocate buckets for vm_map_entry zones. If there > are already allocated buckets when we get here we'll still use them but > otherwise we'll skip it. > > - Use the ZONE_VM flag on vm map entries and pv entries on x86. > > Revision Changes Path > 1.323 +1 -1 src/sys/i386/i386/pmap.c > 1.64 +1 -0 src/sys/sys/malloc.h > 1.8 +1 -0 src/sys/vm/uma.h > 1.28 +17 -3 src/sys/vm/uma_core.c > 1.9 +1 -0 src/sys/vm/uma_int.h > 1.253 +2 -1 src/sys/vm/vm_map.c > This fixes several cases where vm_map recursion resulted in panics etc. The UMA_ZONE_VM flag should be added to the pv entry zone for every arch. If people don't mind me doing this without testing on everything other than x86 and alpha I'll do it myself. Thanks, Jeff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message