Re: [PATCH] softirq: let ksoftirqd do its job
From: Eric Dumazet
Date: Thu Sep 01 2016 - 08:51:26 EST
On Thu, 2016-09-01 at 14:05 +0200, Hannes Frederic Sowa wrote:
> Would it make sense to include used socket backlog in udp socket lookup
> compute_score calculation? Just want to throw out the idea, I actually
> could imagine to also cause bad side effects.
Hopefully we can get rid of the backlog for UDP, by no longer having to
lock the socket in RX path, and perform memory charging in a better way.
The backlog for TCP is problematic for high speed flows, and for UDP it
is problematic in flood situations as a single recvmsg() might have to
process thousands of skbs before returning to user space.
What you suggest is going to be difficult :
1) Packets of a 5-tuple (eg QUIC flow) wont all land to the same silo,
and will cause reorders or application issues.
2) SO_ATTACH_REUSEPORT_CBPF wont have access to the socket(s) backlog to
perform the choice.
Thanks.