From: Sander Eikelenboom Subject: Re: [PATCH v3 1/3][xen-netback] add a pseudo pps rate limit Date: Tue, 9 Jul 2013 15:48:50 +0200 Message-ID: <1483688847.20130709154850@eikelenboom.it> References: <1373372649-9029-1-git-send-email-william@gandi.net> <1373372649-9029-2-git-send-email-william@gandi.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1373372649-9029-2-git-send-email-william@gandi.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: William Dauchy Cc: Ahmed Amamou , Kamel Haddadou , Wei Liu , Ian Campbell , xen-devel List-Id: xen-devel@lists.xenproject.org Tuesday, July 9, 2013, 2:24:07 PM, you wrote: > This patch provides a new option to limit VMs maximum packets per second > emission rate. > It follows the same credits logic used for throughput shaping. For the > moment we have considered each "txreq" as a packet. > PPS limits is passed to VIF at connection time via xenstore. > PPS credit uses the same usecond period used by rate shaping check. > known limitations: > - by using the same usecond period, PPS shaping depends on throughput > shaping. > - it is not always true that a "txreq" correspond to a packet > (fragmentation cases) but as this shaping is meant to avoid DDOS > (small paquets) such an approximation should not impact the results. > - Some help on burst handling will be appreciated. Just wondering, why should this be done in the drivers ? Couldn't this also be achieved with netfilter and the recent/limit modules ? The limit module can already handle bursts. -- Sander > Signed-off-by: Ahmed Amamou > Signed-off-by: William Dauchy > Signed-off-by: Kamel Haddadou > ---