Skip to content

RFC Introduce biased busy-polling

Björn Töpel bpf intel-wired-lan netdev oe-kbuild-all 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest0 of 9 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 9 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Intel-wired-lan] [RFC PATCH bpf-next 0/9] Introduce biased busy-polling
Quoted 1 line · Eric Dumazet

On Wed, Oct 28, 2020 at 2:35 PM Bj?rn T?pel <[email protected]> wrote:

[...]

Quoted 7 lines
Quoted 7 lines

Performance UDP sockets:

I hacked netperf to use non-blocking sockets, and looping over recvfrom(). The following command-line was used:

   $ netperf -H 192.168.1.1 -l 30 -t UDP_RR -v 2 -- \
       -o min_latency,mean_latency,max_latency,stddev_latency,transaction_rate
Quoted 9 lines
Quoted 5 lines

Non-blocking:

   16,18.45,195,0.94,54070.369
Non-blocking with biased busy-polling:
   15,16.59,38,0.70,60086.313

But a fair comparison should be done using current busy-polling mode, which does not require netperf to use non-blocking mode in the first place ?

Yeah, good point! I'll make sure to add that.

One difference between biased/regular is that for elephant flows, regular falls back to softirq processing, where as the biased stay in "busy-polling mode". Further, if the softirq is really busy due to heavy load (traffic) busy-polling will never be entered.

Quoted 3 lines

Would disabling/rearming interrupts about 60,000 times per second bring any benefit ?

Not following, Eric. Wdym?

Quoted 7 lines

Additional questions :

- What happens to the gro_flush_timeout and accumulated TCP segments in GRO engine
while the biased busy-polling is in use ?

Quoted 6 lines

- What mechanism would avoid a potential 200 ms latency when the application wants to exit cleanly ?
Presumably when/if SO_BIAS_BUSY_POLL is used to clear
sk->sk_bias_busy_poll we need
to make sure device interrupts are re-enabled.

Yes, good questions/input. I'll look into the first one. As for the second one; I'd say this should be implemented! Thanks!

Cheers,
Bj?rn