Isolating high cpu load at function level

Gary Gatten Ggatten at
Wed Jun 24 15:42:54 UTC 2009



I have a process with several threads - the main "worker" threads
typically use < 20% CPU - but after upgrading to a new version they're
now using > 90% cpu.  I'm trying to determine what function these
threads are performing that's requiring so much more cpu.  Is it bad
code? I bug in a library I linked against?  What?


I've tried gdb with list, info threads, info stack, bt full.  I can make
sense of some of it.  I guess what I'm hoping for is something like
"top" at the thread level, such that functions that thread perform are
sorted highest util (time/whatever).


TIA for any help!




<font size="1">
<div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 1.0pt 0in'>
"This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system."

More information about the freebsd-questions mailing list