Intel-Wired-Lan Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: =?unknown-8bit?q?Bj=C3=B6rn_T=C3=B6pel?= <bjorn.topel@intel.com>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [RFC PATCH bpf-next 0/9] Introduce biased busy-polling
Date: Wed, 28 Oct 2020 16:14:59 +0100	[thread overview]
Message-ID: <149e5989-86c5-d9f4-3307-a55bc696d639@intel.com> (raw)
In-Reply-To: <CANn89iLpwne8P+E4p+wD92xB0LP4WridLUhPQTx1CeDF-D+LdA@mail.gmail.com>

On 2020-10-28 15:13, Eric Dumazet wrote:
> On Wed, Oct 28, 2020 at 2:35 PM Bj?rn T?pel <bjorn.topel@gmail.com> wrote:
[...]
>> 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
>>
>> 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.


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

Not following, Eric. Wdym?

> 
> Additional questions :
> 
> - What happens to the gro_flush_timeout and accumulated TCP segments
> in GRO engine
> while the biased busy-polling is in use ?
>
> - 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


      reply	other threads:[~2020-10-28 15:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-28 13:34 [Intel-wired-lan] [RFC PATCH bpf-next 0/9] Introduce biased busy-polling =?unknown-8bit?q?Bj=C3=B6rn_T=C3=B6pel?=
2020-10-28 13:34 ` [Intel-wired-lan] [RFC PATCH bpf-next 1/9] net: introduce " =?unknown-8bit?q?Bj=C3=B6rn_T=C3=B6pel?=
2020-10-28 13:34 ` [Intel-wired-lan] [RFC PATCH bpf-next 2/9] net: add SO_BUSY_POLL_BUDGET socket option =?unknown-8bit?q?Bj=C3=B6rn_T=C3=B6pel?=
2020-10-28 13:34 ` [Intel-wired-lan] [RFC PATCH bpf-next 3/9] xsk: add support for recvmsg() =?unknown-8bit?q?Bj=C3=B6rn_T=C3=B6pel?=
2020-10-28 13:34 ` [Intel-wired-lan] [RFC PATCH bpf-next 4/9] xsk: check need wakeup flag in sendmsg() =?unknown-8bit?q?Bj=C3=B6rn_T=C3=B6pel?=
2020-10-28 13:34 ` [Intel-wired-lan] [RFC PATCH bpf-next 5/9] xsk: add busy-poll support for {recv, send}msg() =?unknown-8bit?q?Bj=C3=B6rn_T=C3=B6pel?=
2020-10-28 13:34 ` [Intel-wired-lan] [RFC PATCH bpf-next 6/9] xsk: propagate napi_id to XDP socket Rx path =?unknown-8bit?q?Bj=C3=B6rn_T=C3=B6pel?=
2020-10-28 13:34 ` [Intel-wired-lan] [RFC PATCH bpf-next 7/9] samples/bpf: use recvfrom() in xdpsock =?unknown-8bit?q?Bj=C3=B6rn_T=C3=B6pel?=
2020-10-28 13:34 ` [Intel-wired-lan] [RFC PATCH bpf-next 8/9] samples/bpf: add busy-poll support to xdpsock =?unknown-8bit?q?Bj=C3=B6rn_T=C3=B6pel?=
2020-10-28 13:34 ` [Intel-wired-lan] [RFC PATCH bpf-next 9/9] samples/bpf: add option to set the busy-poll budget =?unknown-8bit?q?Bj=C3=B6rn_T=C3=B6pel?=
2020-10-28 14:13 ` [Intel-wired-lan] [RFC PATCH bpf-next 0/9] Introduce biased busy-polling Eric Dumazet
2020-10-28 15:14   ` =?unknown-8bit?q?Bj=C3=B6rn_T=C3=B6pel?= [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=149e5989-86c5-d9f4-3307-a55bc696d639@intel.com \
    --to=bjorn.topel@intel.com \
    --cc=intel-wired-lan@osuosl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox