Todo #14750
closedAutomatically configure PF states hash table size
100%
Description
See net.pf.states_hashsize
in pf(4):
Size of hash tables that store states. Should be power of 2. Default value is 131072.
States are locked per hashrow, so if there are a lot of them in the same row they contend on the same lock (and that’s also the lock needed when exporting state information to userspace). One or two states per row is ideal.
Updated by Marcos M over 1 year ago
- Status changed from New to Pull Request Review
Updated by Jim Pingle over 1 year ago
- Assignee set to Marcos M
- Target version set to 2.8.0
- Plus Target Version set to 23.09
Updated by Marcos M over 1 year ago
- Status changed from Pull Request Review to Feedback
- % Done changed from 0 to 100
Applied in changeset 5224e0b2416ac93b3562374fef1c3537f7af4003.
Updated by Jim Pingle over 1 year ago
- Subject changed from Automatically configure the state hash tables size to Automatically configure PF states hash table size
Updating subject for release notes.
The original description here doesn't match what was committed. The commit is for net.pf.states_hashsize
but the original description has net.pf.source_nodes_hashsize
. I went by what was committed since that seemed to be the intent.
Updated by Marcos M over 1 year ago
- Description updated (diff)
Indeed I meant net.pf.states_hashsize
.
Updated by Jim Pingle over 1 year ago
- Status changed from Feedback to Resolved
Appears to be using the expected value based on the given calculation.
Updated by Jim Pingle about 1 year ago
- Target version changed from 2.8.0 to 2.7.1