Re: [PATCH] net: add per device sg_max_frags for skb

From: Eric Dumazet
Date: Wed Jan 13 2016 - 10:44:31 EST


On Wed, Jan 13, 2016 at 7:38 AM, David Miller <davem@xxxxxxxxxxxxx> wrote:
> From: Eric Dumazet <edumazet@xxxxxxxxxx>
> 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 ..."