From owner-freebsd-stable@FreeBSD.ORG Mon Jun 12 04:45:47 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9CCCF16A418 for ; Mon, 12 Jun 2006 04:45:47 +0000 (UTC) (envelope-from markir@paradise.net.nz) Received: from linda-5.paradise.net.nz (bm-5a.paradise.net.nz [203.96.152.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CFD843D46 for ; Mon, 12 Jun 2006 04:45:46 +0000 (GMT) (envelope-from markir@paradise.net.nz) Received: from smtp-2.paradise.net.nz (tclsnelb1-src-1.paradise.net.nz [203.96.152.172]) by linda-5.paradise.net.nz (Paradise.net.nz) with ESMTP id <0J0Q00H6XD8820@linda-5.paradise.net.nz> for freebsd-stable@freebsd.org; Mon, 12 Jun 2006 16:45:45 +1200 (NZST) Received: from [192.168.1.11] (218-101-28-235.dsl.clear.net.nz [218.101.28.235]) by smtp-2.paradise.net.nz (Postfix) with ESMTP id 47C3AF469AE for ; Mon, 12 Jun 2006 16:45:44 +1200 (NZST) Date: Mon, 12 Jun 2006 16:45:33 +1200 From: Mark Kirkwood To: freebsd-stable@freebsd.org Message-id: <448CF16D.7070907@paradise.net.nz> MIME-version: 1.0 Content-type: multipart/mixed; boundary=------------000700060505000105030801 User-Agent: Thunderbird 1.5 (X11/20060417) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Nonlinear repeated malloc/free performance X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 04:45:47 -0000 This is a multi-part message in MIME format. --------------000700060505000105030801 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I just upped kern.maxdsize to 1G, but noticed that a test program that mallocs and frees in a loop (increasing sized chunks 1M -> 1024M) takes about 6 times longer for 1024 iterations than it does only 512 of 'em. Is this non-linearity expected? I see from a profile that ifree is taking most of the time. I guess this use-case is probably unusual (it's only a test program that I used to check I really can use the whole 1G...). I'm running 6.1-STABLE from about 09 May. (prog and gprof attached). Cheers Mark --------------000700060505000105030801--