From owner-freebsd-questions@FreeBSD.ORG Sat Jul 26 22:17:56 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF3B1106567C for ; Sat, 26 Jul 2008 22:17:56 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from zoom.lafn.org (zoom.lafn.org [206.117.18.8]) by mx1.freebsd.org (Postfix) with ESMTP id AE98F8FC21 for ; Sat, 26 Jul 2008 22:17:56 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from [10.0.1.196] (pool-71-109-162-173.lsanca.dsl-w.verizon.net [71.109.162.173]) (authenticated bits=0) by zoom.lafn.org (8.14.2/8.14.2) with ESMTP id m6QMHtTx010840 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Sat, 26 Jul 2008 15:17:55 -0700 (PDT) (envelope-from bc979@lafn.org) Message-Id: From: Doug Hardie To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Date: Sat, 26 Jul 2008 15:17:54 -0700 X-Mailer: Apple Mail (2.926) X-Virus-Scanned: ClamAV 0.92.1/7838/Sat Jul 26 11:35:52 2008 on zoom.lafn.org X-Virus-Status: Clean Subject: malloc options X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jul 2008 22:17:56 -0000 I have a program that has run correctly since FreeBSD 3.7. However, when upgrading the server to 7.0 I am encountering issues where values just seem to arbirtrarily change. These values are all located in memory allocated by malloc. Malloc was significantly changed with 7.0 and reading through the malloc man page there are a number of flags that can be set with /etc/malloc.conf. The default for that file is to not exist. The man page does not indicate which settings are used in that situation. After reading through it I get the feeling that the default settings for D and M are 'dM'. Hence, to return to the older malloc aproach to see if the problems go away I would need to set "Dm". But some of the descriptions seem to indicate that might not be correct. What are the default settings?