Kuriakose Mathew
2010-May-21 14:34 UTC
[Xen-devel] bandwidth limit and guarantee for DomUs
Hi, I have done a small code modification so that the bandwidth limit of each domU can be limited. The implementation goes like this In the file linux-2.6-xen-sparse/drivers/xen/netback/netback.c In the function, net_tx_action netif->remaining_credit and netif->credit_usec values are assigned such that in credit_usec seconds the domain can send remaining_credit bytes. Now I want to implement something like providing guarantees to domains. That is whatever be the bandwidth utilization of say DomU2 DomU1 should be able to deliver at minimum rate similar to setting cpu cap and weights. Can someone point me to some algorithm or reference in this direction Thanks in advance Mathew _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Kuriakose Mathew
2010-May-22 06:38 UTC
[Xen-devel] Re: bandwidth limit and guarantee for DomUs
Will the CPU scheduler algo for providing weights work in case of bandwidth weights? Or any other better suggestions in this direction. Thanks in advance Mathew On Fri, May 21, 2010 at 8:04 PM, Kuriakose Mathew <kmathew123@gmail.com>wrote:> Hi, > > I have done a small code modification so that the bandwidth limit of each > domU can be limited. > > The implementation goes like this > > In the file linux-2.6-xen-sparse/drivers/xen/netback/netback.c > In the function, net_tx_action > netif->remaining_credit and netif->credit_usec values are assigned such > that in credit_usec seconds the domain can send remaining_credit bytes. > > Now I want to implement something like providing guarantees to domains. > That is whatever be the bandwidth utilization of say DomU2 DomU1 should be > able to deliver at minimum rate similar to setting cpu cap and weights. > > Can someone point me to some algorithm or reference in this direction > > Thanks in advance > Mathew >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Zhigang Wang
2010-May-24 00:02 UTC
Re: [Xen-devel] Re: bandwidth limit and guarantee for DomUs
You reimplemented this: http://xenbits.xensource.com/xen-unstable.hg?rev/dadadf9aeee7 ? This patch is for outbound (from domU) traffic only. For inbound (from domU), you can use tc on vifx.y. Zhigang On 05/22/2010 02:38 PM, Kuriakose Mathew wrote:> Will the CPU scheduler algo for providing weights work in case of > bandwidth weights? > Or any other better suggestions in this direction. > > Thanks in advance > Mathew > > > On Fri, May 21, 2010 at 8:04 PM, Kuriakose Mathew <kmathew123@gmail.com > <mailto:kmathew123@gmail.com>> wrote: > > Hi, > > I have done a small code modification so that the bandwidth limit of > each domU can be limited. > > The implementation goes like this > > In the file linux-2.6-xen-sparse/drivers/xen/netback/netback.c > In the function, net_tx_action > netif->remaining_credit and netif->credit_usec values are assigned > such that in credit_usec seconds the domain can send > remaining_credit bytes. > > Now I want to implement something like providing guarantees to > domains. That is whatever be the bandwidth utilization of say DomU2 > DomU1 should be able to deliver at minimum rate similar to setting > cpu cap and weights. > > Can someone point me to some algorithm or reference in this direction > > Thanks in advance > Mathew > > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel