Date: Wed, 24 Jun 2009 10:42:06 -0500 From: "Gary Gatten" <Ggatten@waddell.com> To: <freebsd-questions@freebsd.org> Subject: Isolating high cpu load at function level Message-ID: <70C0964126D66F458E688618E1CD008A0793F0AC@WADPEXV0.waddell.com>
next in thread | raw e-mail | index | archive | help
Hello, =20 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? =20 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). =20 TIA for any help! =20 Gary =20 <font size=3D"1"> <div style=3D'border:none;border-bottom:double windowtext 2.25pt;padding:0i= n 0in 1.0pt 0in'> </div> "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." </font>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?70C0964126D66F458E688618E1CD008A0793F0AC>