diff options
author | Eric Dumazet <edumazet@google.com> | 2022-05-16 06:24:55 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-05-16 12:33:59 +0200 |
commit | 39564c3fdc6684c6726b63e131d2a9f3809811cb (patch) | |
tree | 523592ac216cfcc1bbbb560b953d2d99b8e13186 /Documentation/admin-guide | |
parent | net: use napi_consume_skb() in skb_defer_free_flush() (diff) | |
download | linux-39564c3fdc6684c6726b63e131d2a9f3809811cb.tar.xz linux-39564c3fdc6684c6726b63e131d2a9f3809811cb.zip |
net: add skb_defer_max sysctl
commit 68822bdf76f1 ("net: generalize skb freeing
deferral to per-cpu lists") added another per-cpu
cache of skbs. It was expected to be small,
and an IPI was forced whenever the list reached 128
skbs.
We might need to be able to control more precisely
queue capacity and added latency.
An IPI is generated whenever queue reaches half capacity.
Default value of the new limit is 64.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/admin-guide')
-rw-r--r-- | Documentation/admin-guide/sysctl/net.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/admin-guide/sysctl/net.rst b/Documentation/admin-guide/sysctl/net.rst index f86b5e1623c6..fa4dcdb283cf 100644 --- a/Documentation/admin-guide/sysctl/net.rst +++ b/Documentation/admin-guide/sysctl/net.rst @@ -322,6 +322,14 @@ a leaked reference faster. A larger value may be useful to prevent false warnings on slow/loaded systems. Default value is 10, minimum 1, maximum 3600. +skb_defer_max +------------- + +Max size (in skbs) of the per-cpu list of skbs being freed +by the cpu which allocated them. Used by TCP stack so far. + +Default: 64 + optmem_max ---------- |