|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] Traffic accounting in xen.
vnstat had some serious issues when i last used it. It was increasing the values of the data transfer of each adapters by a huge number each them they were shut off / turned back on. Even disabling the adapter was not having an effect on the same.
I had tried to get support on the forums, however there was no response. Several posts on the forums showed majority of the people having the same issue.
On 8/20/06,
Tim Post <tim.post@xxxxxxxxxxxxxxx> wrote:
I've had nice success using a utility like vnstat and naming each dom-u's vif. Vnstat stores each if's data in a separate db, so its easy for a dom-u's bandwidth consumption to follow it around as it migrates.
I haven't gotten it perfected yet, but I did have some major headaches trying to use iptables to account.. un-orderly (and unexpected) shutdowns via re-set or apc reboot can really cause problems.
If you don't tinker much and don't often lose dom-0 , should be fine.
http://humdi.net/vnstat/
to get a copy of vnstat. it's apt-get-able as 'vnstat' if you're using Debian & friends.
I've been tinkering with the idea of one small shared gfs system to go
in-between dom-0 hosts just for centralizing vnstat and other things that need to roam with dom-u's. Any sanity obtained from it is entirely up to your naming convention, however :)
hth -Tim
On Sun, 2006-08-20 at 06:13 +0000, Paul M. wrote:
> If dom0 is Linux based then IPTables can be used. You can create a > rule that matches the incoming or outgoing interface to that of one of > the domUs. The rule doesn't need an action. IPTables keeps track of
> the number of packets and bytes of packets matching a rule. There are > two things that you need to keep in mind: > 1) The values will roll-over at some point. I would recommend saving > and then resetting the values every week or so.
> 2) Your distribution might not save the current chains and packet > counts at shutdown/restart. You would need to modify your start up > scripts as needed. > -Paul > > On 8/19/06, Ligesh <
myself@xxxxxxxxxx> wrote: > > > > Hello folks, > > > > How do I do traffic accounting in Xen? How do I find out how much data is being used by each of the domUs. Since the only identification for the domU is the mac address, I can't find any method for doing it unless xen supports it.
> > > > Any help would be greatly appreciated. > > > > Thanks. > > > > > > -- > > :: Ligesh :: http://ligesh.com
> > > > > > > > _______________________________________________ > > 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 > >
_______________________________________________
Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
-- regards,
Anand Gupta
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
|
|
|
|