[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CANn89iLSnEtCiqQbPkQXLwkvebd_PPCLJsH2tbwp7Py99FS2UA@mail.gmail.com>
Date: Fri, 19 Apr 2019 09:27:52 -0700
From: Eric Dumazet <edumazet@...gle.com>
To: Andrey Ryabinin <aryabinin@...tuozzo.com>
Cc: Eric Dumazet <eric.dumazet@...il.com>,
"David S. Miller" <davem@...emloft.net>,
Mel Gorman <mgorman@...hsingularity.net>,
Willem de Bruijn <willemb@...gle.com>,
Florian Westphal <fw@...len.de>,
LKML <linux-kernel@...r.kernel.org>,
netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH 1/4] net/skbuff: don't waste memory reserves
On Fri, Apr 19, 2019 at 9:24 AM Andrey Ryabinin <aryabinin@...tuozzo.com> wrote:
>
>
> But why that failed allocation is such a problem?
>
> 1. sk_memalloc_socks() false
> 2. NIC driver tries to allocate pages and fails
The NIC then is unable to receive any frames.
We need to be able to populate the RX ring buffer, before NIC can
actually be started.
Basically you are saying : We need to allocate memory only _after_
frame has been received by the NIC.
I am saying : We need to allocate memory so that the NIC can put a
future frame in it.
Powered by blists - more mailing lists