Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/vmmeter.h
Show All 35 Lines | |||||
#define _SYS_VMMETER_H_ | #define _SYS_VMMETER_H_ | ||||
/* | /* | ||||
* This value is used by ps(1) to change sleep state flag from 'S' to | * This value is used by ps(1) to change sleep state flag from 'S' to | ||||
* 'I' and by the sched process to set the alarm clock. | * 'I' and by the sched process to set the alarm clock. | ||||
*/ | */ | ||||
#define MAXSLP 20 | #define MAXSLP 20 | ||||
/* Systemwide totals computed every five seconds. */ | |||||
struct vmtotal { | struct vmtotal { | ||||
uint64_t t_vm; /* total virtual memory */ | uint64_t t_vm; /* total virtual memory */ | ||||
uint64_t t_avm; /* active virtual memory */ | uint64_t t_avm; /* active virtual memory */ | ||||
uint64_t t_rm; /* total real memory in use */ | uint64_t t_rm; /* total real memory in use */ | ||||
uint64_t t_arm; /* active real memory */ | uint64_t t_arm; /* active real memory */ | ||||
uint64_t t_vmshr; /* shared virtual memory */ | uint64_t t_vmshr; /* shared virtual memory */ | ||||
uint64_t t_avmshr; /* active shared virtual memory */ | uint64_t t_avmshr; /* active shared virtual memory */ | ||||
uint64_t t_rmshr; /* shared real memory */ | uint64_t t_rmshr; /* shared real memory */ | ||||
uint64_t t_armshr; /* active shared real memory */ | uint64_t t_armshr; /* active shared real memory */ | ||||
uint64_t t_free; /* free memory pages */ | uint64_t t_free; /* free memory pages */ | ||||
int16_t t_rq; /* length of the run queue */ | int16_t t_rq; /* length of the run queue */ | ||||
int16_t t_dw; /* jobs in ``disk wait'' (neg | int16_t t_dw; /* threads in ``disk wait'' (neg | ||||
priority) */ | priority) */ | ||||
int16_t t_pw; /* jobs in page wait */ | int16_t t_pw; /* threads in page wait */ | ||||
int16_t t_sl; /* jobs sleeping in core */ | int16_t t_sl; /* threads sleeping in core */ | ||||
int16_t t_sw; /* swapped out runnable/short | int16_t t_sw; /* swapped out runnable/short | ||||
block jobs */ | block threads */ | ||||
uint16_t t_pad[3]; | uint16_t t_pad[3]; | ||||
}; | }; | ||||
#if defined(_KERNEL) || defined(_WANT_VMMETER) | #if defined(_KERNEL) || defined(_WANT_VMMETER) | ||||
#include <sys/counter.h> | #include <sys/counter.h> | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
#define VMMETER_ALIGNED __aligned(CACHE_LINE_SIZE) | #define VMMETER_ALIGNED __aligned(CACHE_LINE_SIZE) | ||||
▲ Show 20 Lines • Show All 164 Lines • Show Last 20 Lines |