From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752607AbcAMPo3 (ORCPT ); Wed, 13 Jan 2016 10:44:29 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:35595 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751076AbcAMPo1 (ORCPT ); Wed, 13 Jan 2016 10:44:27 -0500 MIME-Version: 1.0 In-Reply-To: <20160113.103825.475570791449704545.davem@davemloft.net> References: <568FA1E5.7060204@stressinduktion.org> <569657D8.1020807@oracle.com> <20160113.103825.475570791449704545.davem@davemloft.net> Date: Wed, 13 Jan 2016 07:44:26 -0800 Message-ID: Subject: Re: [PATCH] net: add per device sg_max_frags for skb From: Eric Dumazet To: David Miller Cc: Hans Westgaard Ry , Hannes Frederic Sowa , David Laight , Alexey Kuznetsov , James Morris , Hideaki YOSHIFUJI , Patrick McHardy , Alexei Starovoitov , Jiri Pirko , Daniel Borkmann , Nicolas Dichtel , "Eric W. Biederman" , Salam Noureddine , Jarod Wilson , Toshiaki Makita , Julian Anastasov , Ying Xue , Craig Gallek , Mel Gorman , Edward Jee , Julia Lawall , netdev , LKML , Haakon Bugge , Knut Omang , Wei Lin Guay , Santosh Shilimkar , Yuval Shaia Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 13, 2016 at 7:38 AM, David Miller wrote: > From: Eric Dumazet > Date: Wed, 13 Jan 2016 06:19:11 -0800 > >> 2) TCP stack has coalescing support. write(2) or sendmsg(2) should >> append data into the last skb in write queue, and still use 32 KB >> frags. > > Another way to get pathological SKBs is to do lots of tiny sendpage() > calls over discontiguous areas of the file. Yes, this was what I mentioned in the following sentence. "You get pathological skb when using sendpage() or ..."