News for hackers. Stuff that matters.
Re:Reworking 30 lines of Linux code could cut power use by u... by taeric on Monday April 21, 2025 @12:11PM (#43753577)
I was curious how much this would be applicable to home routers.

I confess I'm dubious on major savings for most home users, though? At least, at an absolute level. 30% of less than five percent is still not that big of a deal. No reason not to do it, but don't expect to really see the results there.

Re:Reworking 30 lines of Linux code could cut power use by u... by fnordpiglet on Monday April 21, 2025 @12:16PM (#43753637)
For embedded it’s not about saving cost it’s about saving limited on board power. The lower the power demand of the device, the smaller and the more you can dedicate to other things.
Re:Reworking 30 lines of Linux code could cut power use by u... by taeric on Monday April 21, 2025 @12:23PM (#43753704)
Again, no reason not to do this change. I'm not clear it helps in this case, though? The savings is in low use time. During high use time, it is the same, right?
Re:Reworking 30 lines of Linux code could cut power use by u... by tuetuopay on Monday April 21, 2025 @12:43PM (#43753901)
Practically none of it would be applicable (if using a commercial router). They all use hardware offloading, and traffic seldom touches the CPU. Only "logical" tasks are raised to the CPU, like ARP resolution and the likes (what’s called "trap to cpu").

If you’re doing custom routing with a NUC or a basic Linux box, however, this would gain massive power savings because that box pretty much only does networking.

Re:Reworking 30 lines of Linux code could cut power use by u... by ori_b on Monday April 21, 2025 @04:13PM (#43755953)
Only if you're using busy polling. Very little software uses it, because it's only a good fit if you think pegging a CPU to reduce latency responding to packets is a good trade.
Re:Reworking 30 lines of Linux code could cut power use by u... by tuetuopay on Monday April 21, 2025 @06:46PM (#43757330)
Yup, you’re right. I always forget this patch only applies to opted-in polling and not automatic polling for interrupt moderation.
Re:Reworking 30 lines of Linux code could cut power use by u... by mrheosuper on Monday April 21, 2025 @09:55PM (#43758403)
if you run a VPN server, i assume all the traffic will come to CPU to decrypt, right?