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

From
Eric Dumazet <hidden>
Date
2025-08-06 08:51:48
Also in
lkml
Reply to
Xin Zhao, 2025-08-06
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...
Thread (4 messages) 4 messages, 4 authors, last reply 2025-08-06
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help