From owner-cvs-src@FreeBSD.ORG Wed Aug 27 02:01:10 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D90B1106564A; Wed, 27 Aug 2008 02:01:10 +0000 (UTC) (envelope-from jasone@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id AAA2A8FC4E; Wed, 27 Aug 2008 02:01:10 +0000 (UTC) (envelope-from jasone@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.2/8.14.2) with ESMTP id m7R21AW3062629; Wed, 27 Aug 2008 02:01:10 GMT (envelope-from jasone@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m7R21A68062628; Wed, 27 Aug 2008 02:01:10 GMT (envelope-from jasone@repoman.freebsd.org) Message-Id: <200808270201.m7R21A68062628@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jasone@repoman.freebsd.org using -f From: Jason Evans Date: Wed, 27 Aug 2008 02:00:53 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libc/include libc_private.h src/lib/libc/stdlib Symbol.map malloc.3 malloc.c src/lib/libthr/thread thr_exit.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Aug 2008 02:01:11 -0000 jasone 2008-08-27 02:00:53 UTC FreeBSD src repository Modified files: lib/libc/include libc_private.h lib/libc/stdlib Symbol.map malloc.3 malloc.c lib/libthr/thread thr_exit.c Log: SVN rev 182225 on 2008-08-27 02:00:53Z by jasone Add thread-specific caching for small size classes, based on magazines. This caching allows for completely lock-free allocation/deallocation in the steady state, at the expense of likely increased memory use and fragmentation. Reduce the default number of arenas to 2*ncpus, since thread-specific caching typically reduces arena contention. Modify size class spacing to include ranges of 2^n-spaced, quantum-spaced, cacheline-spaced, and subpage-spaced size classes. The advantages are: fewer size classes, reduced false cacheline sharing, and reduced internal fragmentation for allocations that are slightly over 512, 1024, etc. Increase RUN_MAX_SMALL, in order to limit fragmentation for the subpage-spaced size classes. Add a size-->bin lookup table for small sizes to simplify translating sizes to size classes. Include a hard-coded constant table that is used unless custom size class spacing is specified at run time. Add the ability to disable tiny size classes at compile time via MALLOC_TINY. Revision Changes Path 1.20 +6 -0 src/lib/libc/include/libc_private.h 1.9 +1 -0 src/lib/libc/stdlib/Symbol.map 1.79 +52 -25 src/lib/libc/stdlib/malloc.3 1.177 +1080 -231 src/lib/libc/stdlib/malloc.c 1.30 +4 -0 src/lib/libthr/thread/thr_exit.c