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] network usage gathering

To: Nathan Eisenberg <nathan@xxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] network usage gathering
From: Mike Denning <mikesdenning@xxxxxxxxx>
Date: Tue, 23 Jun 2009 14:51:26 -0400
Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 24 Jun 2009 05:47:45 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=djW3w709+cKjFS7ySqv0IMJ/Z/gF+Q1MVvpj61kLDIA=; b=vBOgYJRaV3HrZe7X2M46F7UjUdA/tysD3k4LDg1yPC3dHw3ToGtt9NWP4ZiWI7hTT0 02Z/ihwSDRXRHPiPHklR5VcNmbezV4fffWctb1RjeT3NAOQPwVV0L7FiorJv5gkT7w+g kG+JDXZ+B+d60tmDb9grqu3/ubD4SvL0FsPco=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=cz+nqP0dHLlcWPE1WkIoEB/k09gG4f+VcyS07AbfEEzbfzrgbga/+1Wi7J7tplWLqd E9OQjJuUmfgYXPYnugIRmCQw9wB9BsCnkPdvZlaGCwt3ERky8uUu9OBG2n0f/pIfSKfk CKxTUooYm2rqcQnjflE1BHdFSNtwW8Z22erfQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <a1dbc5550906231115w26089a8bpbac17ab50482c699@xxxxxxxxxxxxxx>
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>
References: <a1dbc5550906230806t6eeb1c46w28daa924282fee19@xxxxxxxxxxxxxx> <11B064048F34FD4094CBA16FC04BE219605CA45A@ex01> <a1dbc5550906231115w26089a8bpbac17ab50482c699@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
PATH=/usr/sbin:$PATH xm top

seemed to do the trick.

-- Mike


On Tue, Jun 23, 2009 at 2:15 PM, Mike Denning <mikesdenning@xxxxxxxxx> wrote:
Nathan,

That may provide what I'm looking for -- however xm top does not seem to function properly.  all the other xm commands work fine.

[root@grill msd]# /usr/sbin/xm top
Unexpected error: exceptions.OSError

Please report to xen-devel@xxxxxxxxxxxxxxxxxxx
Traceback (most recent call last):
  File "/usr/sbin/xm", line 10, in ?
    main.main(sys.argv)
  File "/usr/lib/python2.4/site-packages/xen/xm/main.py", line 1483, in main
    rc = cmd(args)
  File "/usr/lib/python2.4/site-packages/xen/xm/main.py", line 1052, in xm_top
    os.execvp('xentop', ['xentop'])
  File "/usr/lib/python2.4/os.py", line 341, in execvp
    _execvpe(file, args)
  File "/usr/lib/python2.4/os.py", line 379, in _execvpe
    func(fullname, *argrest)
OSError: [Errno 2] No such file or directory


-- Mike


On Tue, Jun 23, 2009 at 1:57 PM, Nathan Eisenberg <nathan@xxxxxxxxxxxxxxxx> wrote:

Mike –

 

Is the data in xm top not useful under the NETTX and NETRX columns?

 

    NAME  STATE   CPU(sec)  CPU(%)     MEM(k) MEM(%)  MAXMEM(k) MAXMEM(%) VCPUS NETS NETTX(k) NETRX(k) VBDS   VBD_OO   VBD_RD   VBD_WR SSID

Domain-0 -----r      76640    2.6    4141056   24.7   no limit       n/a     8    4        0        0    0        0        0        0 2149627072

Testapp0 --b---      49090    0.5    2048000   12.2    2048000      12.2     2    1  9514776  5609343    2      241  8377726 13520754 2149627072

testapp1 --b---      76074    0.3    2048000   12.2    2048000      12.2     2    1 21574426  9824853    2      157   653875 16255860 2149627072

testapp2 --b---     219883    4.7    2048000   12.2    2048000      12.2     2    1 37801757 25565941    2       85  3935004 40831484 2149627072

testapp3 --b---        586    0.4     524288    3.1     524288       3.1     1    1    79464   281130    2      143     5350    51614 2149627072

testapp4 --b---        545    0.7     524288    3.1     524288       3.1     1    1    62130   297314    2      789     3326    51252 2149627072

testapp5 --b---        474    0.1     524288    3.1     524288       3.1     1    1    61569   282954    2     1032     3365    51627 2149627072

testapp6 --b---        474    0.1     524288    3.1     524288       3.1     1    1    59681   255027    2     1655     3219    47924 2149627072

testapp7 --b---        475    0.1     524288    3.1     524288       3.1     1    1    59741   254684    2     1446     3209    47289 2149627072

testapp8 --b---        473    0.1     524288    3.1     524288       3.1     1    1    59287   252783    2      501     3258    48469 2149627072

Testapp9 --b---      37348    0.2    2048000   12.2    2048000      12.2     2    1  3521401  2448598    2        4   157779  4363920 2149627072

 

Best Regards

Nathan Eisenberg

Sr. Systems Administrator

Atlas Networks, LLC

support@xxxxxxxxxxxxxxxx

http://support.atlasnetworks.us/portal

 

From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Mike Denning
Sent: Tuesday, June 23, 2009 8:06 AM
To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] network usage gathering

 

I've run into a problem gathering usage for my xen virtual systems. With my old model I used to gather all network usage via my cisco devices using the the counters for each port. Each system had it's own port on the switch, and I tracked network usage accordingly. Now that I'm using xen for virtual systems, and multiple vm's share the same switch port, i'm not exactly sure what my best option is for tracking usage.

I thought I may be able to setup vlans on the switch, and bind each vm to a different vlan using vconfig... but it seems like there has to be a better solution than that. Has anyone done anything like this? Any insight would be greatly appreciated.

-- Mike


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