Re: [PATCH] bpf: ringbuf: add wakeup coalescing
From: Michael S. Tsirkin
Date: Wed Dec 02 2026 - 02:19:46 EST
On Wed, Dec 02, 2026 at 01:19:59AM +0000, Alexei Starovoitov wrote:
> On Tue, Dec 01, 2026 at 05:00 PM Michael S. Tsirkin <mst@xxxxxxxxxx> wrote:
> >> 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.
>
> No. Not every ringbuf is a stream of samples.
Right. What if I limit it per type or something? Can make it
palatable?
> > 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.
>
> No. It's not universal.
It's universal in the sense that the same bpf monitor is pushed
to multiple boxes all over the place.
> It was always up to bpf program
> and explicitly documented Documentation/bpf/ringbuf.rst
Shrug. I didn't write this thing. So what can be done about misbehaving
ones, that hammer the box with wakeups on every event anywhere under /?
Any idea?
--
MST