[lkml]   [2003]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Very bad interactivity with 2.6.0 and SCSI disks (aic7xxx)
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 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

- 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


opcontrol --shutdown
rm -rf /var/lib/oprofile
opcontrol --start-daemon
opcontrol --start
<run test>
opcontrol --stop

oprofpp -l /boot/vmlinux
oprofpp -Lo /boot/vmlinux > /tmp/1

I use this script.

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
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:47    [W:0.082 / U:1.596 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site