From owner-freebsd-arch@FreeBSD.ORG Sun Dec 23 17:16:42 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8D256978 for ; Sun, 23 Dec 2012 17:16:42 +0000 (UTC) (envelope-from jasone@freebsd.org) Received: from canonware.com (canonware.com [204.109.63.53]) by mx1.freebsd.org (Postfix) with ESMTP id 656F68FC12 for ; Sun, 23 Dec 2012 17:16:41 +0000 (UTC) Received: from [192.168.168.12] (70-91-206-178-BusName-SFBA.hfc.comcastbusiness.net [70.91.206.178]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by canonware.com (Postfix) with ESMTPSA id 762F22843A; Sun, 23 Dec 2012 09:10:19 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: jemalloc enhancement for small-memory systems From: Jason Evans In-Reply-To: <75ECE5AB-9276-44BA-84D7-56EF6BDC3984@kientzle.com> Date: Sun, 23 Dec 2012 09:10:19 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <2698981A-EA71-41BD-A9B3-FCD130EB3832@freebsd.org> References: <1356204505.1129.21.camel@revolution.hippie.lan> <75ECE5AB-9276-44BA-84D7-56EF6BDC3984@kientzle.com> To: Tim Kientzle X-Mailer: Apple Mail (2.1499) Cc: Ian Lepore , freebsd-arch@freebsd.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Dec 2012 17:16:42 -0000 On Dec 22, 2012, at 2:40 PM, Tim Kientzle wrote: > Would it be feasible for jemalloc to initially allocate > small blocks (to not over-allocate for small programs and > systems with small RAM) and then allocate successively > larger blocks as the program requires more memory? All chunks must be the same size in jemalloc, so it's not possible to = increase chunk size over the lifetime of an application. As Ian said, = chunk size isn't a major factor in physical memory usage unless = mlockall(2) enters the picture. Jason=