Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jun 2002 18:47:41 -0400 (EDT)
From:      Jeff Roberson <jroberson@chesapeake.net>
To:        Jeff Roberson <jeff@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, <cvs-all@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
Message-ID:  <20020617184535.Q63891-100000@mail.chesapeake.net>
In-Reply-To: <200206172202.g5HM2gC40310@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020617184535.Q63891-100000>