HomeFreeBSD

powerpc64/pmap: NUMA-ize the page pv lock pool to reduce contention

Description

powerpc64/pmap: NUMA-ize the page pv lock pool to reduce contention

It was found during building llvm that the page pv lock pool was seeing very
high contention. Since the pmap is already NUMA aware, it was surmised that
the domains were referencing similar pages in the different domains. This
reduces contention to the point of noise in a lockstat(8) run (~51% down to
under 5%), reducing build times by up to 20%.

This doesn't do a perfect domain alignment, just a best-guess based on
hardware available, that the domain is roughly specified in the upper bits
of the PA. Trying to be more clever would more than likely result in
reduced performance just on the work needed.

MFC after: 2 weeks

Details

Provenance
jhibbitsAuthored on
Parents
rS347951: MFC r347617:
Branches
Unknown
Tags
Unknown