From owner-freebsd-questions@FreeBSD.ORG Mon Jul 28 02:20:41 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 EB06B10656C6 for ; Mon, 28 Jul 2008 02:20:41 +0000 (UTC) (envelope-from SRS0=E8gimY=YI=shell.siscom.net=vogelke@siscom.net) Received: from lamorack.siscom.net (lamorack.siscom.net [209.251.2.116]) by mx1.freebsd.org (Postfix) with ESMTP id C72F68FC12 for ; Mon, 28 Jul 2008 02:20:41 +0000 (UTC) (envelope-from SRS0=E8gimY=YI=shell.siscom.net=vogelke@siscom.net) Received: from shell.siscom.net ([209.251.2.80]) by lamorack.siscom.net with esmtp (Exim 4.62) (envelope-from ) id 1KNI0Z-0001MT-Pg; Sun, 27 Jul 2008 21:58:43 -0400 Received: by shell.siscom.net (Postfix, from userid 2198) id 9D754115529; Sun, 27 Jul 2008 21:58:43 -0400 (EDT) Received: by kev.msw.wpafb.af.mil (Postfix, from userid 32768) id 70030B7B9; Sun, 27 Jul 2008 21:55:39 -0400 (EDT) To: Giorgos Keramidas In-reply-to: <87y73ohylt.fsf@kobe.laptop> (message from Giorgos Keramidas on Sun, 27 Jul 2008 05:03:58 +0300) Organization: Oasis Systems Inc. X-Disclaimer: I don't speak for the USAF or Oasis. X-GPG-ID: 1024D/711752A0 2006-06-27 Karl Vogel X-GPG-Fingerprint: 56EB 6DBF 4224 C953 F417 CC99 4C7C 7D46 7117 52A0 Message-Id: <20080728015539.70030B7B9@kev.msw.wpafb.af.mil> Date: Sun, 27 Jul 2008 21:55:39 -0400 (EDT) From: vogelke+software@pobox.com (Karl Vogel) Cc: freebsd-questions@freebsd.org Subject: Re: malloc options X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vogelke+software@pobox.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jul 2008 02:20:42 -0000 >> On Sat, 26 Jul 2008 17:36:35 -0700, >> Doug Hardie wrote: D> The program has worked under considerable load for many years with versions D> 3.7 to 6.2. Problems only occur with 7.0. The program is quite complex D> and big. It uses probably hundreds of mallocs in a typical use. The D> problems only occur reasonably randomly and only under quite heavy load. D> The developer is looking into it, but the problem only occurs on FreeBSD D> 7.0, not any other Unix systems. In the meantime I am losing money because D> of it. >> On Sun, 27 Jul 2008 05:03:58 +0300, >> Giorgos Keramidas said: G> While that's understandable, the current malloc() has undergone quite G> extensive testing by Jason Evans and a lot of people who use it in FreeBSD G> 7.X or later. Its ability to expose bugs in this way was deemed important G> enough that it is now used by other projects too. I ran into a similar problem with the BSD allocator running under heavy load that didn't happen under any Solaris or Linux system I used. I finally fixed it by using Doug Lea's malloc just for this one application: http://shell.siscom.net/~vogelke/Software/Languages/C/Libraries/malloc/ This was under FreeBSD 6.*, but it might provide another data point if you want to give it a try. -- Karl Vogel I don't speak for the USAF or my company vogelke at pobox dot com http://www.pobox.com/~vogelke And God said, "Let there be vodka!" And saw that it was good. Then God said, "Let there be light!" And then said, "Whoa - too much light."