From 3571902304966f5edad4bceddc7fb3170f4ff982 Mon Sep 17 00:00:00 2001 From: sbruno Date: Tue, 15 Jun 2010 19:28:37 +0000 Subject: Add a new column to the output of vmstat -z to indicate the number of times the system was forced to sleep when requesting a new allocation. Expand the debugger hook, db_show_uma, to display these results as well. This has proven to be very useful in out of memory situations when it is not known why systems have become sluggish or fail in odd ways. Reviewed by: rwatson alc Approved by: scottl (mentor) peter Obtained from: Yahoo Inc. --- 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 7123518..b7fdd71 100644 --- a/lib/libmemstat/memstat_internal.h +++ b/lib/libmemstat/memstat_internal.h @@ -65,6 +65,7 @@ struct memory_type { uint64_t mt_count; /* Number of current allocations. */ 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. */ /* * Caller-owned memory. -- cgit v1.1