From owner-freebsd-threads@FreeBSD.ORG Thu Feb 10 19:12:34 2005 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3BDC216A4CE for ; Thu, 10 Feb 2005 19:12:34 +0000 (GMT) Received: from bute.st-andrews.ac.uk (bute.st-and.ac.uk [138.251.12.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0EA043D48 for ; Thu, 10 Feb 2005 19:12:32 +0000 (GMT) (envelope-from s_sourceforge@nedprod.com) Received: from kate (res04-ned6.res.st-and.ac.uk [138.251.234.67]) by bute.st-andrews.ac.uk (8.9.1a/8.9.1) with SMTP id TAA26244; Thu, 10 Feb 2005 19:09:09 GMT From: "Niall Douglas" To: Andriy Tkachuk Date: Thu, 10 Feb 2005 19:11:59 -0000 MIME-Version: 1.0 Message-ID: <420BB1FF.11156.68F6CEC@localhost> Priority: normal In-reply-to: <200502101604.27196.andrit@ukr.net> References: <346a8022050210054670390298@mail.gmail.com> X-mailer: Pegasus Mail for Windows (4.21c) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Content-Transfer-Encoding: 7BIT cc: freebsd-threads@freebsd.org Subject: Re: pthreads & dynamic memory in fbsd vs. the same in linux X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Feb 2005 19:12:34 -0000 On 10 Feb 2005 at 16:04, Andriy Tkachuk wrote: > > > It's interesting that the same program behaves differently > > > when it is compiled in linux and run on my fbsd machine in > > > linux_base-7.1_7 . Linux uses ptmalloc2 as its memory allocator, an extremely efficient implementation whose performance under a heavily loaded multithreaded system is impressive. FreeBSD does not. You can get ptmalloc2 from http://www.nedprod.com/programs/Win32/ptmalloc2/. It would be nice if FreeBSD were to adopt this allocator as the system default (it has a BSD type license). Cheers, Niall