Andrei Lifchits
2006-Apr-18 01:36 UTC
[Xen-devel] Xenoprof: getting Oprofile out of timer mode?
Hello, I''m having a problem with Xenoprof: I''m trying to profile XenLinux (2.6.16) on a Pentium III desktop machine, by starting Oprofile (opcontrol --start). However, when I specify a particular event (with the --event option), Oprofile says it''s in the Timer Mode and cannot profile events. The Oprofile FAQ says the "lapic" option must be passed to the kernel at boot time if that happens, but doing so doesn''t change anything for me. I should note that Oprofile (without Xen support) works fine on this machine under Fedora Core 4 (it doesn''t go into Timer Mode), which implies that the hardware support is present. Do you know what the problem might be with XenLinux? Thank you, Andrei _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Santos, Jose Renato G
2006-Apr-18 16:36 UTC
RE: [Xen-devel] Xenoprof: getting Oprofile out of timer mode?
Andrei, I am not sure what is causing XenOprofile to not start properly in your instalations. Can you please, send me your kernel log (dmesg) and Xen log (xm dmesg). That might give us some hint. What Xen version are you using? Are you using Oprofile as a kernel module or builtin? Thanks Renato>> -----Original Message----- >> From: xen-devel-bounces@lists.xensource.com >> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of >> Andrei Lifchits >> Sent: Monday, April 17, 2006 6:37 PM >> To: xen-devel@lists.xensource.com >> Cc: Gitika Aggarwal >> Subject: [Xen-devel] Xenoprof: getting Oprofile out of timer mode? >> >> Hello, >> >> I''m having a problem with Xenoprof: I''m trying to profile XenLinux >> (2.6.16) on a Pentium III desktop machine, by starting >> Oprofile (opcontrol --start). However, when I specify a >> particular event (with the --event option), Oprofile says >> it''s in the Timer Mode and cannot profile events. The >> Oprofile FAQ says the "lapic" option must be passed to the >> kernel at boot time if that happens, but doing so doesn''t >> change anything for me. I should note that Oprofile (without >> Xen support) works fine on this machine under Fedora Core 4 >> (it doesn''t go into Timer Mode), which implies that the >> hardware support is present. Do you know what the problem >> might be with XenLinux? >> >> Thank you, >> Andrei >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel >>_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Andrei Lifchits
2006-Apr-18 19:51 UTC
Re: [Xen-devel] Xenoprof: getting Oprofile out of timer mode?
Hi Renato, I''m using Xen unstable where you added builtin Xenoprof support (the image is called xen-3.0-unstable.gz, I downloaded the source on Apr 13). Oprofile is built into the kernel. I''m attaching the kernel and Xen logs to this email. Thanks, Andrei On 4/18/06, Santos, Jose Renato G <joserenato.santos@hp.com> wrote:> > Andrei, > > I am not sure what is causing XenOprofile to not start > properly in your instalations. Can you please, send > me your kernel log (dmesg) and Xen log (xm dmesg). > That might give us some hint. > What Xen version are you using? > Are you using Oprofile as a kernel module or > builtin? > > Thanks > > Renato > > >> -----Original Message----- > >> From: xen-devel-bounces@lists.xensource.com > >> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of > >> Andrei Lifchits > >> Sent: Monday, April 17, 2006 6:37 PM > >> To: xen-devel@lists.xensource.com > >> Cc: Gitika Aggarwal > >> Subject: [Xen-devel] Xenoprof: getting Oprofile out of timer mode? > >> > >> Hello, > >> > >> I''m having a problem with Xenoprof: I''m trying to profile XenLinux > >> (2.6.16) on a Pentium III desktop machine, by starting > >> Oprofile (opcontrol --start). However, when I specify a > >> particular event (with the --event option), Oprofile says > >> it''s in the Timer Mode and cannot profile events. The > >> Oprofile FAQ says the "lapic" option must be passed to the > >> kernel at boot time if that happens, but doing so doesn''t > >> change anything for me. I should note that Oprofile (without > >> Xen support) works fine on this machine under Fedora Core 4 > >> (it doesn''t go into Timer Mode), which implies that the > >> hardware support is present. Do you know what the problem > >> might be with XenLinux? > >> > >> Thank you, > >> Andrei > >> > >> _______________________________________________ > >> Xen-devel mailing list > >> Xen-devel@lists.xensource.com > >> http://lists.xensource.com/xen-devel > >> >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Santos, Jose Renato G
2006-Apr-18 21:56 UTC
RE: [Xen-devel] Xenoprof: getting Oprofile out of timer mode?
Andrei, The xenoprof initialization routine is failing. The returned error is ENODEV. There are only two conditions that would cause this error: 1) the CPU does not have a local APIC, 2) the CPU model (vendor,family) is not recognized as a known model. But if either one of this was really true you would see the same error on vanila linux (without Xen). I am not sure what could be causing this for you. Maybe Xen detection of the local APIC is slightly different than in Linux causing Xen to not detect it (???) (Humm, this seems unlikely, but I could not find any other explanation yet ...). Maybe, someone more faniliar with APIC detection in Xen could comment if APIC detection for Pentium III could diverge from what linux does... If you apply the attached patch to "xen/arch/x86/oprofile/nmi_int.c" Xenoprof will print some error message on the Xen console when this error happens. Looking at this we will be able to determine if the error is related to APIC or the cpu model. I will be traveling later today and will not be accessing my email until next Monday. Unfortunately, I will only be able to continue this discussion after I come back Good luck, Renato>> -----Original Message----- >> From: alifchits@gmail.com [mailto:alifchits@gmail.com] On >> Behalf Of Andrei Lifchits >> Sent: Tuesday, April 18, 2006 12:52 PM >> To: Santos, Jose Renato G >> Cc: xen-devel@lists.xensource.com; Gitika Aggarwal >> Subject: Re: [Xen-devel] Xenoprof: getting Oprofile out of >> timer mode? >> >> Hi Renato, >> >> I''m using Xen unstable where you added builtin Xenoprof >> support (the image is called xen-3.0-unstable.gz, I >> downloaded the source on Apr 13). Oprofile is built into the kernel. >> I''m attaching the kernel and Xen logs to this email. >> >> Thanks, >> Andrei >> >> >> On 4/18/06, Santos, Jose Renato G <joserenato.santos@hp.com> wrote: >> > >> > Andrei, >> > >> > I am not sure what is causing XenOprofile to not start properly in >> > your instalations. Can you please, send me your kernel log >> (dmesg) and >> > Xen log (xm dmesg). >> > That might give us some hint. >> > What Xen version are you using? >> > Are you using Oprofile as a kernel module or builtin? >> > >> > Thanks >> > >> > Renato >> > >> > >> -----Original Message----- >> > >> From: xen-devel-bounces@lists.xensource.com >> > >> [mailto:xen-devel-bounces@lists.xensource.com] On >> Behalf Of Andrei >> > >> Lifchits >> > >> Sent: Monday, April 17, 2006 6:37 PM >> > >> To: xen-devel@lists.xensource.com >> > >> Cc: Gitika Aggarwal >> > >> Subject: [Xen-devel] Xenoprof: getting Oprofile out of >> timer mode? >> > >> >> > >> Hello, >> > >> >> > >> I''m having a problem with Xenoprof: I''m trying to >> profile XenLinux >> > >> (2.6.16) on a Pentium III desktop machine, by starting Oprofile >> > >> (opcontrol --start). However, when I specify a particular event >> > >> (with the --event option), Oprofile says it''s in the >> Timer Mode and >> > >> cannot profile events. The Oprofile FAQ says the "lapic" option >> > >> must be passed to the kernel at boot time if that happens, but >> > >> doing so doesn''t change anything for me. I should note that >> > >> Oprofile (without Xen support) works fine on this machine under >> > >> Fedora Core 4 (it doesn''t go into Timer Mode), which >> implies that >> > >> the hardware support is present. Do you know what the >> problem might >> > >> be with XenLinux? >> > >> >> > >> Thank you, >> > >> Andrei >> > >> >> > >> _______________________________________________ >> > >> Xen-devel mailing list >> > >> Xen-devel@lists.xensource.com >> > >> http://lists.xensource.com/xen-devel >> > >> >> > >>_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Santos, Jose Renato G
2006-Apr-19 01:37 UTC
RE: [Xen-devel] Xenoprof: getting Oprofile out of timer mode?
Sorry Andrei, I forgot to attach the patch in my previous message Here it is Renato> -----Original Message-----I > From: xen-devel-bounces@lists.xensource.com > [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of > Santos, Jose Renato G > Sent: Tuesday, April 18, 2006 2:56 PM > To: Andrei Lifchits > Cc: Gitika Aggarwal; xen-devel@lists.xensource.com > Subject: RE: [Xen-devel] Xenoprof: getting Oprofile out of timer mode? > > > Andrei, > > The xenoprof initialization routine is failing. The returned > error is ENODEV. There are only two conditions that would > cause this error: 1) the CPU does not have a local APIC, > 2) the CPU model (vendor,family) is not recognized as a known model. > But if either one of this was really true you would see the > same error on vanila linux (without Xen). > I am not sure what could be causing this for you. Maybe Xen > detection of the local APIC is slightly different than in > Linux causing Xen to not detect it (???) (Humm, this seems > unlikely, but I could not find any other explanation yet > ...). Maybe, someone more faniliar with APIC detection in Xen > could comment if APIC detection for Pentium III could diverge > from what linux does... > > If you apply the attached patch to "xen/arch/x86/oprofile/nmi_int.c" > Xenoprof will print some error message on the Xen console > when this error happens. Looking at this we will be able to > determine if the error is related to APIC or the cpu model. > > I will be traveling later today and will not be accessing my > email until next Monday. > Unfortunately, I will only be able to continue this > discussion after I come back > > Good luck, > > Renato > > >> -----Original Message----- > >> From: alifchits@gmail.com [mailto:alifchits@gmail.com] On > Behalf Of > >> Andrei Lifchits > >> Sent: Tuesday, April 18, 2006 12:52 PM > >> To: Santos, Jose Renato G > >> Cc: xen-devel@lists.xensource.com; Gitika Aggarwal > >> Subject: Re: [Xen-devel] Xenoprof: getting Oprofile out of timer > >> mode? > >> > >> Hi Renato, > >> > >> I''m using Xen unstable where you added builtin Xenoprof > support (the > >> image is called xen-3.0-unstable.gz, I downloaded the > source on Apr > >> 13). Oprofile is built into the kernel. > >> I''m attaching the kernel and Xen logs to this email. > >> > >> Thanks, > >> Andrei > >> > >> > >> On 4/18/06, Santos, Jose Renato G <joserenato.santos@hp.com> wrote: > >> > > >> > Andrei, > >> > > >> > I am not sure what is causing XenOprofile to not start > properly in > >> > your instalations. Can you please, send me your kernel log > >> (dmesg) and > >> > Xen log (xm dmesg). > >> > That might give us some hint. > >> > What Xen version are you using? > >> > Are you using Oprofile as a kernel module or builtin? > >> > > >> > Thanks > >> > > >> > Renato > >> > > >> > >> -----Original Message----- > >> > >> From: xen-devel-bounces@lists.xensource.com > >> > >> [mailto:xen-devel-bounces@lists.xensource.com] On > >> Behalf Of Andrei > >> > >> Lifchits > >> > >> Sent: Monday, April 17, 2006 6:37 PM > >> > >> To: xen-devel@lists.xensource.com > >> > >> Cc: Gitika Aggarwal > >> > >> Subject: [Xen-devel] Xenoprof: getting Oprofile out of > >> timer mode? > >> > >> > >> > >> Hello, > >> > >> > >> > >> I''m having a problem with Xenoprof: I''m trying to > >> profile XenLinux > >> > >> (2.6.16) on a Pentium III desktop machine, by > starting Oprofile > >> > >> (opcontrol --start). However, when I specify a > particular event > >> > >> (with the --event option), Oprofile says it''s in the > >> Timer Mode and > >> > >> cannot profile events. The Oprofile FAQ says the > "lapic" option > >> > >> must be passed to the kernel at boot time if that > happens, but > >> > >> doing so doesn''t change anything for me. I should note that > >> > >> Oprofile (without Xen support) works fine on this > machine under > >> > >> Fedora Core 4 (it doesn''t go into Timer Mode), which > >> implies that > >> > >> the hardware support is present. Do you know what the > >> problem might > >> > >> be with XenLinux? > >> > >> > >> > >> Thank you, > >> > >> Andrei > >> > >> > >> > >> _______________________________________________ > >> > >> Xen-devel mailing list > >> > >> Xen-devel@lists.xensource.com > >> > >> http://lists.xensource.com/xen-devel > >> > >> > >> > > >> > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Andrei Lifchits
2006-Apr-20 19:40 UTC
Re: [Xen-devel] Xenoprof: getting Oprofile out of timer mode?
Hi Renato, It looks like the problem is related to the local APIC detection in Xen, at least that''s what the xm dmesg log (attached) seems to be saying after I''ve applied the patch. Thanks for your help, Andrei On 4/18/06, Santos, Jose Renato G <joserenato.santos@hp.com> wrote:> > Andrei, > > The xenoprof initialization routine is failing. The returned > error is ENODEV. There are only two conditions that would > cause this error: 1) the CPU does not have a local APIC, > 2) the CPU model (vendor,family) is not recognized as a known model. > But if either one of this was really true you would see the > same error on vanila linux (without Xen). > I am not sure what could be causing this for you. Maybe Xen detection > of the local APIC is slightly different than in Linux causing > Xen to not detect it (???) (Humm, this seems unlikely, but I > could not find any other explanation yet ...). Maybe, someone > more faniliar with APIC detection in Xen could comment if > APIC detection for Pentium III could diverge from what linux does... > > If you apply the attached patch to "xen/arch/x86/oprofile/nmi_int.c" > Xenoprof will print some error message on the Xen console > when this error happens. Looking at this we will be able > to determine if the error is related to APIC or the cpu model. > > I will be traveling later today and will not be accessing my > email until next Monday. > Unfortunately, I will only be able to continue this discussion > after I come back > > Good luck, > > Renato > > >> -----Original Message----- > >> From: alifchits@gmail.com [mailto:alifchits@gmail.com] On > >> Behalf Of Andrei Lifchits > >> Sent: Tuesday, April 18, 2006 12:52 PM > >> To: Santos, Jose Renato G > >> Cc: xen-devel@lists.xensource.com; Gitika Aggarwal > >> Subject: Re: [Xen-devel] Xenoprof: getting Oprofile out of > >> timer mode? > >> > >> Hi Renato, > >> > >> I''m using Xen unstable where you added builtin Xenoprof > >> support (the image is called xen-3.0-unstable.gz, I > >> downloaded the source on Apr 13). Oprofile is built into the kernel. > >> I''m attaching the kernel and Xen logs to this email. > >> > >> Thanks, > >> Andrei > >> > >> > >> On 4/18/06, Santos, Jose Renato G <joserenato.santos@hp.com> wrote: > >> > > >> > Andrei, > >> > > >> > I am not sure what is causing XenOprofile to not start properly in > >> > your instalations. Can you please, send me your kernel log > >> (dmesg) and > >> > Xen log (xm dmesg). > >> > That might give us some hint. > >> > What Xen version are you using? > >> > Are you using Oprofile as a kernel module or builtin? > >> > > >> > Thanks > >> > > >> > Renato > >> > > >> > >> -----Original Message----- > >> > >> From: xen-devel-bounces@lists.xensource.com > >> > >> [mailto:xen-devel-bounces@lists.xensource.com] On > >> Behalf Of Andrei > >> > >> Lifchits > >> > >> Sent: Monday, April 17, 2006 6:37 PM > >> > >> To: xen-devel@lists.xensource.com > >> > >> Cc: Gitika Aggarwal > >> > >> Subject: [Xen-devel] Xenoprof: getting Oprofile out of > >> timer mode? > >> > >> > >> > >> Hello, > >> > >> > >> > >> I''m having a problem with Xenoprof: I''m trying to > >> profile XenLinux > >> > >> (2.6.16) on a Pentium III desktop machine, by starting Oprofile > >> > >> (opcontrol --start). However, when I specify a particular event > >> > >> (with the --event option), Oprofile says it''s in the > >> Timer Mode and > >> > >> cannot profile events. The Oprofile FAQ says the "lapic" option > >> > >> must be passed to the kernel at boot time if that happens, but > >> > >> doing so doesn''t change anything for me. I should note that > >> > >> Oprofile (without Xen support) works fine on this machine under > >> > >> Fedora Core 4 (it doesn''t go into Timer Mode), which > >> implies that > >> > >> the hardware support is present. Do you know what the > >> problem might > >> > >> be with XenLinux? > >> > >> > >> > >> Thank you, > >> > >> Andrei > >> > >> > >> > >> _______________________________________________ > >> > >> Xen-devel mailing list > >> > >> Xen-devel@lists.xensource.com > >> > >> http://lists.xensource.com/xen-devel > >> > >> > >> > > >> >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2006-Apr-21 13:50 UTC
Re: [Xen-devel] Xenoprof: getting Oprofile out of timer mode?
On 20 Apr 2006, at 20:40, Andrei Lifchits wrote:> It looks like the problem is related to the local APIC detection in > Xen, at least that''s what the xm dmesg log (attached) seems to be > saying after I''ve applied the patch.Yes. Try adding ''lapic'' as a boot parameter to Xen (in your bootloader configuration file) and that should hopefully fix things. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Andrei Lifchits
2006-Apr-21 16:44 UTC
Re: [Xen-devel] Xenoprof: getting Oprofile out of timer mode?
Hi Keir, The problem is, that option is already there. This is what the Xen entry in grub.conf looks like: title Xen Unstable / XenLinux 2.6 kernel /xen-3.0-unstable.gz console=vga lapic selinux=0 module /vmlinuz-2.6.16-xen root=/dev/hda3 ro console=tty0 lapic selinux=0 module /initrd-2.6.16-xen.img (I put lapic in both places actually, just in case). Thanks, Andrei On 4/21/06, Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote:> > On 20 Apr 2006, at 20:40, Andrei Lifchits wrote: > > > It looks like the problem is related to the local APIC detection in > > Xen, at least that''s what the xm dmesg log (attached) seems to be > > saying after I''ve applied the patch. > > Yes. Try adding ''lapic'' as a boot parameter to Xen (in your bootloader > configuration file) and that should hopefully fix things. > > -- Keir > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2006-Apr-21 17:14 UTC
Re: [Xen-devel] Xenoprof: getting Oprofile out of timer mode?
On 21 Apr 2006, at 17:44, Andrei Lifchits wrote:> The problem is, that option is already there. This is what the Xen > entry in grub.conf looks like: > > title Xen Unstable / XenLinux 2.6 > kernel /xen-3.0-unstable.gz console=vga lapic selinux=0 > module /vmlinuz-2.6.16-xen root=/dev/hda3 ro console=tty0 lapic > selinux=0 > module /initrd-2.6.16-xen.img > > (I put lapic in both places actually, just in case).Ah yes, looks like command-line parsing is broken for that option. :-( I''ve just applied a fix to the -unstable and -testing repositories, so you should have more success when you have that. The changeset you need to pull from the public repository has the comment "Fix command-line parsing...". It''ll be a couple of hours before the patch is pushed from our staging trees. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Andrei Lifchits
2006-Apr-23 04:41 UTC
Re: [Xen-devel] Xenoprof: getting Oprofile out of timer mode?
Thanks Keir, it works now. Andrei On 4/21/06, Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote:> > On 21 Apr 2006, at 17:44, Andrei Lifchits wrote: > > > The problem is, that option is already there. This is what the Xen > > entry in grub.conf looks like: > > > > title Xen Unstable / XenLinux 2.6 > > kernel /xen-3.0-unstable.gz console=vga lapic selinux=0 > > module /vmlinuz-2.6.16-xen root=/dev/hda3 ro console=tty0 lapic > > selinux=0 > > module /initrd-2.6.16-xen.img > > > > (I put lapic in both places actually, just in case). > > Ah yes, looks like command-line parsing is broken for that option. :-( > > I''ve just applied a fix to the -unstable and -testing repositories, so > you should have more success when you have that. The changeset you need > to pull from the public repository has the comment "Fix command-line > parsing...". It''ll be a couple of hours before the patch is pushed from > our staging trees. > > -- Keir > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ray Bryant
2006-May-19 22:04 UTC
Re: [Xen-devel] Xenoprof: getting Oprofile out of timer mode?
It''s back! I''m trying to run xenoprof on an Intel VT platform (955 processor) under the latest xenbits unstable (well, when I downloaded it last night, it was at changeset 10031, and I''m getting the following when I run opcontrol: You cannot specify any performance counter events because OProfile is in timer mode. The opreport command line in question is: opcontrol \ --vmlinux=/home/raybry/xenbits-unstable.hg/linux-2.6.16.13-xen/vmlinux \ --xen=/home/raybry/xenbits-unstable.hg/xen/xen-syms --active-domains=0 --event=GLOBAL_POWER_EVENTS:100000:0:1:1 The xen command line in /boot/grub/menu.lst includes the lapic option: title XENbits unstable xen root (hd0,1) kernel /boot/xen.gz lapic dom0_mem=512M tbuf_size=100 com1=115200,8n1 console=com1 cdb=com1 sync_console module /boot/vmlinuz-2.6.16-xen root=/dev/sda2 selinux=0 showopts psmouse.proto=bare lapic module /boot/initrd-2.6.16-xen Attached is the xen.dmesg, the linux.dmesg, .config file for the linux-2.6.16.13-xen kernel, and some system info. Any suggestions would be appreciated. -- Ray Bryant AMD Performance Labs Austin, Tx 512-602-0038 (o) 512-507-7807 (c) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Santos, Jose Renato G
2006-May-21 06:53 UTC
RE: [Xen-devel] Xenoprof: getting Oprofile out of timer mode?
Xenoprof initialization is failing with -ENODEV status (-19). There are two conditions that would cause this: 1) The local APIC is not available (cpu_has_apic is false) 2) OR the cpu (family/model) is not one of the known CPU models in xenoprof Have you tried running Oprofile in vanila linux? Does OProfile recognize the CPU model and the APIC in Linux? Renato> -----Original Message----- > From: Ray Bryant [mailto:raybry@mpdtxmail.amd.com] > Sent: Friday, May 19, 2006 3:04 PM > To: xen-devel@lists.xensource.com > Cc: Andrei Lifchits; Santos, Jose Renato G; Gitika Aggarwal > Subject: Re: [Xen-devel] Xenoprof: getting Oprofile out of timer mode? > > It''s back! > > I''m trying to run xenoprof on an Intel VT platform (955 > processor) under the latest xenbits unstable (well, when I > downloaded it last night, it was at changeset 10031, and I''m > getting the following when I run opcontrol: > > You cannot specify any performance counter events because > OProfile is in timer mode. > > The opreport command line in question is: > > opcontrol \ > --vmlinux=/home/raybry/xenbits-unstable.hg/linux-2.6.16.13-xen/vmlinux \ --xen=/home/raybry/xenbits-unstable.hg/xen/xen-syms > --active-domains=0> --event=GLOBAL_POWER_EVENTS:100000:0:1:1 > > The xen command line in /boot/grub/menu.lst includes the lapic option: > > title XENbits unstable xen > root (hd0,1) > kernel /boot/xen.gz lapic dom0_mem=512M tbuf_size=100 > com1=115200,8n1 > console=com1 cdb=com1 sync_console > module /boot/vmlinuz-2.6.16-xen root=/dev/sda2 selinux=0 > showopts psmouse.proto=bare lapic > module /boot/initrd-2.6.16-xen > > Attached is the xen.dmesg, the linux.dmesg, .config file for > the linux-2.6.16.13-xen kernel, and some system info. > > Any suggestions would be appreciated. > -- > Ray Bryant > AMD Performance Labs Austin, Tx > 512-602-0038 (o) 512-507-7807 (c) >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2006-May-23 22:32 UTC
Re: [Xen-devel] Xenoprof: getting Oprofile out of timer mode?
On 23 May 2006, at 23:32, Ray Bryant wrote:> Yeah, it looks the problem is the following check in > arch/x86/oprofile/nmi_int.c: > > if (cpu_model > 4) > return 0; > > Intel processors 920 and 955 (perhaps others, you would have to ask > Intel) > appear to return 6 as the cpu model. Making the obvious change to the > above > gets oprofile out of timer only mode. An obvious patch is attached.Presumably there is the same problem with oprofile on Linux running natively (no Xen)? -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ray Bryant
2006-May-23 22:32 UTC
Re: [Xen-devel] Xenoprof: getting Oprofile out of timer mode?
On Sunday 21 May 2006 01:53, Santos, Jose Renato G wrote:> Xenoprof initialization is failing with -ENODEV status (-19). > There are two conditions that would cause this: > 1) The local APIC is not available (cpu_has_apic is false) > 2) OR the cpu (family/model) is not one of the known CPU models > in xenoprof > > Have you tried running Oprofile in vanila linux? > Does OProfile recognize the CPU model and the APIC in Linux? > > Renato >Yeah, it looks the problem is the following check in arch/x86/oprofile/nmi_int.c: if (cpu_model > 4) return 0; Intel processors 920 and 955 (perhaps others, you would have to ask Intel) appear to return 6 as the cpu model. Making the obvious change to the above gets oprofile out of timer only mode. An obvious patch is attached. -- Ray Bryant AMD Performance Labs Austin, Tx 512-602-0038 (o) 512-507-7807 (c) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Santos, Jose Renato G
2006-May-24 07:02 UTC
RE: [Xen-devel] Xenoprof: getting Oprofile out of timer mode?
According to the Intel manual cpu_model 6 has the same perf counters as the other models of the p4 family. Thus, the patch seems the right fix, except that it would be better to use (cpu_model > 6) instead of (cpu_model > 7). Keir is right, oprofile should have the same problem in native Linux. I guess we could submit a similar patch for oprofile to the linux kernel mailing list. Renato> -----Original Message----- > From: Ray Bryant [mailto:raybry@mpdtxmail.amd.com] > Sent: Tuesday, May 23, 2006 3:33 PM > To: xen-devel@lists.xensource.com > Cc: Santos, Jose Renato G; Gitika Aggarwal; Andrei Lifchits > Subject: Re: [Xen-devel] Xenoprof: getting Oprofile out of timer mode? > > On Sunday 21 May 2006 01:53, Santos, Jose Renato G wrote: > > Xenoprof initialization is failing with -ENODEV status (-19). > > There are two conditions that would cause this: > > 1) The local APIC is not available (cpu_has_apic is false) > > 2) OR the cpu (family/model) is not one of the known CPU models > > in xenoprof > > > > Have you tried running Oprofile in vanila linux? > > Does OProfile recognize the CPU model and the APIC in Linux? > > > > Renato > > > > Yeah, it looks the problem is the following check in > arch/x86/oprofile/nmi_int.c: > > if (cpu_model > 4) > return 0; > > Intel processors 920 and 955 (perhaps others, you would have > to ask Intel) appear to return 6 as the cpu model. Making > the obvious change to the above > gets oprofile out of timer only mode. An obvious patch is attached. > > -- > Ray Bryant > AMD Performance Labs Austin, Tx > 512-602-0038 (o) 512-507-7807 (c) >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2006-May-24 07:16 UTC
Re: [Xen-devel] Xenoprof: getting Oprofile out of timer mode?
On 24 May 2006, at 08:02, Santos, Jose Renato G wrote:> According to the Intel manual cpu_model 6 has the same > perf counters as the other models of the p4 family. > Thus, the patch seems the right fix, except > that it would be better to use (cpu_model > 6) > instead of (cpu_model > 7). > Keir is right, oprofile should have the same problem > in native Linux. I guess we could submit a similar > patch for oprofile to the linux kernel mailing list.That''s where this fix belongs, then we''ll pull it down into Xen. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ray Bryant
2006-May-24 17:19 UTC
Re: [Xen-devel] Xenoprof: getting Oprofile out of timer mode?
On Wednesday 24 May 2006 02:02, Santos, Jose Renato G wrote:> According to the Intel manual cpu_model 6 has the same > perf counters as the other models of the p4 family. > Thus, the patch seems the right fix, except > that it would be better to use (cpu_model > 6) > instead of (cpu_model > 7). > Keir is right, oprofile should have the same problem > in native Linux. I guess we could submit a similar > patch for oprofile to the linux kernel mailing list. > > Renato >Ah, no, you need to return 1 for success. If the current cpu_model is 6, then "if (cpu_model > 6)" will return 0 and xenoprof/oprofile will remain in timer mode. -- Ray Bryant AMD Performance Labs Austin, Tx 512-602-0038 (o) 512-507-7807 (c) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ray Bryant
2006-May-24 18:33 UTC
Re: [Xen-devel] Xenoprof: getting Oprofile out of timer mode?
On Wednesday 24 May 2006 12:19, Ray Bryant wrote:> On Wednesday 24 May 2006 02:02, Santos, Jose Renato G wrote: > > According to the Intel manual cpu_model 6 has the same > > perf counters as the other models of the p4 family. > > Thus, the patch seems the right fix, except > > that it would be better to use (cpu_model > 6) > > instead of (cpu_model > 7). > > Keir is right, oprofile should have the same problem > > in native Linux. I guess we could submit a similar > > patch for oprofile to the linux kernel mailing list. > > > > Renato > > Ah, no, you need to return 1 for success. If the current cpu_model is 6, > then "if (cpu_model > 6)" will return 0 and xenoprof/oprofile will remain > in timer mode.Ah, duh. Please ignore. -- Ray Bryant AMD Performance Labs Austin, Tx 512-602-0038 (o) 512-507-7807 (c) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel