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


RE: [Xen-devel] Regarding TX/RX rings

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-devel] Regarding TX/RX rings
From: George Shuklin <george.shuklin@xxxxxxxxx>
Date: Sat, 23 Oct 2010 15:04:15 +0400
Delivery-date: Sat, 23 Oct 2010 04:05:17 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=orZee6KZPZR144WGNebxTJoXyDUTkFV1GiUOaXfFMJA=; b=oQNzE7R5bHCBOjo5codiaZxFSkqSJAvdceu/HftlNyujEo4IfB3EmnURjBBSmUs+1Q XY8xpDankzBYFYJwGUMcmyGYJfURL+bGcGwDJoBEZaI623WWxMKZfzaN3pIurRIv3iti a2XqWAzEbZzysf1Ecoye1yV4/ZZat2cD8aaGY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; b=ClDB2it/7RbJ7AqqKXj9KadNzWDbFCOEpzNnDmDNO1J2XzAMg0ujNHAH1ea0SxvIgS 1nz+1SCMH8BH0oL74aV2t/x+4M8G+HkATgf05BWxY7BX0jKQ5l0DcF6c7+l04fpE1e1b 7KsBcB2uOLUToCq2PCP3PG5QA0KvcLyA8SuR4=
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

I'd like to pointed to this again: HVM machine without PV network
dirvers lack of network statistics.

В Сбт, 23/10/2010 в 12:03 +1100, James Harper пишет:
> > 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 - 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
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel

Xen-devel mailing list

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