Thread (12 messages) flat view 12 messages, 3 authors, 2021-06-22

Re: [PATCH net-next] ip: avoid OOM kills with large UDP sends over loopback

From: Jakub Kicinski <kuba@kernel.org>
Date: 2021-06-22 19:51:21

On Tue, 22 Jun 2021 12:04:26 -0700 Jakub Kicinski wrote:
For the UDP case we can either adapt the af_unix approach, and cap head
size to SKB_MAX_ALLOC or try to allocate the full skb and fall back.
Having alloc_skb_with_frags() itself re-balance head <> data
automatically does not feel right, no?
Actually looking closer at the UDP code it appears it only uses the
giant head it allocated if the underlying device doesn't have SG.
We can make the head smaller and probably only improve performance 
for 99% of deployments. I'll send a v2.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help