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@lists.xensource.com http://lists.xensource.com/xen-users
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@atlasnetworks.us<mailto:support@atlasnetworks.us> http://support.atlasnetworks.us/portal From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Mike Denning Sent: Tuesday, June 23, 2009 8:06 AM To: xen-users@lists.xensource.com 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@lists.xensource.com http://lists.xensource.com/xen-users
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@lists.xensource.com 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@atlasnetworks.us>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@atlasnetworks.us > > http://support.atlasnetworks.us/portal > > > > *From:* xen-users-bounces@lists.xensource.com [mailto: > xen-users-bounces@lists.xensource.com] *On Behalf Of *Mike Denning > *Sent:* Tuesday, June 23, 2009 8:06 AM > *To:* xen-users@lists.xensource.com > *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@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
PATH=/usr/sbin:$PATH xm top seemed to do the trick. -- Mike On Tue, Jun 23, 2009 at 2:15 PM, Mike Denning <mikesdenning@gmail.com>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@lists.xensource.com > 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@atlasnetworks.us > > 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@atlasnetworks.us >> >> http://support.atlasnetworks.us/portal >> >> >> >> *From:* xen-users-bounces@lists.xensource.com [mailto: >> xen-users-bounces@lists.xensource.com] *On Behalf Of *Mike Denning >> *Sent:* Tuesday, June 23, 2009 8:06 AM >> *To:* xen-users@lists.xensource.com >> *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@lists.xensource.com >> http://lists.xensource.com/xen-users >> > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mike Denning wrote:> 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. > > -- MikeThere IS a solution. In your dom0, do: cat /proc/net/dev Thomas _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Mike, http://thread.gmane.org/gmane.comp.emulators.xen.user/46568/focus=46721 may help you. Fabian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
If you have a reason to prefer not to have /usr/sbin in the path, I believe you can also run /usr/sbin/xentop instead of /usr/sbin/xm top to get around that error. I could be wrong on the location of the xentop executable, but said executable works for me on a machine where xm top does not. I''m running F8 on that machine and assume that the Xen packages provided with it are the cause, but I don''t worry about it since, to the best of my knowledge, all xm top does is call xentop (and especially since F8 is now out of maintenance anyway). Dustin From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Mike Denning Sent: Tuesday, June 23, 2009 14:51 To: Nathan Eisenberg Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] network usage gathering PATH=/usr/sbin:$PATH xm top seemed to do the trick. -- Mike On Tue, Jun 23, 2009 at 2:15 PM, Mike Denning <mikesdenning@gmail.com> 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@lists.xensource.com 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@atlasnetworks.us> 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@atlasnetworks.us http://support.atlasnetworks.us/portal From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Mike Denning Sent: Tuesday, June 23, 2009 8:06 AM To: xen-users@lists.xensource.com 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@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users