Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
net_buffer_tuner: document netdev_budget handling
Signed-off-by: Alan Maguire <[email protected]>
  • Loading branch information
alan-maguire committed Dec 3, 2024
commit 91acd5ea6aba33ca69ca8bc512361539b0a45f7e
9 changes: 9 additions & 0 deletions docs/bpftune-net-buffer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,18 @@ DESCRIPTION
appropriate bit is set in the CPU bitmask to prioritize small
flows for drop avoidance.

When NAPI polls to handle multiple packets, the number of packets
is limited by net.core.netdev_budget while the time is limited
by net.core.netdev_budget_usecs. If we hit the limit of number
of packets processed without using the usecs budget the time_squeezed
softnet stat is bumped; if we see increases in time_squeezed, bump
netdev_budget to use all budget usecs.

Tunables:

- net.core.netdev_max_backlog: maximum per-cpu backlog queue length;
default 1024.
- net.core.flow_limit_cpu_bitmap: avoid drops for small flows on
a per-cpu basis; default 0.
- net.core.netdev_budget: maximum number of packets processed in
a NAPI cycle