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] Monitoring I/O rate for each VMs

To: Keir Fraser <keir@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Monitoring I/O rate for each VMs
From: Nick Craig-Wood <nick@xxxxxxxxxxxxxx>
Date: Tue, 28 Nov 2006 10:51:04 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Thomas Goirand <thomas@xxxxxxxxxx>
Delivery-date: Tue, 28 Nov 2006 02:51:20 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C1906338.5198%keir@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/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: <456AAF17.4000204@xxxxxxxxxx> <C1906338.5198%keir@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.13 (2006-08-11)
On Mon, Nov 27, 2006 at 09:41:12AM +0000, Keir Fraser wrote:
> On 27/11/06 09:25, "Thomas Goirand" <thomas@xxxxxxxxxx> wrote:
> 
> >> Unfortunately these count requests rather than bytes served. This may be
> >> what you want though, as #requests should be proportional to the number of
> >> expensive disc operations (seeking and settling). Long contiguous requests
> >> are not proportionally more expensive than short ones.
> > 
> > I didn't find such file where you said. Even a "locate statistics"
> > didn't help. Note that I'm using lvm partitions, and xen 3.0.2-2 (and
> > 2.0.7 in some older servers), and my LVs are of form /dev/lvm1/xen01, is
> > <path-to-vdb> for loopback?

Note also, "xm top", followed by 'b' shows the same statistics.

> I think the stats were added during 3.0.3 development. There's no way to get
> the information you seek with older versions of Xen, although you could try
> taking the blkback driver from a 3.0.3 tree and build it against your Linux
> dom0 kernel.

Note that these stats don't work for tap:aio: block devices, eg

# grep disk /etc/xen/sarge1
disk = [ 'tap:aio:/home/sarge1/root_fs,sda1,w', 
'tap:aio:/home/sarge1/swap,sda2,w' ]

# xm list sarge1
Name                                      ID Mem(MiB) VCPUs State   Time(s)
sarge1                                     2      128     4 -b----     22.2

# cat /sys/block/dm-2/stat 
       0        0        0        0        0        0        0        0        
0        0        0

-- 
Nick Craig-Wood <nick@xxxxxxxxxxxxxx> -- http://www.craig-wood.com/nick

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

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