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/
Home Products Support Community News


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

To: "Santos, Jose Renato G" <joserenato.santos@xxxxxx>
Subject: [Xen-devel] [PATCH] Xenoprof passive domain support
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcZqmZRc5gf3TmvrQzOeq5R5ZWQN8Q==
Thread-topic: [PATCH] Xenoprof passive domain support
Hi Renato,
This patch is to add Xenoprof passive domain support in SMP environment.
- 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.


Attachment: xenoprof.patch
Description: xenoprof.patch

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

Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Xenoprof passive domain support, Yang, Xiaowei <=