Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Aug 2004 11:07:39 +0200
From:      =?iso-8859-2?q?S=B3awek_=AFak?= <zaks@prioris.mini.pw.edu.pl>
To:        Julian Elischer <julian@elischer.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Deadlocks with recent SMP current
Message-ID:  <863c2kolus.fsf@thirst.unx.era.pl>
In-Reply-To: <41223C15.7050305@elischer.org> (Julian Elischer's message of "Tue, 17 Aug 2004 10:10:45 -0700")
References:  <20040813121208.M31181@cvs.imp.ch> <86y8kfqcp8.fsf@thirst.unx.era.pl> <41223C15.7050305@elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Julian Elischer <julian@elischer.org> writes:

> Sławek Żak wrote:

[...]

>>     MySQLd is running with libpthread and can go up to 400% without
>>     significantly afecting the idle percentage shown by top. I don't see how I
>>     could fit 400% into 20% on those two suckers, therefore I ask :)
>
> Cpu percentage use is broken for pthread applications..
> it's almost impossible to work out the right way of doing it
> due to the nature of M:N threading where there is no fixed rule as
> to which user thread is run by which kernel thread.
>
> I have ideas but it will probably have to be an aggreagate cpu% for the thread
> group, divided by the number of kernel threads in the group.

    Well. Better this than the current sorry, saying nothing number :)

/S    
-- 
Sławek Żak : UNIX Systems Administrator : PTC Sp. zoo



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?863c2kolus.fsf>