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-users

RE: [Xen-users] How to monitor network usage

To: "'Charlie Reddington'" <charlie.reddington@xxxxxxxxx>, <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] How to monitor network usage
From: "Dustin Henning" <Dustin.Henning@xxxxxxxxxxx>
Date: Tue, 9 Sep 2008 13:47:56 -0400
Cc:
Delivery-date: Tue, 09 Sep 2008 10:49:02 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <8DA5FBBA-4366-43F8-AAD6-52610890F1A8@xxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Organization: PRD, Inc.
References: <8DA5FBBA-4366-43F8-AAD6-52610890F1A8@xxxxxxxxx>
Reply-to: Dustin.Henning@xxxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AckSmePs/F+QSGfeS9arDoGon8/avgACQe0g
        In order to see the network usage, you simply need to be going
through the PV NIC, so if you are using and HVM domU, you need a PV NIC
driver.  xm top (xentop) will show the total nettx and netrx in k.  I don't
know if the k is kilo or kibi & don't know if it's for bytes or bits.  I
also don't know if virt-manager shows the same information.  I do know that
on F8 kernel 2.6.21.7-3.fc8xen the vifname function in the config files will
prevent these counters from working. Assuming you want more detai than total
data used by the domU since startup, you would probably need to run snmp and
generate mrtg charts (perhaps the easiest way would be with cacti connecting
to the virtual machines to collect the info, but I don't know if I have
collected bandwith information over snmp from Linux [normally collect it
from cisco]).  Regarding capping of bandwith, you might be able to use tc,
but I'm not fully sure.  You might also search the archives of this list, it
seems like there is a parameter some people have been setting in their domU
config files to limit bandwidth, but I don't remember what it is.
        Dustin

-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Charlie
Reddington
Sent: Tuesday, September 09, 2008 12:33
To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] How to monitor network usage

So I was poking around through the virt-manager and I saw the option  
for 'network usage'. I've been trying to figure out a way to make sure  
I know how much bandwidth my VM's are using in a quick and easy way.  
Whether I can script out a report or just log on and look real quickly.

So the point of this is what do I need to do to view network usages on  
my VM's? I don't need the full how to - yet... but just the concept of  
what is needed so I can view this? My basic assumption is that I need  
to do my networking differently to get this information.

Also nn this point as well, is there any NICE solution to cap  
bandwidth of a VM? So lets say I want to limit this VM to 100GB, is  
there anything built into xen to do this?

OS Info:

CentOS 5 - x86_64
Running Xen from YUM
Using virt-manager over VNC

Thanks for any help,

Charlie

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



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

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