Irqbalance / irqbalance

The irqbalance source tree - The new official site for irqbalance
http://irqbalance.github.io/irqbalance/
GNU General Public License v2.0
576 stars 139 forks source link

socket API blocks for 10s (sleep_interval) #298

Closed champtar closed 6 months ago

champtar commented 6 months ago

In scan(), we call sleep_approx(sleep_interval), blocking the socket API (blocking the main_loop) Looking at the code https://github.com/Irqbalance/irqbalance/blob/64285577b465c4c5d8b5bbfa0120432e1d5ffd63/irqbalance.c#L320-L322 could we just replace those 3 lines with a return and still reenter scan() sleep_interval later (called by g_timeout_add_seconds)

nhorman commented 6 months ago

seems reasonable to me, can you submit a PR?