From 082dc776db9cd737edc5f8771f46b25cc09034ad Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Sat, 11 Feb 2006 19:20:56 +0000 Subject: 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(+) (limited to 'sys/vm') diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c index 9cba214834d1..3268a1ca88de 100644 --- a/sys/vm/uma_core.c +++ b/sys/vm/uma_core.c @@ -3012,6 +3012,8 @@ restart: 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 += -- cgit v1.3