PC-BSD/trueos ff20311sys/amd64/include counter.h, sys/arm/include counter.h

Back pcpu zone with domain correct pages

- Change pcpu zone consumers to use a stride size of PAGE_SIZE.
  (defined as UMA_PCPU_ALLOC_SIZE to make future identification easier)

- Allocate page from the correct domain for a given cpu.

- Don't initialize pc_domain to non-zero value if NUMA is not defined
  There are some misconceptions surrounding this field. It is the
  _VM_ NUMA domain and should only ever correspond to valid domain
  values as understood by the VM.

The former slab size of sizeof(struct pcpu) was somewhat arbitrary.
The new value is PAGE_SIZE because that's the smallest granularity
which the VM can allocate a slab for a given domain. If you have
fewer than PAGE_SIZE/8 counters on your system there will be some
memory wasted, but this is obviously something where you want the
cache line to be coming from the correct domain.

Reviewed by: jeff
Sponsored by: Limelight Networks
Differential Revision:  https://reviews.freebsd.org/D15933
DeltaFile
+93-4sys/vm/uma_core.c
+11-2sys/kern/subr_counter.c
+6-2sys/x86/acpica/srat.c
+4-4sys/i386/include/counter.h
+4-4sys/powerpc/include/counter.h
+4-2sys/sys/pcpu.h
+2-2sys/amd64/include/counter.h
+2-2sys/riscv/include/counter.h
+2-2sys/sparc64/include/counter.h
+2-2sys/arm64/include/counter.h
+2-2sys/mips/include/counter.h
+2-2sys/arm/include/counter.h
+1-2sys/vm/uma.h
+135-3213 files

UnifiedSplitRaw