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] Regarding TX/RX rings

To: James Harper <james.harper@xxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Regarding TX/RX rings
From: Mahendra Kutare <mahendra.kutare@xxxxxxxxx>
Date: Sat, 23 Oct 2010 08:19:27 -0400
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 23 Oct 2010 05:21:09 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=YlYVSF5VUqEQvRHZkFrks3+zDd5vvlPUjE6zfnorrDo=; b=b/pSdyqe+9/y84jQWx7cgqdsNtWxtU/bQaWxrIFf4penrl44BX0AQ3xjlzeCrR0Cxd qlHDfMS/FefDmvHiYSws9D3WuVS+qWf5yZ6kmnHs5EZym4b3Fp55LKXIqGIX/hznmaHa xnWeVzag/JtUR4NfIxWakLtpqCoDGupp1Q3Mk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=SAL/r+wX8+wpBRc/Lq6w8V6DKQwpl2t5RvhGw51yzmU7b9dgPe9tvLb7pFUzWjXBLH mT6qoHe7IE/506WKgbfYugsZp/gy6SW0j+hbRaeF/no14rf1vxh00bHeJl+FfYF86vnb hI+BsluKPwGpsqBSIb2C4TjrvsMZLgdKXMVX4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AEC6C66638C05B468B556EA548C1A77D01B2008A@trantor>
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: <AANLkTinL60Znq4-2zBuge7SXnQagLZEZ=bO_ULGh9QHc@xxxxxxxxxxxxxx> <AEC6C66638C05B468B556EA548C1A77D01B2008A@trantor>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx


On Fri, Oct 22, 2010 at 9:03 PM, James Harper <james.harper@xxxxxxxxxxxxxxxx> wrote:
> Hi All,
>
> I have to monitor the rate of data transfer over a time window for TX/RX rings
> in DOM0 for all DOMUs.
>
> Is there a good place to start with in terms of code ? Any pointers of sample
> implementation already existing for this will be useful.
>

For what purpose?

Why monitor the rings directly rather than monitoring throughput at a level that already allows such things (disk io / network io etc)?

Would you be monitoring rings slots used or actual data?

There appears to be data available in /sys/devices/vbd-<domid>-<devid> that might tell you what you want for vbd's (at least there is in 2.6.31.12 - your kernel might be different). That may correlate directly to rings slots or may be an abstraction. Vbd only has one ring containing both read and write requests but the stats seem to break it down.

For network you can find throughput information in the /sys/devices/vif-<domid>-<devid>/net:vif<domid>.<devid>/statistics (maybe a few ways to get there) but that seems more packet oriented, and a single packet doesn't correlate directly to a ring slot - you could have 1 packet taking several rings slots and for GSO you could have a 'large' packet in one ring slot that would be broken up into several MTU sized packets. You'd probably need to implement a similar statistics reporting function in vif like vbd to tell you what you want to know about the actual rings.

James

The reason I am looking to monitor these rings is to find the variability of the data transfer through the TX/RX rings i.e. inbound/outbound network traffic. I am doing variability analysis for various combination of VMs running in Xen. I am looking at both CPU and Network level metrics. The goal is to infer characteristics looking at these lower level metrics about the VMs running.

On my current installation of Xen 3.4.3 with 2.6.18.8 kernel ,  the data mentioned in /sys/devices/vbd- or /sys/devices/vif is not available. I need to upgrade my kernel.

I have seen that if I monitor the network traffic input and output throughput data (through say xentop running application - RUBiS) it does not really vary a lot. So I want to monitor the lower levels to see if there exists variability that eventually evens out.


Regards
Mahendra
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>