From: Declan Doherty Subject: Re: [PATCH v2] net/bonding: reduce slave starvation on rx poll Date: Tue, 21 Mar 2017 12:22:12 +0000 Message-ID: <120d52a9-21e9-9819-070f-9fef2763a02f@intel.com> References: <20170307222757.33759-1-keith.wiles@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit To: Keith Wiles , dev@dpdk.org Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id AE25B3B5 for ; Tue, 21 Mar 2017 13:22:15 +0100 (CET) In-Reply-To: <20170307222757.33759-1-keith.wiles@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 07/03/2017 10:27 PM, Keith Wiles wrote: > When polling the bonded ports for RX packets the old driver would > always start with the first slave in the list. If the requested > number of packets is filled on the first port in a two port config > then the second port could be starved or have larger number of > missed packet errors. > > The code attempts to start with a different slave each time RX poll > is done to help eliminate starvation of slave ports. The effect of > the previous code was much lower performance for two slaves in the > bond then just the one slave. > > The performance drop was detected when the application can not poll > the rings of rx packets fast enough and the packets per second for > two or more ports was at the threshold thoughput of the application. > At this threshold the slaves would see very little or no drops in > the case of one slave. Then enable the second slave you would see > a large drop rate on the two slave bond and reduction in thoughput. > Hey Keith, sorry it took me a while to get around to testing this patch as I had some issues with the switch I'm using to test LACP. > Signed-off-by: Keith Wiles > --- ... > Acked-by: Declan Doherty