From: William Dauchy Subject: Re: [PATCH v3 1/3][xen-netback] add a pseudo pps rate limit Date: Tue, 9 Jul 2013 16:01:17 +0200 Message-ID: <20130709140117.GN20956@gandi.net> References: <1373372649-9029-1-git-send-email-william@gandi.net> <1373372649-9029-2-git-send-email-william@gandi.net> <1483688847.20130709154850@eikelenboom.it> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3683194389588457284==" Return-path: In-Reply-To: <1483688847.20130709154850@eikelenboom.it> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Sander Eikelenboom Cc: Wei Liu , Ian Campbell , William Dauchy , Ahmed Amamou , xen-devel , Kamel Haddadou List-Id: xen-devel@lists.xenproject.org --===============3683194389588457284== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="57SHPaztv6dlLu/a" Content-Disposition: inline --57SHPaztv6dlLu/a Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Jul09 15:48, Sander Eikelenboom wrote: > Just wondering, why should this be done in the drivers ? > Couldn't this also be achieved with netfilter and the recent/limit module= s ? > The limit module can already handle bursts. We indeed forgot to talk about it since we already got the question from Wei. The first thing is that your comment is also true for bandwidth which is already present. Moreover PPS is linked to bandwidth. By using netfilter, 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 netfilter. --=20 William --57SHPaztv6dlLu/a Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlHcF60ACgkQ1I6eqOUidQGdkgCfUlxM/0iDZwHk0WSaiheja/b3 TO4AnixNbH8H+iuD9eg1IVaj8mH3VJQu =fNpp -----END PGP SIGNATURE----- --57SHPaztv6dlLu/a-- --===============3683194389588457284== 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 --===============3683194389588457284==--