Thread (4 messages) 4 messages, 4 authors, 2025-08-06

Re: [PATCH] net: af_packet: add af_packet hrtimer mode

From: Eric Dumazet <edumazet@google.com>
Date: 2025-08-06 08:51:48
Also in: lkml

On Tue, Aug 5, 2025 at 10:52 PM Xin Zhao [off-list ref] wrote:
In a system with high real-time requirements, the timeout mechanism of
ordinary timers with jiffies granularity is insufficient to meet the
demands for real-time performance. Meanwhile, the optimization of CPU
usage with af_packet is quite significant. Add hrtimer mode to help
compensate for the shortcomings in real-time performance.

Signed-off-by: Xin Zhao <redacted>
I doubt we need another CONFIG option ?

Also this seems to be beneficial for HZ=100 or HZ=250 configuration,
maybe worth mentioning in the changelog.

But more importantly, I think you should explain what difference this
really makes,
in which circumstances this timer needs to fire...

If real-time is a concern, maybe using a timer to perform GC-style operation
is a no go anyway...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help