Hi all Is there any way to limit the network i/o capacity of virtual machine somehow? Say, I want a domU with id 1 to consume at much 0.5 MB/s of host''s bandwidth. Is it possible? Artem Pervin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
QOS with an iptables ? regards yves Artem Y. Pervin a écrit :> Hi all > > Is there any way to limit the network i/o capacity of virtual machine > somehow? Say, I want a domU with id 1 to consume at much 0.5 MB/s of > host''s bandwidth. Is it possible? > > > Artem Pervin > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > >-- Yves-Gaël Chény Directeur technique 44 Boulevard des Pas Enchantés 44230 St Sébastien sur Loire Tel : 02 40 97 62 67 - 08 73 77 24 91 GSM : 06 98 58 41 55 http://www.tranquilitsystems.com/ yves-gael.cheny@tranquil-it-systems.fr Tranquil IT Systems . SAS 37 000 ¤ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Artem Y. Pervin <ArtemPervin@botik.ru> wrote:> Is there any way to limit the network i/o capacity of virtual machine > somehow? Say, I want a domU with id 1 to consume at much 0.5 MB/s of > host''s bandwidth. Is it possible?Network interfaces: vif = ['' .. rate=500Kb/s ..''] regards Johannes _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Johannes Formann wrote:> Artem Y. Pervin <ArtemPervin@botik.ru> wrote: > > >> Is there any way to limit the network i/o capacity of virtual machine >> somehow? Say, I want a domU with id 1 to consume at much 0.5 MB/s of >> host''s bandwidth. Is it possible? > > Network interfaces: > > vif = ['' .. rate=500Kb/s ..'']And for all that goes beyond the scope of the rate parameter tc is your friend. http://www.lartc.org Greetings, -timo -- Timo Benk - Jabber ID: timo@jabber.de - ICQ ID: #153604896 PGP Public Key: http://www.m64s19.vlinux.de/timo_benk_gpg_key.asc _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> Network interfaces:> vif = ['' .. rate=500Kb/s ..'']> regardsNice, really nice. Thanks! I wonder why there is no a single word abour ''rate'' parameter of vif in Xen docs.> And for all that goes beyond the scope of the rate parameter tc is your > friend.> http://www.lartc.orgThanks! -- С уважением, Артем Первин mailto:ArtemPervin@botik.ru _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
>> Is there any way to limit the network i/o capacity of virtual machine >> somehow? Say, I want a domU with id 1 to consume at much 0.5 MB/s of >> host''s bandwidth. Is it possible?> Network interfaces:> vif = ['' .. rate=500Kb/s ..'']> regards> JohannesI`ve conducted a number of tests with the rate parameter of vif to investigate the effect this parameter does. I was expecting to see a proportional increase in performance of benchmark with the increasing of rate. But the experimental data shows different results. I`ve used a web-application as a workload and httperf as a benchmarking tool. There parameters of httperf were the following:> ./httperf --hog --client=0/1 --server=192.168.10.9 --port=50180 --uri=index.cgi --rate=200 --send-buffer=4096 --recv-buffer=16384 --num-conns=1000 --num-calls=1There key values of httperf''s reports are: rate: 20KB/s test-duration 193.906 s Request rate: 0.0 req/s (0.0 ms/req) Net I/O: 0.0 KB/s rate: 21KB/s test-duration 193.907 s Request rate: 0.0 req/s (0.0 ms/req) Net I/O: 0.0 KB/s rate: 22KB/s test-duration 193.966 s Request rate: 4.9 req/s (204.0 ms/req) Net I/O: 15.8 KB/s (0.1*10^6 bps) rate: 25KB/s test-duration 193.966 s Request rate: 4.9 req/s (203.3 ms/req) Net I/O: 15.8 KB/s (0.1*10^6 bps) rate: 100KB/s test-duration 193.967 s Request rate: 4.9 req/s (202.7 ms/req) Net I/O: 15.9 KB/s The performance (request rate) is 0 for rates 20 and 21 KB/s. The 22KB/s value gives normal results. However they don''t improve much with subsequent increases of rate. Is this correct behavior? May be I have misunderstood something in the way the rate parameter should be used? Or passed wrong parameters to httperf? Thanks in advance. -- Artem Pervin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hello, Has anyone actually used the ''rate'' parameter of vif?> I`ve conducted a number of tests with the rate parameter of vif to > investigate the effect this parameter does. I was expecting to see a > proportional increase in performance of benchmark with the increasing > of rate. But the experimental data shows different results.> I`ve used a web-application as a workload and httperf as a benchmarking > tool. There parameters of httperf were the following: >> ./httperf --hog --client=0/1 --server=192.168.10.9 --port=50180 --uri=index.cgi --rate=200 --send-buffer=4096 --recv-buffer=16384 --num-conns=1000 --num-calls=1> There key values of httperf''s reports are:> rate: 20KB/s > test-duration 193.906 s > Request rate: 0.0 req/s (0.0 ms/req) > Net I/O: 0.0 KB/s> rate: 21KB/s > test-duration 193.907 s > Request rate: 0.0 req/s (0.0 ms/req) > Net I/O: 0.0 KB/s> rate: 22KB/s > test-duration 193.966 s > Request rate: 4.9 req/s (204.0 ms/req) > Net I/O: 15.8 KB/s (0.1*10^6 bps)> rate: 25KB/s > test-duration 193.966 s > Request rate: 4.9 req/s (203.3 ms/req) > Net I/O: 15.8 KB/s (0.1*10^6 bps)> rate: 100KB/s > test-duration 193.967 s > Request rate: 4.9 req/s (202.7 ms/req) > Net I/O: 15.9 KB/s> The performance (request rate) is 0 for rates 20 and 21 KB/s. > The 22KB/s value gives normal results. > However they don''t improve much with subsequent increases of rate.> Is this correct behavior? May be I have misunderstood something in the > way the rate parameter should be used? Or passed wrong parameters to > httperf?> Thanks in advance.> -- > Artem Pervin-- С уважением, Артем Первин mailto:ArtemPervin@botik.ru _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Artem Y. Pervin <ArtemPervin@botik.ru> wrote: Hi,> Has anyone actually used the ''rate'' parameter of vif?Yes, witch Xen 3.0.3 (Debian stable), but tested it only with higher bandwidth (0,2 Mbit, 2 Mbit/s and so on). regards Johannes _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> Hi, > > > Has anyone actually used the ''rate'' parameter of vif? > > Yes, witch Xen 3.0.3 (Debian stable), but tested it only with higher > bandwidth (0,2 Mbit, 2 Mbit/s and so on). > > regards > > JohannesHello, Sound interesting. Can you share me your results? -- Artem Pervin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Artem Y. Pervin <ArtemPervin@botik.ru> wrote: Hello,> > > Has anyone actually used the ''rate'' parameter of vif? > > > > Yes, witch Xen 3.0.3 (Debian stable), but tested it only with higher > > bandwidth (0,2 Mbit, 2 Mbit/s and so on).> Sound interesting. > Can you share me your results?Well havn''t written them down, but it worked as expected, and is in production since some months. If it doesn''t work well witch very low speeds, you might look for the additional time-parameter (xomewhere in xen-devel) <http://article.gmane.org/gmane.comp.emulators.xen.devel/22390/> reagrds Johannes _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users