From c16850865572058518fa625359057032563c8baf Mon Sep 17 00:00:00 2001 From: Jeff Roberson Date: Tue, 6 Aug 2019 21:50:34 +0000 Subject: Add two new kernel options to control memory locality on NUMA hardware. - UMA_XDOMAIN enables an additional per-cpu bucket for freed memory that was freed on a different domain from where it was allocated. This is only used for UMA_ZONE_NUMA (first-touch) zones. - UMA_FIRSTTOUCH sets the default UMA policy to be first-touch for all zones. This tries to maintain locality for kernel memory. Reviewed by: gallatin, alc, kib Tested by: pho, gallatin Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D20929 --- lib/libmemstat/memstat_internal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libmemstat/memstat_internal.h') diff --git a/lib/libmemstat/memstat_internal.h b/lib/libmemstat/memstat_internal.h index 12345d9f884c5..26a9e64f8f052 100644 --- a/lib/libmemstat/memstat_internal.h +++ b/lib/libmemstat/memstat_internal.h @@ -69,6 +69,7 @@ struct memory_type { uint64_t mt_free; /* Number of cached free items. */ uint64_t mt_failures; /* Number of allocation failures. */ uint64_t mt_sleeps; /* Number of allocation sleeps. */ + uint64_t mt_xdomain; /* Number of cross domain sleeps. */ /* * Caller-owned memory. -- cgit v1.2.3