Changeset View
Changeset View
Standalone View
Standalone View
head/sys/vm/vm_page.c
Show First 20 Lines • Show All 124 Lines • ▼ Show 20 Lines | |||||
domainset_t __exclusive_cache_line vm_severe_domains; | domainset_t __exclusive_cache_line vm_severe_domains; | ||||
static int vm_min_waiters; | static int vm_min_waiters; | ||||
static int vm_severe_waiters; | static int vm_severe_waiters; | ||||
static int vm_pageproc_waiters; | static int vm_pageproc_waiters; | ||||
static SYSCTL_NODE(_vm_stats, OID_AUTO, page, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, | static SYSCTL_NODE(_vm_stats, OID_AUTO, page, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, | ||||
"VM page statistics"); | "VM page statistics"); | ||||
static counter_u64_t pqstate_commit_retries = EARLY_COUNTER; | static COUNTER_U64_DEFINE_EARLY(pqstate_commit_retries); | ||||
SYSCTL_COUNTER_U64(_vm_stats_page, OID_AUTO, pqstate_commit_retries, | SYSCTL_COUNTER_U64(_vm_stats_page, OID_AUTO, pqstate_commit_retries, | ||||
CTLFLAG_RD, &pqstate_commit_retries, | CTLFLAG_RD, &pqstate_commit_retries, | ||||
"Number of failed per-page atomic queue state updates"); | "Number of failed per-page atomic queue state updates"); | ||||
static counter_u64_t queue_ops = EARLY_COUNTER; | static COUNTER_U64_DEFINE_EARLY(queue_ops); | ||||
SYSCTL_COUNTER_U64(_vm_stats_page, OID_AUTO, queue_ops, | SYSCTL_COUNTER_U64(_vm_stats_page, OID_AUTO, queue_ops, | ||||
CTLFLAG_RD, &queue_ops, | CTLFLAG_RD, &queue_ops, | ||||
"Number of batched queue operations"); | "Number of batched queue operations"); | ||||
static counter_u64_t queue_nops = EARLY_COUNTER; | static COUNTER_U64_DEFINE_EARLY(queue_nops); | ||||
SYSCTL_COUNTER_U64(_vm_stats_page, OID_AUTO, queue_nops, | SYSCTL_COUNTER_U64(_vm_stats_page, OID_AUTO, queue_nops, | ||||
CTLFLAG_RD, &queue_nops, | CTLFLAG_RD, &queue_nops, | ||||
"Number of batched queue operations with no effects"); | "Number of batched queue operations with no effects"); | ||||
static void | |||||
counter_startup(void) | |||||
{ | |||||
pqstate_commit_retries = counter_u64_alloc(M_WAITOK); | |||||
queue_ops = counter_u64_alloc(M_WAITOK); | |||||
queue_nops = counter_u64_alloc(M_WAITOK); | |||||
} | |||||
SYSINIT(page_counters, SI_SUB_CPU, SI_ORDER_ANY, counter_startup, NULL); | |||||
/* | /* | ||||
* bogus page -- for I/O to/from partially complete buffers, | * bogus page -- for I/O to/from partially complete buffers, | ||||
* or for paging into sparsely invalid regions. | * or for paging into sparsely invalid regions. | ||||
*/ | */ | ||||
vm_page_t bogus_page; | vm_page_t bogus_page; | ||||
vm_page_t vm_page_array; | vm_page_t vm_page_array; | ||||
▲ Show 20 Lines • Show All 5,308 Lines • Show Last 20 Lines |