[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Measuring domU traffic with vnstat



Hi Guys

I'm trying to measure the traffic of domUs using vnstat without luck.

My configuration:
Debian 6.0.3
xen 4.0.1
vnstat 1.11

I'm using bonding with two network cards.

auto bond0
iface bond0 inet manual
    slaves eth0 eth1
    bond-mode active-backup
    bond-miimon 100
    bond-updelay 200
    bond-downdelay 200
    bond-primary eth0

auto br0
iface br0 inet static
        address x.x.x.x
        netmask x.x.x.x
        network x.x.x.x
        broadcast x.x.x.x
        gateway x.x.x.x
        bridge_ports bond0
        bridge_fd 0
        bridge_hello 2
        bridge_maxage 12
        bridge_ageing 0
        bridge_maxwait 0
        bridge_stp off

We use network-dummy as network-script in xen configuration.

When monitoring the network traffic using vnstat the tx information of
every domU is almost the same and it seems to be the overall traffic
of the server.

                     rx      /      tx      /     total    /   estimated
domU1:
      Jan '12       289 KiB  /   62.04 MiB  /   62.33 MiB  /       0 KiB
    yesterday       274 KiB  /   30.63 MiB  /   30.90 MiB
        today        15 KiB  /   31.42 MiB  /   31.43 MiB  /      --

domU2:
      Jan '12       169 KiB  /   62.14 MiB  /   62.31 MiB  /       0 KiB
    yesterday        74 KiB  /   30.83 MiB  /   30.90 MiB
        today        95 KiB  /   31.31 MiB  /   31.40 MiB  /      --

domU3:
      Jan '12        75 KiB  /   62.27 MiB  /   62.35 MiB  /       0 KiB
    yesterday        64 KiB  /   30.86 MiB  /   30.92 MiB
        today        11 KiB  /   31.41 MiB  /   31.42 MiB  /      --

bond0:
      Jan '12     58.49 MiB  /   16.84 MiB  /   75.33 MiB  /  182.00 MiB
    yesterday     24.74 MiB  /   11.06 MiB  /   35.81 MiB
        today     33.75 MiB  /    5.77 MiB  /   39.52 MiB  /      76 MiB

br0:
      Jan '12     28.93 MiB  /     675 KiB  /   29.59 MiB  /       0 KiB
    yesterday     10.76 MiB  /     337 KiB  /   11.09 MiB
        today     18.17 MiB  /     338 KiB  /   18.50 MiB  /      --

How to measure the traffic using vnstat or any other software?. Please help.

Best regards,

Doan

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.