From owner-freebsd-current@FreeBSD.ORG Mon Mar 3 21:40:22 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA4C51065672; Mon, 3 Mar 2008 21:40:22 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from mail.bitblocks.com (ns1.bitblocks.com [64.142.15.60]) by mx1.freebsd.org (Postfix) with ESMTP id B5C6B8FC17; Mon, 3 Mar 2008 21:40:22 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (localhost.bitblocks.com [127.0.0.1]) by mail.bitblocks.com (Postfix) with ESMTP id D89A05B30; Mon, 3 Mar 2008 13:17:31 -0800 (PST) To: gnn@freebsd.org In-reply-to: Your message of "Mon, 03 Mar 2008 15:23:33 EST." <7ifxv7pnei.wl%gnn@neville-neil.com> Date: Mon, 03 Mar 2008 13:17:31 -0800 From: Bakul Shah Message-Id: <20080303211731.D89A05B30@mail.bitblocks.com> Cc: current@freebsd.org Subject: Re: Differences in malloc between 6 and 7? 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: Mon, 03 Mar 2008 21:40:22 -0000 On Mon, 03 Mar 2008 15:23:33 EST gnn@freebsd.org wrote: > One of the folks I'm working with found this. The following code, > which yes, is just an example, is 1/2 as fast on 7.0-RELEASE as on > 6.3. Where should I look to find out why? Specifying malloc option K (double virtual memory chunk size) roughly halves the runtime. Additional Ks reduce it more and more. As this test spends most of its time in the kernel, may be this is just due to the mmap overhead? Or may be the defaults for 6.3 were different.