From owner-freebsd-questions@FreeBSD.ORG Wed Jun 24 15:42:53 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BAE32106564A for ; Wed, 24 Jun 2009 15:42:53 +0000 (UTC) (envelope-from Ggatten@waddell.com) Received: from mailhost0.waddell.com (mailhost0.waddell.com [12.154.38.61]) by mx1.freebsd.org (Postfix) with ESMTP id 7E6828FC13 for ; Wed, 24 Jun 2009 15:42:53 +0000 (UTC) (envelope-from Ggatten@waddell.com) Received: from mailhost3.waddell.com (mailhost3.waddell.com [10.1.10.28]) by mailhost0.waddell.com (8.13.8/8.13.8) with ESMTP id n5OFgWjp004132 for ; Wed, 24 Jun 2009 10:42:42 -0500 (CDT) (envelope-from Ggatten@waddell.com) Received: from mailhost3.waddell.com (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 58FCD886A4 for ; Wed, 24 Jun 2009 10:42:07 -0500 (CDT) Received: from wadpexf0.waddell.com (wadpexf0.waddell.com [192.168.204.24]) by mailhost3.waddell.com (Postfix) with ESMTP id 16C4E886B3 for ; Wed, 24 Jun 2009 10:42:07 -0500 (CDT) Received: from WADPEXV0.waddell.com ([192.168.204.25]) by wadpexf0.waddell.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 24 Jun 2009 10:42:06 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Wed, 24 Jun 2009 10:42:06 -0500 Message-ID: <70C0964126D66F458E688618E1CD008A0793F0AC@WADPEXV0.waddell.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Isolating high cpu load at function level Thread-Index: Acn04lPHwXO4NXncS2arwP5NbxpV+g== From: "Gary Gatten" To: X-OriginalArrivalTime: 24 Jun 2009 15:42:06.0378 (UTC) FILETIME=[53E088A0:01C9F4E2] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Isolating high cpu load at function level X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jun 2009 15:42:54 -0000 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
"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."