From owner-freebsd-current@FreeBSD.ORG Fri Feb 17 21:34:01 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A34416A420 for ; Fri, 17 Feb 2006 21:34:01 +0000 (GMT) (envelope-from jasone@freebsd.org) Received: from lh.synack.net (lh.synack.net [204.152.188.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F23543D45 for ; Fri, 17 Feb 2006 21:34:01 +0000 (GMT) (envelope-from jasone@freebsd.org) Received: by lh.synack.net (Postfix, from userid 100) id 072125E48F7; Fri, 17 Feb 2006 13:34:01 -0800 (PST) Received: from [129.101.159.79] (unknown [129.101.159.79]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by lh.synack.net (Postfix) with ESMTP id 316945E48AA; Fri, 17 Feb 2006 13:33:57 -0800 (PST) In-Reply-To: <43F62CF3.2000005@rogers.com> References: <20060215024339.N22450@atlantis.atlantis.dp.ua> <43F29BF5.4060300@freebsd.org> <20060216123548.GA35910@uk.tiscali.com> <20060216135138.GA16669@flame.pc> <43F525A6.3080701@rogers.com> <20060217013039.GA31540@xor.obsecurity.org> <43F6174A.7060801@rogers.com> <1091E3C1-1E93-4030-9097-D28C780F9D44@freebsd.org> <43F62CF3.2000005@rogers.com> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Jason Evans Date: Fri, 17 Feb 2006 13:33:51 -0800 To: Mike Jakubik X-Mailer: Apple Mail (2.746.2) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on lh.synack.net X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed version=3.0.4 Cc: freebsd-current@freebsd.org Subject: Re: Virtual memory consumption (both user and kernel) in modern CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2006 21:34:01 -0000 On Feb 17, 2006, at 12:07 PM, Mike Jakubik wrote: > Jason Evans wrote: >> Are redzones enabled? (They are turned on by default in >> CURRENT.) You can check by reading the output from something like: >> >> MALLOC_OPTIONS=P ls >> >> Keep in mind that they use up substantial extra memory -- 32 bytes >> per allocation. Unless you have disabled redzones, you should >> expect much higher memory usage with jemalloc than with phkmalloc. > > ___ Begin malloc statistics ___ > Number of CPUs: 1 > Number of arenas: 1 > Cache slots: 256 > Chunk size: 16777216 (2^24) > Quantum size: 16 (2^4) > Pointer size: 4 > Number of bins: 128 > Maximum bin size: 2096 > Assertions enabled > Redzone size: 16 ^^^^^^^^^^^^^^^^ > Allocated: 22272, space used: 33554432 > > Does this mean they are enabled? and if so, how can i disable them? > Which malloc is in -current now? Yes, redzones are enabled. Redzone size is 0 when they are disabled. You can disable them by adding the following to /etc/ make.conf, then rebuilding/installing libc: CFLAGS+=-DNO_MALLOC_EXTRAS jemalloc is currently in use for CURRENT. Jason