From owner-freebsd-current@FreeBSD.ORG Fri Feb 17 01:23:38 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 3BA9116A420 for ; Fri, 17 Feb 2006 01:23:38 +0000 (GMT) (envelope-from mikej@rogers.com) Received: from smtp109.rog.mail.re2.yahoo.com (smtp109.rog.mail.re2.yahoo.com [68.142.225.207]) by mx1.FreeBSD.org (Postfix) with SMTP id 5BE0E43D45 for ; Fri, 17 Feb 2006 01:23:37 +0000 (GMT) (envelope-from mikej@rogers.com) Received: (qmail 86136 invoked from network); 17 Feb 2006 01:23:36 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=lWQMUZ/UtkOLhxEf8UKVakbW/TofYdOa8GNPqBYSqQfkoY0RSzKOhBh0JFhHfusJ9kmE875RMzDAbSQeCYC55RxId+2W8ZVhK+fsmerMUfzjo8K2ZS425c8UZU7W+pyvXiyr14NeDEhI5KX2xRflWb+1OidjPsdf+axRFJevxPU= ; Received: from unknown (HELO ?70.30.133.184?) (mikej@rogers.com@70.30.133.184 with plain) by smtp109.rog.mail.re2.yahoo.com with SMTP; 17 Feb 2006 01:23:36 -0000 Message-ID: <43F525A6.3080701@rogers.com> Date: Thu, 16 Feb 2006 20:23:50 -0500 From: Mike Jakubik User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Giorgos Keramidas References: <20060215024339.N22450@atlantis.atlantis.dp.ua> <43F29BF5.4060300@freebsd.org> <20060216123548.GA35910@uk.tiscali.com> <20060216135138.GA16669@flame.pc> In-Reply-To: <20060216135138.GA16669@flame.pc> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Dmitry Pryanishnikov , freebsd-current@freebsd.org, David Xu , Brian Candler 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 01:23:38 -0000 Giorgos Keramidas wrote: > On 2006-02-16 12:35, Brian Candler wrote: > >> On Wed, Feb 15, 2006 at 11:11:49AM +0800, David Xu wrote: >> >>>> 1) Is it normal that virtual memory size for almost every non-kernel >>>> process >>>> is close to 50Mb now: >>>> >>>> ftp://external.atlantis.dp.ua/FreeBSD/CURRENT/top.txt >>>> >>>> Is it miscalculation or real growth of virtual address space? >>>> >>> I believe this is the new malloc code in libc, I am seeing this on my >>> Athlon64 machine, now it likes swap memory, in the old days, it seldom >>> touched it. >>> >> IIRR, the new malloc grabs 32MB immediately. However, I'd hope that doesn't >> mean that 32MB of pages are actually touched, and then get swapped out to >> disk. If it does, I'm staying on FreeBSD 6.0 :-) >> > > I don't think so. > > At least, not unless you are using the debugging features of malloc(), > which can result in all pages getting touched (i.e. if the "J" option is > enabled, to set all newly-allocated bytes to 0xa5, which is very helpful > when trying to catch accesses to uninitialized pointers). > > It's all a matter of what you are prepared to trade-off and why, I guess :) > And what am i trading off here? I have "/etc/malloc.conf@ -> ajz" and my memory usage has gone up the roof. My system used to be swap free, and now its swapping over 40 MB. Can someone explain to me why this new malloc is better? I don't see any speed improvements.