[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1413495626.28798.38.camel@edumazet-glaptop2.roam.corp.google.com>
Date: Thu, 16 Oct 2014 14:40:26 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Alexander Duyck <alexander.h.duyck@...hat.com>
Cc: "Jiafei.Pan@...escale.com" <Jiafei.Pan@...escale.com>,
David Miller <davem@...emloft.net>,
"jkosina@...e.cz" <jkosina@...e.cz>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"LeoLi@...escale.com" <LeoLi@...escale.com>,
"linux-doc@...r.kernel.org" <linux-doc@...r.kernel.org>
Subject: Re: [PATCH] net: use hardware buffer pool to allocate skb
On Thu, 2014-10-16 at 11:20 -0700, Alexander Duyck wrote:
> My concern would be that we are off by a factor of 2 and prematurely
> collapse the TCP too soon with this change.
That is the opposite actually. We can consume 4K but we pretend we
consume 2K in some worst cases.
> For example if you are
> looking at a socket that is holding pages for a long period of time
> there would be a good chance of it ending up with both halves of the
> page. In this case is it fair to charge it for 8K or memory use when in
> reality it is only using 4K?
Its better to collapse too soon than too late.
If you want to avoid collapses because one host has plenty of memory,
all you need to do is increase tcp_rmem.
Why are you referring to 8K ? PAGE_SIZE is 4K
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists