From 2c7a66af359c2c6be9d400d337efb69176831310 Mon Sep 17 00:00:00 2001 From: rwatson Date: Sat, 11 Feb 2006 19:20:56 +0000 Subject: [PATCH] Skip per-cpu caches associated with absent CPUs when generating a memory statistics record stream via sysctl. MFC after: 3 days --- sys/vm/uma_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c index 9cba214834d..3268a1ca88d 100644 --- a/sys/vm/uma_core.c +++ b/sys/vm/uma_core.c @@ -3012,6 +3012,8 @@ sysctl_vm_zone_stats(SYSCTL_HANDLER_ARGS) bzero(&ups, sizeof(ups)); if (kz->uk_flags & UMA_ZFLAG_INTERNAL) goto skip; + if (CPU_ABSENT(i)) + goto skip; cache = &z->uz_cpu[i]; if (cache->uc_allocbucket != NULL) ups.ups_cache_free += -- 2.45.0