Re[3]: cpu usage in 7.0

From: Daniel Gerzo <danger_at_FreeBSD.org>
Date: Mon, 25 Feb 2008 19:54:08 +0100
Hello Jeff,

Monday, February 25, 2008, 9:41:37 AM, you wrote:

>> I have a box running mysqld, which sometimes exeeds 130%, what about
>> this? ;)
>>
>> Also the mysqld is alsmost all the time in the "ucond" state, what
>> does it mean? I've been told that it is probably waiting for I/O, but
>> then, I have another box which is currently completely idle, but
>> running mysql shows that it is "ucond" as well.

> You should switch top to display threads.  'H' is the key to do it. 
> Otherwise you only get the wait channel for one of the threads.  Others
> may be busy doing things.

This is correct.

> 'ucond' means the thread is waiting on a userland condition variable. 
> This is a type of synchronization point in userland accessed via the 
> pthread_cond_*(3) api.  It may indicate a thread that is waiting for work
> but other threads may be busy.

OK, thank you for the explanation.

> Do you only have one CPU?  If you're seeing 130% on a single cpu system we
> may need to take some steps to improve the reporting.

No, actually this is AMD Athlon64 X2, so dualcore, so may I assume
130% is OK for dualcore?

-- 
Best regards,
 Daniel                            mailto:danger_at_FreeBSD.org
Received on Mon Feb 25 2008 - 17:52:13 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:28 UTC