From owner-cvs-src-old@FreeBSD.ORG Sun Jan 31 23:16:31 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9D1D01065676 for ; Sun, 31 Jan 2010 23:16:31 +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 8AF7D8FC21 for ; Sun, 31 Jan 2010 23:16:31 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o0VNGV6k037468 for ; Sun, 31 Jan 2010 23:16:31 GMT (envelope-from jasone@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o0VNGVmd037467 for cvs-src-old@freebsd.org; Sun, 31 Jan 2010 23:16:31 GMT (envelope-from jasone@repoman.freebsd.org) Message-Id: <201001312316.o0VNGVmd037467@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jasone@repoman.freebsd.org using -f From: Jason Evans Date: Sun, 31 Jan 2010 23:16:10 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/stdlib malloc.3 malloc.c ql.h qr.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jan 2010 23:16:31 -0000 jasone 2010-01-31 23:16:10 UTC FreeBSD src repository Modified files: lib/libc/stdlib malloc.3 malloc.c Added files: lib/libc/stdlib ql.h qr.h Log: SVN rev 203329 on 2010-01-31 23:16:10Z by jasone Fix bugs: * Fix a race in chunk_dealloc_dss(). * Check for allocation failure before zeroing memory in base_calloc(). Merge enhancements from a divergent version of jemalloc: * Convert thread-specific caching from magazines to an algorithm that is more tunable, and implement incremental GC. * Add support for medium size classes, [4KiB..32KiB], 2KiB apart by default. * Add dirty page tracking for pages within active small/medium object runs. This allows malloc to track precisely which pages are in active use, which makes dirty page purging more effective. * Base maximum dirty page count on proportion of active memory. * Use optional zeroing in arena_chunk_alloc() to avoid needless zeroing of chunks. This is useful in the context of DSS allocation, since a long-lived application may commonly recycle chunks. * Increase the default chunk size from 1MiB to 4MiB. Remove feature: * Remove the dynamic rebalancing code, since thread caching reduces its utility. Revision Changes Path 1.82 +77 -71 src/lib/libc/stdlib/malloc.3 1.190 +1960 -1290 src/lib/libc/stdlib/malloc.c 1.1 +122 -0 src/lib/libc/stdlib/ql.h (new) 1.1 +106 -0 src/lib/libc/stdlib/qr.h (new)