WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] xenoprofile and multiplexing of events (AMD patch)

To: Muhammad Atif <m_atif_s@xxxxxxxxx>
Subject: RE: [Xen-devel] xenoprofile and multiplexing of events (AMD patch)
From: "Santos, Jose Renato G" <joserenato.santos@xxxxxx>
Date: Thu, 19 Jun 2008 06:16:45 +0000
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 18 Jun 2008 23:18:11 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <726294.96123.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <726294.96123.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcjRUrAVOc9e3E78T2ePsgT/ak6NugAgM8aA
Thread-topic: [Xen-devel] xenoprofile and multiplexing of events (AMD patch)
Muhammad
 
You can take a look at xenoprof code.  The generic part is on xen/common/xenoprof.c and the x86 specific part is on arch/x86/oprofile. The arch specific part has the actual code that access the perf counters and the generic part implements the hypercall interface to the kernel.
 
Renato 


From: Muhammad Atif [mailto:m_atif_s@xxxxxxxxx]
Sent: Wednesday, June 18, 2008 7:51 AM
To: Santos, Jose Renato G
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] xenoprofile and multiplexing of events (AMD patch)

Thanks for the info. Unfortunatly  I am one of the people who desperately want to have multiplexing of hardware events in Xen. We are working on HPC applications on Xen so lack of  patches like perfctl/perfmon is quite annoying. :)

I will read the xenoprofile paper and related documents before asking more questions on implementing such a facility. But one quick question (may be a naive one) is where to look into the code if I want to give hardware performance counters to only dom0. I don't want fancy stuff (like per process/function etc)... just purely read the counter values of each of the CPU.
 
Best Regards,
Muhammad Atif


----- Original Message ----
From: "Santos, Jose Renato G" <joserenato.santos@xxxxxx>
To: "Santos, Jose Renato G" <joserenato.santos@xxxxxx>; Muhammad Atif <m_atif_s@xxxxxxxxx>; Viren Kumar <virenk@xxxxxxx>; "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, June 17, 2008 1:25:58 PM
Subject: RE: [Xen-devel] xenoprofile and multiplexing of events (AMD patch)

Muhammad,
 
Thanks for sharing the patch. The patch seems to reprogram event counters in regular intervals to profile different events with the same counters. Unfortunately this will not work on Xen unless someone writes a patch. Not sure if it is worth the effort though. I am not sure how frequently people want to profile more events than available, although I can see it could be useful in a few cases.
 
Renato   


From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Santos, Jose Renato G
Sent: Friday, June 13, 2008 4:51 PM
To: Muhammad Atif; Viren Kumar; xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-devel] xenoprofile and multiplexing of events (AMD patch)

Muhammad,
 
I am not familiar with this AMD patch. Is this a linux kernel patch? If you can provide more details of what the patch does, perhaps I can comment on the implications of its use with Xen.
 
Regards
 
Renato


From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Muhammad Atif
Sent: Thursday, June 12, 2008 6:50 AM
To: Muhammad Atif; Viren Kumar; xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] xenoprofile and multiplexing of events (AMD patch)

Hi developers! especially xenoprofile gurus

Jason Yeh of AMD has just released a patch for multiplexing hardware events in oprofile for AMDs.  Has anybody looked into that with Xen's perspective? Is it trivial to be hooked on to our xen kernels?
Second question, is there any way we can get access of hardware performance counters even in a very raw form i.e. only available to dom0 (even if it is still a specialized domu).
Best Regards,
Muhammad Atif


----- Original Message ----
From: Muhammad Atif <m_atif_s@xxxxxxxxx>
To: Viren Kumar <virenk@xxxxxxx>; xen-devel@xxxxxxxxxxxxxxxxxxx
Sent: Thursday, June 12, 2008 11:34:52 PM
Subject: Re: [Xen-devel] Status of hardware performance counters in Xen

AFAIK nope.
I am also looking for a nice way to get hold of performance counters in Xen, but seems like its not making on to top of priority queue, perhaps one of us should try it or we can collaborate. :)
So, still the way to go is oprofile (xenoprofile).

 
Best Regards,
Muhammad Atif


----- Original Message ----
From: Viren Kumar <virenk@xxxxxxx>
To: xen-devel@xxxxxxxxxxxxxxxxxxx
Sent: Wednesday, June 11, 2008 9:41:42 AM
Subject: [Xen-devel] Status of hardware performance counters in Xen

Hello everyone,

I'm wondering what the current status of hardware performance counter
usability in Xen is. I see some old posts describing the diffculties of
virtualizing hardware counters within dom0 and the domUs, but not much else.

Have they been implemented or are they in the process of being implemented? Or
are there no future plans for implementation? Any help would be appreciated.

My platform would be Xen with Solaris x86 as the dom0 (xVM) and Solaris or
Linux as the domUs.

Thanks,
Viren


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel