Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S271262AbTHRGCJ (ORCPT ); Mon, 18 Aug 2003 02:02:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S271264AbTHRGCJ (ORCPT ); Mon, 18 Aug 2003 02:02:09 -0400 Received: from fw.osdl.org ([65.172.181.6]:33736 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S271262AbTHRGCF (ORCPT ); Mon, 18 Aug 2003 02:02:05 -0400 Date: Sun, 17 Aug 2003 23:03:25 -0700 From: Andrew Morton To: Stefan Foerster Cc: linux-kernel@vger.kernel.org Subject: Re: Very bad interactivity with 2.6.0 and SCSI disks (aic7xxx) Message-Id: <20030817230325.2887ca49.akpm@osdl.org> In-Reply-To: <20030818054851.GA5252@in-ws-001.cid-net.de> References: <20030818013243.GB21665@in-ws-001.cid-net.de> <20030817192103.798994d8.akpm@osdl.org> <20030818054851.GA5252@in-ws-001.cid-net.de> X-Mailer: Sylpheed version 0.9.4 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1615 Lines: 63 Stefan Foerster wrote: > > * Andrew Morton wrote: > > Stefan Foerster wrote: > > A kernel profile would be needed to diagnose this. You could use > > readprofile, but as it may be an interrupt problem, the NMI-based oprofile > > output would be better. > > Is this procedure documented anywhere? > Documentation/basic_profiling.txt and oprofile.sourceforge.net. oprofile is hard to get going and they seem to keep on changing things. A quick primer would be: - download the userspace tools, carefully read the INSTALL and README files. - You need to do ./configure --with-kernel-support (something like that). - build and install. >From my notes, for a P4: opcontrol --setup --vmlinux=/boot/vmlinux --ctr0-count=600000 --ctr0-unit-mask=1 --ctr0-event=GLOBAL_POWER_EVENTS For a PIII: opcontrol --setup --vmlinux=/boot/vmlinux --ctr0-count=600000 --ctr0-event=CPU_CLK_UNHALTED Then: opcontrol --shutdown rm -rf /var/lib/oprofile opcontrol --start-daemon opcontrol --start opcontrol --stop oprofpp -l /boot/vmlinux oprofpp -Lo /boot/vmlinux > /tmp/1 I use this script. #!/bin/sh sudo opcontrol --stop sudo opcontrol --shutdown sudo rm -rf /var/lib/oprofile sudo opcontrol --start-daemon sudo opcontrol --start time $@ sudo opcontrol --stop sudo opcontrol --shutdown - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/