Skip to content

Conversation

@alan-maguire
Copy link
Member

auto-adjust net.core.netdev_budget[_usecs] to increase if we see time_squeezed regularly (signifying more packets were available to process in NAPI poll cycle). reduce these tunables if the time spent for tasks waiting relative to running increases with budget increases; this signals increased load, possibly created by us.

time_squeeze for a softnet poll means we ran out of time specified
in netdev_budget_usecs; if we see increases in time_squeeze, increase
netdev_budget

Signed-off-by: Alan Maguire <[email protected]>
both netdev_budget and netdev_budget_usecs limit NAPI poll cycles,
and if either is exhausted the time_squeeze value is updated.
So to increase NAPI cycle time, both must be updated together.

Signed-off-by: Alan Maguire <[email protected]>
correlate netdev budget increases with scheduler wait/run ratio;
if tasks have to wait longer it is a signal the system is under
load or that netdev budget is too big monopolizing CPUs.  Tune
down under these circumstances.

Signed-off-by: Alan Maguire <[email protected]>
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Dec 3, 2024
@alan-maguire alan-maguire merged commit 83b0756 into main Dec 3, 2024
1 check passed
@alan-maguire alan-maguire deleted the napi_budget branch December 20, 2024 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant