From: Tariq Toukan Subject: Re: [PATCH v2 net-next 00/14] mlx4: order-0 allocations and page recycling Date: Thu, 9 Feb 2017 18:49:01 +0200 Message-ID: References: <20170209135838.16487-1-edumazet@google.com> <3c48eac5-0c4f-f43a-1d76-75399e5fc1b8@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: "David S . Miller" , netdev , Tariq Toukan , Martin KaFai Lau , Willem de Bruijn , Jesper Dangaard Brouer , Brenden Blanco , Alexei Starovoitov , Eric Dumazet To: Eric Dumazet Return-path: Received: from mail-wr0-f194.google.com ([209.85.128.194]:35279 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751111AbdBIQux (ORCPT ); Thu, 9 Feb 2017 11:50:53 -0500 Received: by mail-wr0-f194.google.com with SMTP id o16so12530627wra.2 for ; Thu, 09 Feb 2017 08:49:04 -0800 (PST) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On 09/02/2017 6:44 PM, Eric Dumazet wrote: > On Thu, Feb 9, 2017 at 8:41 AM, Tariq Toukan wrote: >> Hi Eric, >> >> Thanks again for your series. >> >> On 09/02/2017 3:58 PM, Eric Dumazet wrote: >> >> As mentioned half a year ago, we better switch mlx4 driver to order-0 >> allocations and page recycling. >> >> This reduces vulnerability surface thanks to better skb->truesize >> tracking and provides better performance in most cases. >> >> v2 provides an ethtool -S new counter (rx_alloc_pages) and >> code factorization, plus Tariq fix. >> >> I see that you made significant changes to the previous series, especially >> patch 14 (RX CQE processing). >> Please notice that our work week has just finished here in Israel. >> I will review the series, especially the new patches (10 to 14), on Sunday. >> >> We need to test this series again in our functional and performance >> regression systems. >> It will be running during the weekend, so we can analyze the results and >> update you on Sunday. >> >> Previous performance results showed a degradation, especially in: >> - TCP single stream at 64KB length. > What RX ring size are you using ? I have not seen this at all. Default, out of box. > >> - TCP 16 streams at 1KB length. > TCP does not really care, it coalesces all these into TSO skbs, full size... But the kernel stack has to split it back accordingly in the receive side, no? > >> This was probably because cache was too short, and many page allocations >> were needed. >> In CX4, we saw the same kind of degradation, much clearer and amplified as >> it's 2.5 times faster (100G). >> >> Regards, >> Tariq Toukan