From: Wei Liu <Wei.Liu2@citrix.com>
To: Rohit Damkondwar <genius.rsd@gmail.com>
Cc: wei.liu2@citrix.com, "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: dynamically set bandwidth limits of a virtual interface
Date: Thu, 27 Dec 2012 12:33:19 +0000 [thread overview]
Message-ID: <1356611599.19238.13.camel@iceland> (raw)
In-Reply-To: <CAHEEu86_NbEGWZnhm8Fcch3km0P-fLM+OzSd2vJYxP1xVfZ0wQ@mail.gmail.com>
On Thu, 2012-12-27 at 08:46 +0000, Rohit Damkondwar wrote:
> Hi all. I want to set bandwidth limits to a virtual interface
> dynamically(without restarting virtual machine). I have been browsing
> xen source code 4.1.3. I looked into libxen folder(xen_vif.c) and
> hotplug(linux) folder. Earlier in xen 3.0 , xenvif struture
> (driver/net/xen-netback/
> interface.c + common.h) and tx_add_credit function could be used to
> modify rate limits. I want to change bandwidth limits dynamically of a
> virtual interface in xen 4.1.3. Where should I look for in xen 4.1.3?
>
> Please help.
>
Xen vif has a parameter called 'rate', I don't know whether it suits
you.
Also, you can have a look at external tool like tc(8). My vague thought
is that Vif is just another interface in Dom0, tc(8) should be able to
traffic-shape Vif.
Last but not least, patches are always welcomed. ;-)
Wei.
next prev parent reply other threads:[~2012-12-27 12:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-27 8:46 dynamically set bandwidth limits of a virtual interface Rohit Damkondwar
2012-12-27 12:33 ` Wei Liu [this message]
2012-12-27 12:38 ` Pasi Kärkkäinen
2012-12-31 14:14 ` Alex Bligh
2012-12-28 7:46 ` Rohit Damkondwar
2012-12-28 10:35 ` Wei Liu
2012-12-30 12:08 ` Rohit Damkondwar
2012-12-31 11:30 ` Wei Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1356611599.19238.13.camel@iceland \
--to=wei.liu2@citrix.com \
--cc=genius.rsd@gmail.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).