From: William Dauchy Subject: Re: xen-netback: add a pseudo pps rate limit Date: Mon, 24 Jun 2013 15:42:35 +0200 Message-ID: <20130624134235.GE30099@gandi.net> References: <1371822233-8205-1-git-send-email-william@gandi.net> <20130624101454.GA424@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1806325889265998311==" Return-path: In-Reply-To: <20130624101454.GA424@zion.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei Liu Cc: Ahmed Amamou , Kamel Haddadou , Ian Campbell , William Dauchy , xen-devel List-Id: xen-devel@lists.xenproject.org --===============1806325889265998311== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Oiv9uiLrevHtW1RS" Content-Disposition: inline --Oiv9uiLrevHtW1RS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 co= py 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 !=3D 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 shapin= g." Will resend with the small typo you picked. --=20 William --Oiv9uiLrevHtW1RS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlHITMsACgkQ1I6eqOUidQEZpgCeOzuOu057QUznmDsheYiAOKls q/AAn3OdNuXrfhBU27iGTmkrwXlf7Wu3 =2sPA -----END PGP SIGNATURE----- --Oiv9uiLrevHtW1RS-- --===============1806325889265998311== 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.xen.org http://lists.xen.org/xen-devel --===============1806325889265998311==--