From: "Michael S. Tsirkin" <mst@redhat.com>
To: Alexei Starovoitov <alexei.starovoitov@gmail.com>
Cc: linux-kernel@vger.kernel.org, Andrii Nakryiko <andrii@kernel.org>,
Daniel Borkmann <daniel@iogearbox.net>,
Martin KaFai Lau <martin.lau@linux.dev>,
Eduard Zingerman <eddyz87@gmail.com>,
Kumar Kartikeya Dwivedi <memxor@gmail.com>,
Song Liu <song@kernel.org>,
Yonghong Song <yonghong.song@linux.dev>,
Jiri Olsa <jolsa@kernel.org>,
John Fastabend <john.fastabend@gmail.com>,
bpf@vger.kernel.org
Subject: Re: [PATCH] bpf: ringbuf: add wakeup coalescing
Date: Tue, 1 Dec 2026 20:00:32 -0500 [thread overview]
Message-ID: <20261201195613-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <DN9U4ZGYM9RU.1E1JG2E31R76O@gmail.com>
On Wed, Dec 02, 2026 at 12:54:17AM +0000, Alexei Starovoitov wrote:
> On Tue, Dec 01, 2026 at 04:29 PM Michael S. Tsirkin <mst@redhat.com> wrote:
> >> Sounds like your tracing tool is simply inefficient.
> >
> > Oh yes. Yet I don't have control over it.
>
> Then pls report it to the people who do. It's two lines in their prog.
> The kernel shouldn't work around an inefficient tool.
Shrug. Most software in the world is inefficient.
If I can improve my laptop's battery life, I'm be happier.
> >> avail = bpf_ringbuf_query(&rb, BPF_RB_AVAIL_DATA);
> >> bpf_ringbuf_submit(rec, avail >= wakeup_data_size ?
> >> BPF_RB_FORCE_WAKEUP : BPF_RB_NO_WAKEUP);
> >
> >
> > This assumes that every bpf program is tuned for every hardware box it
> > runs on. It's not gonnu happen.
>
> The sysctl assumes the same. Its default is 1, which is what we have today.
If you feel changing that to 8 is okay, lemme know.
> Somebody has to find that 8 for every box and every workload.
> Then that one number applies to every ringbuf on the box.
I mean, I can do it on my box. That's the point. Currently
bpf can only have the universal threshold, I want to add a
per-box one, if some box is different than others.
--
MST
prev parent reply other threads:[~2026-12-02 1:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 14:39 Michael S. Tsirkin
2026-12-02 0:09 ` Alexei Starovoitov
2026-12-02 0:29 ` Michael S. Tsirkin
2026-12-02 0:54 ` Alexei Starovoitov
2026-12-02 1:00 ` Michael S. Tsirkin [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=20261201195613-mutt-send-email-mst@kernel.org \
--to=mst@redhat.com \
--cc=alexei.starovoitov@gmail.com \
--cc=andrii@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=eddyz87@gmail.com \
--cc=john.fastabend@gmail.com \
--cc=jolsa@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.lau@linux.dev \
--cc=memxor@gmail.com \
--cc=song@kernel.org \
--cc=yonghong.song@linux.dev \
/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
all inboxes | Powered by JetHome®