From: Robert R. <rob...@am...> - 2008-09-24 03:34:04
|
I tried the test below also on kernel v2.6.27-rc7/oprofile 0.9.4 with similiar results. Please try this. And don't miss to send me your kernel config. -Robert On 23.09.08 20:05:36, Niraj Tolia wrote: > On Tue, Sep 23, 2008 at 7:42 PM, Robert Richter <rob...@am...> wrote: > > What tells /var/lib/oprofile/samples/oprofiled.log? > > > > Nothing much. It's along the lines of the following. I can also try a > different kernel version if you think it would work. > > > Tue Sep 23 20:00:05 2008 > > Nr. sample dumps: 1 > Nr. non-backtrace samples: 0 > Nr. kernel samples: 0 > Nr. lost samples (no kernel/user): 0 > Nr. lost kernel samples: 0 > Nr. incomplete code structs: 0 > Nr. samples lost due to sample file open failure: 0 > Nr. samples lost due to no permanent mapping: 0 > Nr. event lost due to buffer overflow: 0 > Nr. samples lost due to no mapping: 0 > Nr. backtraces skipped due to no file mapping: 0 > Nr. samples lost due to no mm: 0 > Nr. samples lost cpu buffer overflow: 0 > Nr. samples received: 0 > Nr. backtrace aborted: 0 > Nr. samples lost invalid pc: 0 > > > Cheers, > Niraj > > > -Robert > > > > On 24.09.08 04:38:40, Robert Richter wrote: > >> On 23.09.08 19:32:07, Niraj Tolia wrote: > >> > On Tue, Sep 23, 2008 at 6:53 PM, Robert Richter <rob...@am...> wrote: > >> > > Niraj, > >> > > > >> > > take a look at this directory where the raw sample data is in: > >> > > > >> > > # find /var/lib/oprofile/samples/current/ > >> > > ... > >> > > > >> > > >> > Hi Robert, > >> > > >> > I had looked into that directory earlier too but it always remains empty. > >> > > >> > > Try also to reboot the kernel with the 'nosmp' boot parameter, that > >> > > start single core kernel. > >> > > > >> > > # cat /proc/cmdline > >> > > console=ttyS0,115200 root=/dev/sda5 nosmp > >> > > > >> > > >> > Unfortunately, this didn't make a difference either. > >> > >> Hmm, I will give 2.6.26.5 a try, but I probably not before > >> tomorrow. Could you send me your configuration. > >> > >> -Robert > >> > >> > > >> > Niraj > >> > > >> > > -Robert > >> > > > >> > > On 23.09.08 18:01:26, Niraj Tolia wrote: > >> > >> Hi Robert, > >> > >> > >> > >> I ran the exact sequence of operations and I don't get any output from > >> > >> opreport. The only output difference (apart from pid) is included > >> > >> below. Please let me know if I can help with any other information. > >> > >> FYI, this is a quad-socket quad-core machine but I doubt that really > >> > >> makes a difference. > >> > >> > >> > >> > >> > >> # opcontrol --deinit > /dev/null > >> > >> Unloading oprofile module > >> > >> > >> > >> ... > >> > >> > >> > >> # opcontrol --deinit > >> > >> Stopping profiling. > >> > >> Killing daemon. > >> > >> Unloading oprofile module > >> > >> # opreport > >> > >> opreport error: No sample file found: try running opcontrol --dump > >> > >> or specify a session containing sample files > >> > >> > >> > >> > >> > >> Cheers, > >> > >> Niraj > >> > >> > >> > >> > >> > >> > >> > >> On Tue, Sep 23, 2008 at 5:46 PM, Robert Richter <rob...@am...> wrote: > >> > >> > Niraj, > >> > >> > > >> > >> > could you run the following session, this is that I got: > >> > >> > > >> > >> > # opcontrol --deinit > /dev/null > >> > >> > # rm -f /root/.oprofile/daemonrc > >> > >> > # opcontrol --no-vmlinux > >> > >> > # opcontrol --reset > >> > >> > # opcontrol --init > >> > >> > # opcontrol --start > >> > >> > Using default event: CPU_CLK_UNHALTED:100000:0:1:1 > >> > >> > Using 2.6+ OProfile kernel interface. > >> > >> > Using log file /var/lib/oprofile/samples/oprofiled.log > >> > >> > Daemon started. > >> > >> > Profiler running. > >> > >> > # opcontrol --status > >> > >> > Daemon running: pid 15515 > >> > >> > Separate options: none > >> > >> > vmlinux file: none > >> > >> > Image filter: none > >> > >> > Call-graph depth: 0 > >> > >> > # perl -e 'for ($i = 0; $i < 10000000; $i++) {;}' > >> > >> > # opcontrol --deinit > >> > >> > Stopping profiling. > >> > >> > Killing daemon. > >> > >> > # opreport > >> > >> > CPU: AMD64 family10, speed 2100 MHz (estimated) > >> > >> > Counted CPU_CLK_UNHALTED events (Cycles outside of halt state) with a unit mask of 0x00 (No unit mask) count 100000 > >> > >> > CPU_CLK_UNHALT...| > >> > >> > samples| %| > >> > >> > ------------------ > >> > >> > 37829 60.2968 perl5.8.8 > >> > >> > 23859 38.0296 no-vmlinux > >> > >> > 531 0.8464 libc-2.6.1.so > >> > >> > 235 0.3746 bash > >> > >> > 126 0.2008 oprofiled > >> > >> > 117 0.1865 ld-2.6.1.so > >> > >> > 12 0.0191 gawk-3.1.5 > >> > >> > 10 0.0159 grep > >> > >> > 6 0.0096 libcrypto.so.0.9.8 > >> > >> > 4 0.0064 ntpd > >> > >> > 4 0.0064 sshd > >> > >> > 1 0.0016 dirname > >> > >> > 1 0.0016 ls > >> > >> > 1 0.0016 sleep > >> > >> > 1 0.0016 libm-2.6.1.so > >> > >> > 1 0.0016 libncurses.so.5.6 > >> > >> > # > >> > >> > > >> > >> > -Robert > >> > >> > > >> > >> > On 23.09.08 09:24:27, Niraj Tolia wrote: > >> > >> >> (resend as my first email seemed to bounce from the mailing list) > >> > >> >> > >> > >> >> Hi, > >> > >> >> > >> > >> >> I am trying to use oprofile (0.9.4) on a machine with quad-core > >> > >> >> Opterons running the 2.6.26.5 kernel. However, I can't seem to get any > >> > >> >> profiling information out. There is nothing obvious in either > >> > >> >> /var/log/messages or in .../samples/oprofiled.log. Exact sequence of > >> > >> >> operations below. The kernel was configured to use the Tickless option > >> > >> >> but oprofile uses NMI on the system. > >> > >> >> > >> > >> >> Any ideas on how I might debug this? > >> > >> >> > >> > >> >> Cheers, > >> > >> >> Niraj > >> > >> >> > >> > >> >> % cat /proc/cpuinfo | grep name | head -n 1 > >> > >> >> model name : Quad-Core AMD Opteron(tm) Processor 8354 > >> > >> >> > >> > >> >> % opcontrol -l | head -n 1 > >> > >> >> oprofile: available events for CPU type "AMD64 family10" > >> > >> >> > >> > >> >> % opcontrol --start-daemon --no-vmlinux > >> > >> >> Using default event: CPU_CLK_UNHALTED:100000:0:1:1 > >> > >> >> Using 2.6+ OProfile kernel interface. > >> > >> >> Using log file /var/lib/oprofile/samples/oprofiled.log > >> > >> >> Daemon started. > >> > >> >> > >> > >> >> % opcontrol --start > >> > >> >> Profiler running. > >> > >> >> > >> > >> >> (there are 10 CPU intensive tasks running at this point) > >> > >> >> > >> > >> >> % sleep 60; opcontrol --dump ; opreport > >> > >> >> opreport error: No sample file found: try running opcontrol --dump > >> > >> >> or specify a session containing sample files > >> > >> >> > -- Advanced Micro Devices, Inc. Operating System Research Center email: rob...@am... |