From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kuriakose Mathew Subject: Re: bandwidth limit and guarantee for DomUs Date: Sat, 22 May 2010 12:08:54 +0530 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0006501817==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0006501817== Content-Type: multipart/alternative; boundary=00163646d644c2d3950487290f8f --00163646d644c2d3950487290f8f Content-Type: text/plain; charset=ISO-8859-1 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 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 > --00163646d644c2d3950487290f8f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Will the CPU scheduler algo for providing weights work in case of bandwidth= weights?
Or any other better suggestions in this direction.

Than= ks in advance
Mathew


On Fri, May 2= 1, 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 ca= n be limited.

The implementation goes like this

In the file=A0 linux-2.6-xen-s= parse/drivers/xen/netback/netback.c
In the function, net_tx_action
netif->remaining_credit and=A0 netif->credit_usec values are assigned= such that in credit_usec seconds the domain can send remaining_credit byte= s.

Now I want to implement something like providing guarantees to do= mains. That is whatever be the bandwidth utilization of say DomU2 DomU1 sho= uld be able to deliver at minimum rate similar to setting cpu cap and weigh= ts.

Can someone point me to some algorithm or reference in this direction
Thanks in advance
Mathew

--00163646d644c2d3950487290f8f-- --===============0006501817== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0006501817==--