[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1384898411.8604.127.camel@edumazet-glaptop2.roam.corp.google.com>
Date: Tue, 19 Nov 2013 14:00:11 -0800
From: Eric Dumazet <eric.dumazet@...il.com>
To: "Michael S. Tsirkin" <mst@...hat.com>
Cc: Jason Wang <jasowang@...hat.com>, rusty@...tcorp.com.au,
virtualization@...ts.linux-foundation.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, Michael Dalton <mwdalton@...gle.com>,
Eric Dumazet <edumazet@...gle.com>
Subject: Re: [PATCH net] virtio-net: fix page refcnt leaking when fail to
allocate frag skb
On Tue, 2013-11-19 at 23:53 +0200, Michael S. Tsirkin wrote:
> Which NIC? Virtio? Prior to 2613af0ed18a11d5c566a81f9a6510b73180660a
> it didn't drop packets received from host as far as I can tell.
> virtio is more like a pipe than a real NIC in this respect.
Prior/after to this patch, you were not posting buffers, so if packets
were received on a physical NIC, you were dropping the packets anyway.
It makes no difference at all, adding a cushion might make you feel
better, but its really not worth it.
Under memory stress, it makes better sense to drop a super big GRO
packet (The one needing frag_list extension ...)
It gives a better signal to the sender to reduce its pressure, and gives
opportunity to free more of your memory.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists