cpu usage in 7.0
Daniel Gerzo
danger at FreeBSD.org
Mon Feb 25 18:52:13 UTC 2008
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
More information about the freebsd-current
mailing list