Index | Thread | Search

From:
Alexandr Nedvedicky <sashan@fastmail.net>
Subject:
Re: move some pf_status counters to per cpu counters
To:
David Gwynne <david@gwynne.id.au>
Cc:
tech@openbsd.org
Date:
Fri, 28 Nov 2025 09:04:55 +0100

Download raw body.

Thread
Hello,

On Fri, Nov 28, 2025 at 09:22:19AM +1000, David Gwynne wrote:
> currently there's a bunch of global pf stats that are collected in a
> single struct. we've been moving counters in other subsystems to per cpu
> counters, it makes sense to follow suit here.
> 
> this is the lowest hanging fruit in pf_status. the search counter is
> updated every time the state table is searched, which is a lot. once
> this is in i can move a few of the other chunks of stats to per cpu
> counters too.
> 
> ok?
> 

    looks good to me. thanks.

OK sashan