[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Xenoprof passive domain support


  • To: "Santos, Jose Renato G" <joserenato.santos@xxxxxx>
  • From: "Yang, Xiaowei" <xiaowei.yang@xxxxxxxxx>
  • Date: Fri, 28 Apr 2006 15:58:47 +0800
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Fri, 28 Apr 2006 00:59:14 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcZqmZRc5gf3TmvrQzOeq5R5ZWQN8Q==
  • Thread-topic: [PATCH] Xenoprof passive domain support

Hi Renato,
This patch is to add Xenoprof passive domain support in SMP environment.
Basically: 
- It allocates per vcpu buffers for passive domain and maps them into
primary domain's space. 
- When primary domain gets sampled and triggers virq, its kernel module
will handle passive domain' samples besides its owns. There is potential
buffer overflow if passive is very busy while primary is idle. The
simple workaround is to allocate a rather big buffer for passive. For
now it works fine. A better way is to notify primary when passive buffer
exceeds the threshold.
- When oprofile gets passive domain samples, it splits them in to 3
parts by PC ranges pre-definition: xen/kernel/application and maps the
first two into functions. The oprofile version is a little old, for the
patch was made last August. 

The main usage is to use Xenoprof to profile HVM domain as passive
domain, which provides enough information for low level performance
tuning while no change in HVM is needed.

Thanks,
Xiaowei

Attachment: xenoprof.patch
Description: xenoprof.patch

Attachment: oprofile-0.8.1.patch
Description: oprofile-0.8.1.patch

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.