From owner-freebsd-current@FreeBSD.ORG Thu Feb 16 13:52:42 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 00FC116A420; Thu, 16 Feb 2006 13:52:42 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 659DB43D70; Thu, 16 Feb 2006 13:52:17 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (aris.bedc.ondsl.gr [62.103.39.226]) (authenticated bits=128) by igloo.linux.gr (8.13.5/8.13.5/Debian-3) with ESMTP id k1GDplOK004059 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 16 Feb 2006 15:51:48 +0200 Received: from flame.pc (flame [127.0.0.1]) by flame.pc (8.13.4/8.13.4) with ESMTP id k1GDpd69017345; Thu, 16 Feb 2006 15:51:39 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by flame.pc (8.13.4/8.13.4/Submit) id k1GDpcF1017342; Thu, 16 Feb 2006 15:51:38 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 16 Feb 2006 15:51:38 +0200 From: Giorgos Keramidas To: Brian Candler Message-ID: <20060216135138.GA16669@flame.pc> References: <20060215024339.N22450@atlantis.atlantis.dp.ua> <43F29BF5.4060300@freebsd.org> <20060216123548.GA35910@uk.tiscali.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060216123548.GA35910@uk.tiscali.com> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.346, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.85, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr Cc: Dmitry Pryanishnikov , freebsd-current@freebsd.org, David Xu 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: Thu, 16 Feb 2006 13:52:42 -0000 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 :)