From owner-freebsd-threads@FreeBSD.ORG Sat Apr 2 15:41:23 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 918E216A4CE; Sat, 2 Apr 2005 15:41:23 +0000 (GMT) Received: from silver.he.iki.fi (helenius.fi [193.64.42.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7104443D31; Sat, 2 Apr 2005 15:41:22 +0000 (GMT) (envelope-from pete@he.iki.fi) Received: from [193.64.42.134] (h86.vuokselantie10.fi [193.64.42.134]) by silver.he.iki.fi (8.13.1/8.11.4) with ESMTP id j32FfIch096216; Sat, 2 Apr 2005 18:41:18 +0300 (EEST) (envelope-from pete@he.iki.fi) Message-ID: <424EBD33.5040704@he.iki.fi> Date: Sat, 02 Apr 2005 18:41:39 +0300 From: Petri Helenius User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Xu References: <20050401223744.GA6096@crodrigues.org> <424E4AA6.7050704@he.iki.fi> <424EB03B.6080501@freebsd.org> In-Reply-To: <424EB03B.6080501@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-threads@freebsd.org Subject: Re: New Nvidia drivers with KSE support 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: Sat, 02 Apr 2005 15:41:23 -0000 David Xu wrote: > Petri Helenius wrote: > >> >> I'm still having issues with profiling (-pg) enabled and issuing >> mallocs and frees from different threads. The same code runs for >> weeks/months unprofiled. (on dual or quad cpu machines topped up) >> >> Pete > > > > The .mcount in userland is not thread safe, it should be fixed, > but I don't know when will be. Is there a workaround or would it be (with the appropriate performance penalty) be "fixed" with a simple mutex? Pete