HomeFreeBSD

Add a 'SINGLETON' directive to kobj interface definition

Description

Add a 'SINGLETON' directive to kobj interface definition

Summary:
This makes the interface described in the definition file act like a
pseudo-IFUNC service, by caching the found method locally.

Applying this to the PowerPC MMU definitions, it yields a significant
(15-20%) performance improvement, seen in both a 'make buildworld' and a
parallel build of LLVM, on a POWER9 system.

Reviewed By: imp
Differential Revision: https://reviews.freebsd.org/D23245

Details

Provenance
jhibbitsAuthored on Jan 18 2020, 2:39 AM
Parents
rG2d0c620272bc: vfs: distribute freevnodes counter per-cpu
Branches
Unknown
Tags
Unknown