From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 18 13:37:18 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3C71816A41F for ; Mon, 18 Jun 2007 13:37:18 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id E9FB013C46A for ; Mon, 18 Jun 2007 13:37:17 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 85BCE8BF487; Mon, 18 Jun 2007 15:37:14 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o0Xw3A9gZj0O; Mon, 18 Jun 2007 15:37:13 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 502A98BF436; Mon, 18 Jun 2007 15:37:13 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id l5IDbBcO094853; Mon, 18 Jun 2007 15:37:11 +0200 (CEST) (envelope-from rdivacky) Date: Mon, 18 Jun 2007 15:37:11 +0200 From: Roman Divacky To: Garrett Cooper Message-ID: <20070618133711.GA94692@freebsd.org> References: <467636C0.6040604@u.washington.edu> <20070618081532.GI1181@turion.vk2pj.dyndns.org> <46764865.9030203@u.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46764865.9030203@u.washington.edu> User-Agent: Mutt/1.4.2.3i Cc: hackers@freebsd.org Subject: Re: Making sense of ktrace(1) output X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2007 13:37:18 -0000 On Mon, Jun 18, 2007 at 01:55:01AM -0700, Garrett Cooper wrote: > Peter Jeremy wrote: > >On 2007-Jun-18 00:39:44 -0700, Garrett Cooper > >wrote: > > > >>However, I was able to get ktrace output. The only problem is that > >>ktrace(1) apparently outputs only in binary, instead of plaintext output. > >>Can I convert it to plaintext somehow and process it? > >> > > > >kdump(1) > > > > > grazi to all that replied -- that did the trick :). > > Now, note to self.. never ever do analysis on something so large as > pkg_add thunderbird. Really, really bad idea :).. > > I'll make up some Perl scripts, produce some histograms, and see if I > can better trace down this bottleneck. well.. instead of using ktrace I'd suggest building profiled pkg_add and see that way where the time is spent. ktrace is great if you dont have the source code... but you do :) roman