Changeset View
Changeset View
Standalone View
Standalone View
head/sys/vm/uma_int.h
Show First 20 Lines • Show All 297 Lines • ▼ Show 20 Lines | struct uma_zone { | ||||
volatile u_long uz_allocs UMA_ALIGN; /* Total number of allocations */ | volatile u_long uz_allocs UMA_ALIGN; /* Total number of allocations */ | ||||
volatile u_long uz_fails; /* Total number of alloc failures */ | volatile u_long uz_fails; /* Total number of alloc failures */ | ||||
volatile u_long uz_frees; /* Total number of frees */ | volatile u_long uz_frees; /* Total number of frees */ | ||||
uint64_t uz_sleeps; /* Total number of alloc sleeps */ | uint64_t uz_sleeps; /* Total number of alloc sleeps */ | ||||
uint16_t uz_count; /* Amount of items in full bucket */ | uint16_t uz_count; /* Amount of items in full bucket */ | ||||
uint16_t uz_count_min; /* Minimal amount of items there */ | uint16_t uz_count_min; /* Minimal amount of items there */ | ||||
/* The next three fields are used to print a rate-limited warnings. */ | /* The next two fields are used to print a rate-limited warnings. */ | ||||
const char *uz_warning; /* Warning to print on failure */ | const char *uz_warning; /* Warning to print on failure */ | ||||
struct timeval uz_ratecheck; /* Warnings rate-limiting */ | struct timeval uz_ratecheck; /* Warnings rate-limiting */ | ||||
uma_maxaction_t uz_maxaction; /* Function to run when at limit */ | |||||
/* | /* | ||||
* This HAS to be the last item because we adjust the zone size | * This HAS to be the last item because we adjust the zone size | ||||
* based on NCPU and then allocate the space for the zones. | * based on NCPU and then allocate the space for the zones. | ||||
*/ | */ | ||||
struct uma_cache uz_cpu[1]; /* Per cpu caches */ | struct uma_cache uz_cpu[1]; /* Per cpu caches */ | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 116 Lines • Show Last 20 Lines |