summaryrefslogtreecommitdiffstats
path: root/sys/vm/uma_int.h
diff options
context:
space:
mode:
authorsbruno <sbruno@FreeBSD.org>2010-06-15 19:28:37 +0000
committersbruno <sbruno@FreeBSD.org>2010-06-15 19:28:37 +0000
commit3571902304966f5edad4bceddc7fb3170f4ff982 (patch)
treec365e722a1674a60a8186f54209e8934369f70a5 /sys/vm/uma_int.h
parent597252854841710d6981f293f5bab6880df163b0 (diff)
downloadFreeBSD-src-3571902304966f5edad4bceddc7fb3170f4ff982.zip
FreeBSD-src-3571902304966f5edad4bceddc7fb3170f4ff982.tar.gz
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.
Diffstat (limited to 'sys/vm/uma_int.h')
-rw-r--r--sys/vm/uma_int.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/vm/uma_int.h b/sys/vm/uma_int.h
index 27396ea..7713593 100644
--- a/sys/vm/uma_int.h
+++ b/sys/vm/uma_int.h
@@ -327,6 +327,7 @@ struct uma_zone {
u_int64_t uz_allocs UMA_ALIGN; /* Total number of allocations */
u_int64_t uz_frees; /* Total number of frees */
u_int64_t uz_fails; /* Total number of alloc failures */
+ u_int64_t uz_sleeps; /* Total number of alloc sleeps */
uint16_t uz_fills; /* Outstanding bucket fills */
uint16_t uz_count; /* Highest value ub_ptr can have */
OpenPOWER on IntegriCloud