From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751566AbcAMPid (ORCPT ); Wed, 13 Jan 2016 10:38:33 -0500 Received: from shards.monkeyblade.net ([149.20.54.216]:34571 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750713AbcAMPib (ORCPT ); Wed, 13 Jan 2016 10:38:31 -0500 Date: Wed, 13 Jan 2016 10:38:25 -0500 (EST) Message-Id: <20160113.103825.475570791449704545.davem@davemloft.net> To: edumazet@google.com Cc: hans.westgaard.ry@oracle.com, hannes@stressinduktion.org, David.Laight@aculab.com, kuznet@ms2.inr.ac.ru, jmorris@namei.org, yoshfuji@linux-ipv6.org, kaber@trash.net, ast@plumgrid.com, jiri@mellanox.com, daniel@iogearbox.net, nicolas.dichtel@6wind.com, ebiederm@xmission.com, noureddine@arista.com, jarod@redhat.com, makita.toshiaki@lab.ntt.co.jp, ja@ssi.bg, ying.xue@windriver.com, kraig@google.com, mgorman@techsingularity.net, edjee@google.com, julia.lawall@lip6.fr, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, haakon.bugge@oracle.com, knut.omang@oracle.com, wei.lin.guay@oracle.com, santosh.shilimkar@oracle.com, yuval.shaia@oracle.com Subject: Re: [PATCH] net: add per device sg_max_frags for skb From: David Miller In-Reply-To: References: <568FA1E5.7060204@stressinduktion.org> <569657D8.1020807@oracle.com> X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 13 Jan 2016 07:38:30 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.