This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-users] Limiting bandwidth usage

To: Andrew Kilham <andrewkilham@xxxxxxxxxxxx>
Subject: Re: [Xen-users] Limiting bandwidth usage
From: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Date: Sat, 5 Jun 2010 05:54:44 +0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 04 Jun 2010 15:56:05 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4C0850EE.7090407@xxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4C0850EE.7090407@xxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, Jun 4, 2010 at 8:03 AM, Andrew Kilham <andrewkilham@xxxxxxxxxxxx> wrote:
> Hi,
> Is it possible to limit a domU's bandwidth usage to a certain amount over a
> 30 day period? ie only let a domU use 50gb in a month.

Xen only provides the ability to limit the outgoing network traffic
from the guest. If you need to limit incoming bandwitdh, or total
count over specific period, you have to come up with another way.

> Also, could someone please explain to me what the "Time Window" in the link
> above is for? I don't understand how that controls burstable bandwidth.

Basically it should translate the rate into what amount of data can
fit within that time window. If you already transmit that much ammount
of data, you can't send more until the next time window. So for
example (in an oversimplified scenario) if you set the rate low (say
100 kb/s) and have time window set to  something high (say 10s), then
when you send large amount of data, it'd appear as bursts roughly
10-seconds apart.

Like the link said, "A smaller time window will provide less burst
transmission, however, the replenishment rate and latency will
increase." and also "The default 50ms time window is a good balance
between latency and throughput and in most cases will not require


Xen-users mailing list

<Prev in Thread] Current Thread [Next in Thread>