From: William Dauchy <william@gandi.net>
To: Wei Liu <wei.liu2@citrix.com>
Cc: Ahmed Amamou <ahmed@gandi.net>, Kamel Haddadou <kamel@gandi.net>,
Ian Campbell <Ian.Campbell@citrix.com>,
William Dauchy <william@gandi.net>,
xen-devel <xen-devel@lists.xen.org>
Subject: Re: xen-netback: add a pseudo pps rate limit
Date: Mon, 24 Jun 2013 15:42:35 +0200 [thread overview]
Message-ID: <20130624134235.GE30099@gandi.net> (raw)
In-Reply-To: <20130624101454.GA424@zion.uk.xensource.com>
[-- Attachment #1.1: Type: text/plain, Size: 1658 bytes --]
Hi Wei,
Thanks for your reply.
On Jun24 11:14, Wei Liu wrote:
> First question, can we achieve the same effect by using existing
> facility in backend domain, say, tcng in Linux?
yes indeed, but it looks like way more complicated to configure; we
thought it was a good option to manage it with the bandwitdh.
Also, by using tcng, PPS shaping is done on backend level, once packet has
left the VM; which means after using an additional memory transaction to copy
packet from frontend. IMHO, at scale, shaping in this way should save some
memory transactions comparing to tcng.
> It would be better if you can come up with patch for toolstack as well
> -- the rate parameter is parsed in libxl (see
> $XEN/tools/libxl/libxlu_vif.c) -- so that users of this parameter can
> specify it in their VM config file. But that's another topic and deserve
> another patch.
indeed; for now we do have a userland patch but using xend which is out
of date; that's why we didn't send it along. Are you interested by it
anyway?
> Hmm, the replenishing looks simple. I'm not sure if it's over
> simplified. Could you look at the ring and determine the possible burst
> value? (note that in the ring txreq != packet). Just my two cents.
we didn't had a look for now since we were eventually looking for some
help (and time) on this subject.
> If you fail to parse "rate" you skip parsing "pps", is this intentional?
yes; PPS is linked to rate since they are checked within the same
perdiod.
"by using the same usecond period, PPS shaping depends on throughput shaping."
Will resend with the small typo you picked.
--
William
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2013-06-24 13:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-21 13:43 xen-netback: add a pseudo pps rate limit William Dauchy
2013-06-24 10:14 ` Wei Liu
2013-06-24 13:42 ` William Dauchy [this message]
2013-06-24 14:09 ` Wei Liu
2013-06-24 14:24 ` William Dauchy
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=20130624134235.GE30099@gandi.net \
--to=william@gandi.net \
--cc=Ian.Campbell@citrix.com \
--cc=ahmed@gandi.net \
--cc=kamel@gandi.net \
--cc=wei.liu2@citrix.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).