From owner-cvs-all Wed Sep 18 1:53: 8 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2DAF37B401; Wed, 18 Sep 2002 01:53:07 -0700 (PDT) Received: from mail.chesapeake.net (chesapeake.net [205.130.220.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE3A043E3B; Wed, 18 Sep 2002 01:53:06 -0700 (PDT) (envelope-from jroberson@chesapeake.net) Received: from localhost (jroberson@localhost) by mail.chesapeake.net (8.11.6/8.11.6) with ESMTP id g8I8r6M33439; Wed, 18 Sep 2002 04:53:06 -0400 (EDT) (envelope-from jroberson@chesapeake.net) Date: Wed, 18 Sep 2002 04:53:06 -0400 (EDT) From: Jeff Roberson To: Jeff Roberson Cc: cvs-committers@FreeBSD.org, Subject: Re: cvs commit: src/sys/kern kern_malloc.c src/sys/vm uma.h uma_core.c uma_dbg.c uma_int.h vm_page.h In-Reply-To: <200209180826.g8I8QUXO077424@freefall.freebsd.org> Message-ID: <20020918042829.K43954-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 Wed, 18 Sep 2002, Jeff Roberson wrote: > jeff 2002/09/18 01:26:30 PDT > > vm_page.h > Log: > - Split UMA_ZFLAG_OFFPAGE into UMA_ZFLAG_OFFPAGE and UMA_ZFLAG_HASH. > - Remove all instances of the mallochash. > - Stash the slab pointer in the vm page's object pointer when allocating from > the kmem_obj. > - Use the overloaded object pointer to find slabs for malloced memory. > Removing mallochash got rid of one more contended global resource. The only remaining global contention points are the malloc_type stats, but that's not nearly as serious. Also, removing the malloc hash saved a big chunk of memory. This yielded slightly faster kernel times for buildworlds (~2%). More importantly, it paves the way for more effecient large object representation within UMA. Oh, and, I forgot. I tested this on x86 and alpha. Jeff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message