Hi, I see some docs about rate limiting VIF by adding "rate=" in vif parameters. For example : vif = [''mac=02:00:00:00:06:82,ip=187.32.65.86,rate=128KB/s''] But it doesn''t work. I use Xen 3.4 64bits with debian 2.6.32 pvops dom0 kernel and own 2.6.32 pvops domU kernel. Any idea ? Olivier _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, Apr 8, 2010 at 10:40 PM, Olivier B. <xen.list@daevel.fr> wrote:> Hi, > > I see some docs about rate limiting VIF by adding "rate=" in vif parameters. > > For example : vif = [''mac=02:00:00:00:06:82,ip=187.32.65.86,rate=128KB/s''] > > But it doesn''t work.How do you determine that it doesn''t work? Last time I check the rate limit is only one way (upload or download, forgot which one). And it doesn''t exactly limit it to that amount, but close enough. Try using iperf, alternating between using domU and an outside host as server. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, Apr 9, 2010 at 5:08 AM, Fajar A. Nugraha <fajar@fajar.net> wrote:> On Thu, Apr 8, 2010 at 10:40 PM, Olivier B. <xen.list@daevel.fr> wrote: > > Hi, > > > > I see some docs about rate limiting VIF by adding "rate=" in vif > parameters. > > > > For example : vif > [''mac=02:00:00:00:06:82,ip=187.32.65.86,rate=128KB/s''] > > > > But it doesn''t work. > > How do you determine that it doesn''t work? > Last time I check the rate limit is only one way (upload or download, > forgot which one).Usually it''s download; the server limiting the number of bytes sent. The other way is more complicated I think, probably involving a queue. I''m also interested in using this functionality so please let us know what you find. Thanks! Trygve _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 09/04/2010 05:08, Fajar A. Nugraha wrote:> On Thu, Apr 8, 2010 at 10:40 PM, Olivier B.<xen.list@daevel.fr> wrote: > >> Hi, >> >> I see some docs about rate limiting VIF by adding "rate=" in vif parameters. >> >> For example : vif = [''mac=02:00:00:00:06:82,ip=187.32.65.86,rate=128KB/s''] >> >> But it doesn''t work. >> > How do you determine that it doesn''t work? > Last time I check the rate limit is only one way (upload or download, > forgot which one). And it doesn''t exactly limit it to that amount, but > close enough. Try using iperf, alternating between using domU and an > outside host as server. > >Well, I only try to download a big iso thought http, with wget. I will try to upload some data. Olivier _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 09/04/2010 08:37, Olivier B. wrote:> On 09/04/2010 05:08, Fajar A. Nugraha wrote: >> On Thu, Apr 8, 2010 at 10:40 PM, Olivier B.<xen.list@daevel.fr> wrote: >>> Hi, >>> >>> I see some docs about rate limiting VIF by adding "rate=" in vif >>> parameters. >>> >>> For example : vif = >>> [''mac=02:00:00:00:06:82,ip=187.32.65.86,rate=128KB/s''] >>> >>> But it doesn''t work. >> How do you determine that it doesn''t work? >> Last time I check the rate limit is only one way (upload or download, >> forgot which one). And it doesn''t exactly limit it to that amount, but >> close enough. Try using iperf, alternating between using domU and an >> outside host as server. >> > Well, I only try to download a big iso thought http, with wget. > > I will try to upload some data. > > Olivier >So the rate limit is working when I upload data from the VM to an other server ; but I''m not able to limit incoming transfers. Olivier _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Strange that it only works one direction Sent from my iPhone On Apr 19, 2010, at 9:23 AM, "Olivier B." <xen.list@daevel.fr> wrote:> On 09/04/2010 08:37, Olivier B. wrote: >> On 09/04/2010 05:08, Fajar A. Nugraha wrote: >>> On Thu, Apr 8, 2010 at 10:40 PM, Olivier B.<xen.list@daevel.fr> >>> wrote: >>>> Hi, >>>> >>>> I see some docs about rate limiting VIF by adding "rate=" in vif >>>> parameters. >>>> >>>> For example : vif = >>>> [''mac=02:00:00:00:06:82,ip=187.32.65.86,rate=128KB/s''] >>>> >>>> But it doesn''t work. >>> How do you determine that it doesn''t work? >>> Last time I check the rate limit is only one way (upload or >>> download, >>> forgot which one). And it doesn''t exactly limit it to that amount, >>> but >>> close enough. Try using iperf, alternating between using domU and an >>> outside host as server. >>> >> Well, I only try to download a big iso thought http, with wget. >> >> I will try to upload some data. >> >> Olivier >> > > So the rate limit is working when I upload data from the VM to an > other server ; but I''m not able to limit incoming transfers. > > Olivier > > > _______________________________________________ > 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
In fact, in the redhat documentation : http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.4/html/Virtualization_Guide/sect-Virtualization-Tips_and_tricks-Limit_network_bandwidth_for_a_Xen_guest.html We can see :| rate=10Mb/s| - Limit the outgoing network traffic from the guest to 10MB/s. So... it seems this parameter is only for outgoing traffic. On 19/04/2010 15:35, Chris wrote:> Strange that it only works one direction > > Sent from my iPhone_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Not really, limiting incoming traffic is much harder. With TCP/IP it''s easy to control how much is sent, more difficult to control how much is received. However most web sites only care about the outgoing bandwidth so it''s probably sufficient in most cases. Trygve On Mon, Apr 19, 2010 at 3:35 PM, Chris <tknchris@gmail.com> wrote:> Strange that it only works one direction > > Sent from my iPhone >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users