Project

General

Profile

Actions

Todo #14750

closed

Automatically configure PF states hash table size

Added by Marcos M 9 months ago. Updated 7 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Operating System
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
23.09
Release Notes:
Default

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.

Actions

Also available in: Atom PDF