HomeFreeBSD

pf: add hashtable row count SDT

Description

pf: add hashtable row count SDT

This allows us to figure out how many states each hashrow contains. That
can be important to know when debugging performance issues.

A simple probe could be:

dtrace -n 'pf:purge:state:rowcount { @counts["states per row"] = quantize(arg1); }'
dtrace: description 'pf:purge:state:rowcount ' matched 1 probe
^C

	  states per row
	           value  ------------- Distribution ------------- count
	              -1 |                                         0
	               0 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 8257624
	               1 |                                         14321
	               2 |                                         0

MFC after: 1 week
Sponsored by: Modirum MDPay

Details

Provenance
kpAuthored on Nov 9 2023, 12:39 PM
Parents
rGe716630d4cf8: zfs: merge openzfs/zfs@887a3c533
Branches
Unknown
Tags
Unknown