Thread (2 messages) 2 messages, 2 authors, 2016-12-03

Re: [PATCH net-next] udp: be less conservative with sock rmem accounting

flat view

From: David Miller <davem@davemloft.net>
Date: 2016-12-03 21:15:04

From: Paolo Abeni <pabeni@redhat.com>
Date: Fri,  2 Dec 2016 17:35:49 +0100
Before commit 850cbaddb52d ("udp: use it's own memory accounting
schema"), the udp protocol allowed sk_rmem_alloc to grow beyond
the rcvbuf by the whole current packet's truesize. After said commit
we allow sk_rmem_alloc to exceed the rcvbuf only if the receive queue
is empty. As reported by Jesper this cause a performance regression
for some (small) values of rcvbuf.

This commit is intended to fix the regression restoring the old
handling of the rcvbuf limit.

Reported-by: Jesper Dangaard Brouer <redacted>
Fixes: 850cbaddb52d ("udp: use it's own memory accounting schema")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help