diff options
author | 2022-05-15 21:24:55 -0700 | |
---|---|---|
committer | 2022-05-16 11:33:59 +0100 | |
commit | 39564c3fdc6684c6726b63e131d2a9f3809811cb (patch) | |
tree | 523592ac216cfcc1bbbb560b953d2d99b8e13186 /Documentation/admin-guide/sysctl | |
parent | net: use napi_consume_skb() in skb_defer_free_flush() (diff) | |
download | linux-39564c3fdc6684c6726b63e131d2a9f3809811cb.tar.gz linux-39564c3fdc6684c6726b63e131d2a9f3809811cb.tar.bz2 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/sysctl')
-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 ---------- |