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] xeninfo utility

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] xeninfo utility
From: Adrian Chadd <adrian@xxxxxxxxxxxxxxx>
Date: Thu, 3 May 2007 17:21:09 +0800
Delivery-date: Thu, 03 May 2007 02:20:33 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070503084523.GE27242@xxxxxxxxxxxxxxxxxxxxxxxxx>
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: <20070503084523.GE27242@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Thu, May 03, 2007, Adrian Chadd wrote:
> Hi,
> 
> I've been trying to extract per-Xen statistics out of the hypervisor for some
> monitoring and I've found there's "almost" enough stuff to do it but it
> doesn't seem to be exported via any command line interface.
> 
> So a little hacking of xentop has produced a local tool I've called "xeninfo",
> which does something like this:

The tool can be found here:

http://www.creative.net.au/diffs/xeninfo.c

I've added the rest of the libxenstat statistics as well as the "node" 
statistics.

Please consider it for inclusion under the xenstat directory. I can provide
a Makefile and manpage if required.

[root@hosting-1 adrian]# ./xeninfo
node.version = 3.0-unstable
node.total_memory = 2130243584
node.free_memory = 15093760
node.num_domains = 14
node.num_cpus = 1
node.cpu_hz = 1908992000

[root@hosting-1 adrian]# ./xeninfo skywalker
mem.current = 134033408
mem.max = 134217728
domain.ssid = 0
domain.id = 93
domain.name = skywalker
status.dying = 0
status.crashed = 0
status.shutdown = 0
status.paused = 0
status.blocked = 1
status.running = 0
vcpu.0.status = online
vcpu.0.time = 12892.770551
vbd.2050.dev = 8.2
vbd.2050.read = 194123
vbd.2050.write = 443082
vbd.2050.oo = 13077
vbd.2049.dev = 8.1
vbd.2049.read = 1889251
vbd.2049.write = 2444320
vbd.2049.oo = 67150
net.0.rx.bytes = 281708267
net.0.rx.packets = 2894917
net.0.rx.errors = 0
net.0.rx.drops = 4762
net.0.tx.bytes = 1868341991
net.0.tx.packets = 2097722
net.0.tx.errors = 0
net.0.tx.drops = 0
[root@hosting-1 adrian]#



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

<Prev in Thread] Current Thread [Next in Thread>