diff options
| author | Florian Westphal <[email protected]> | 2022-02-16 16:43:05 +0100 |
|---|---|---|
| committer | Pablo Neira Ayuso <[email protected]> | 2022-03-19 23:11:34 +0100 |
| commit | 2cfadb761d3d0219412fd8150faea60c7e863833 (patch) | |
| tree | 21f18191856ed0f81f7d4b4b0a0c790cf9fe92ae /tools/perf/scripts/python | |
| parent | 092d992b76ed9d06389af0bc5efd5279d7b1ed9f (diff) | |
netfilter: conntrack: revisit gc autotuning
as of commit 4608fdfc07e1
("netfilter: conntrack: collect all entries in one cycle")
conntrack gc was changed to run every 2 minutes.
On systems where conntrack hash table is set to large value, most evictions
happen from gc worker rather than the packet path due to hash table
distribution.
This causes netlink event overflows when events are collected.
This change collects average expiry of scanned entries and
reschedules to the average remaining value, within 1 to 60 second interval.
To avoid event overflows, reschedule after each bucket and add a
limit for both run time and number of evictions per run.
If more entries have to be evicted, reschedule and restart 1 jiffy
into the future.
Reported-by: Karel Rericha <[email protected]>
Cc: Shmulik Ladkani <[email protected]>
Cc: Eyal Birger <[email protected]>
Signed-off-by: Florian Westphal <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions