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] [PATCH 0 of 5] Add credit2 scheduler (EXPERIMENTAL)

To: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 0 of 5] Add credit2 scheduler (EXPERIMENTAL)
From: Naresh Rapolu <nrapolu@xxxxxxxxxx>
Date: Thu, 15 Apr 2010 12:46:01 -0400
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 15 Apr 2010 09:45:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4BC71A63.90302@xxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1271240778@silas> <4BC664E1.7090304@xxxxxxxxxx> <4BC71A63.90302@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.22 (X11/20090608)
Hello George,

I am trying to get linux "perf" tool work with Xen(Virtualize PMU to measure hardware events from inside guests).
I have the following options :

  1. allowing the guest kernel to see the PMU hardware features via
     cpuid, and then doing whatever is necessary to make them work as
     expected (by instruction emulation, etc), or
  2. keeping them hidden, but adding a new Xen interface and the
     appropriate Linux-side code to detect that interface and use it


Does Xenalyze have any code relevant to this ? Can you think of any directions in this regard ?

Thanks,
Naresh Rapolu.


George Dunlap wrote:
I have not measured cache / TLB misses with this workload yet. In the past I've instrumented the scheduler trace records in Xen to include performance counters such as instructions executed and cache / tlb misses, and then used xenalyze (http://xenbits.xensource.com/ext/xenalyze.hg) to analyze them. But the functionality for both capture and analysis was never standardized or added to mainline.

I'd be happy to help point you in the right direction if you're interested in investing in that approach. :-)

-George

Naresh Rapolu wrote:
Hello George,

How did you measure Cache/ TLB misses etc while using/profiling this new scheduler ? Any tool that you`ve used which works with Xen ?

Thanks,
Naresh Rapolu.
PhD Student, Computer Science,
Purdue University.

George Dunlap wrote:
This patch series introduces the credit2 scheduler. The first two patches introduce changes necessary to allow the credit2 shared runqueue functionality
to work properly; the last two implement the functionality itself.

The scheduler is still in the experimental phase. There's lots of opportunity to contribute with independent lines of development; email
George Dunlap <george.dunlap@xxxxxxxxxxxxx> or check out the wiki page
http://wiki.xensource.com/xenwiki/Credit2_Scheduler_Development for ideas
and status updates.

19 files changed, 1453 insertions(+), 21 deletions(-)
tools/libxc/Makefile | 1 tools/libxc/xc_csched2.c | 50 + tools/libxc/xenctrl.h | 8 tools/python/xen/lowlevel/xc/xc.c | 58 + tools/python/xen/xend/XendAPI.py | 3 tools/python/xen/xend/XendDomain.py | 54 + tools/python/xen/xend/XendDomainInfo.py | 4 tools/python/xen/xend/XendNode.py | 4 tools/python/xen/xend/XendVMMetrics.py | 1 tools/python/xen/xend/server/SrvDomain.py | 14 tools/python/xen/xm/main.py | 82 ++ xen/arch/ia64/vmx/vmmu.c | 6 xen/common/Makefile | 1 xen/common/sched_credit.c | 8 xen/common/sched_credit2.c | 1125 +++++++++++++++++++++++++++++ xen/common/schedule.c | 22 xen/include/public/domctl.h | 4 xen/include/public/trace.h | 1 xen/include/xen/sched-if.h | 28
_______________________________________________
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