xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* bandwidth limit and guarantee for DomUs
@ 2010-05-21 14:34 Kuriakose Mathew
  2010-05-22  6:38 ` Kuriakose Mathew
  0 siblings, 1 reply; 3+ messages in thread
From: Kuriakose Mathew @ 2010-05-21 14:34 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 693 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 754 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: bandwidth limit and guarantee for DomUs
  2010-05-21 14:34 bandwidth limit and guarantee for DomUs Kuriakose Mathew
@ 2010-05-22  6:38 ` Kuriakose Mathew
  2010-05-24  0:02   ` Zhigang Wang
  0 siblings, 1 reply; 3+ messages in thread
From: Kuriakose Mathew @ 2010-05-22  6:38 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 973 bytes --]

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
>

[-- Attachment #1.2: Type: text/html, Size: 1307 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Re: bandwidth limit and guarantee for DomUs
  2010-05-22  6:38 ` Kuriakose Mathew
@ 2010-05-24  0:02   ` Zhigang Wang
  0 siblings, 0 replies; 3+ messages in thread
From: Zhigang Wang @ 2010-05-24  0:02 UTC (permalink / raw)
  To: Kuriakose Mathew; +Cc: xen-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-05-24  0:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-21 14:34 bandwidth limit and guarantee for DomUs Kuriakose Mathew
2010-05-22  6:38 ` Kuriakose Mathew
2010-05-24  0:02   ` Zhigang Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).