HomeFreeBSD

spl-taskq: per-taskq kstats

Description

spl-taskq: per-taskq kstats

This exposes a variety of per-taskq stats under /proc/spl/kstat/taskq,
one file per taskq, named for the taskq name.instance.

These include a small amount of info about the taskq config, the current
state of the threads and queues, and various counters for thread and
queue activity since the taskq was created.

To assist with decrementing queue size counters, the list an entry is on
is encoded in spare bits in the entry flags.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Sponsored-by: Klara, Inc.
Sponsored-by: Syneto
Closes #16171

Details

Provenance
rob.norris_klarasystems.comAuthored on May 3 2024, 4:42 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 19 2024, 4:50 PM
Parents
rGf0ad031cd923: spl-generic: bring up kstats subsystem before taskq
Branches
Unknown
Tags
Unknown

Event Timeline