Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/vmmeter.h
Show All 39 Lines | |||||
#define MAXSLP 20 | #define MAXSLP 20 | ||||
/* Systemwide totals computed every five seconds. */ | /* Systemwide totals computed every five seconds. */ | ||||
struct vmtotal { | struct vmtotal { | ||||
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 priority) */ | int16_t t_dw; /* jobs in ``disk wait'' (neg priority) */ | ||||
int16_t t_pw; /* jobs in page wait */ | int16_t t_pw; /* jobs in page wait */ | ||||
int16_t t_sl; /* jobs sleeping in core */ | int16_t t_sl; /* jobs sleeping in core */ | ||||
int16_t t_sw; /* swapped out runnable/short block jobs */ | int16_t t_sw; /* swapped out runnable/short block jobs */ | ||||
int32_t t_vm; /* total virtual memory */ | uint64_t t_vm; /* total virtual memory */ | ||||
kib: If you break the ABI, I do not see why not expand _all_ members counting pages into uint64_t. | |||||
Not Done Inline ActionsWill do. kaktus: Will do. | |||||
Not Done Inline ActionsIs there any point in also reordering these to be first? emaste: Is there any point in also reordering these to be first? | |||||
int32_t t_avm; /* active virtual memory */ | uint64_t t_avm; /* active virtual memory */ | ||||
int32_t t_rm; /* total real memory in use */ | uint64_t t_rm; /* total real memory in use */ | ||||
int32_t t_arm; /* active real memory */ | uint64_t t_arm; /* active real memory */ | ||||
int32_t t_vmshr; /* shared virtual memory */ | uint64_t t_vmshr; /* shared virtual memory */ | ||||
int32_t t_avmshr; /* active shared virtual memory */ | uint64_t t_avmshr; /* active shared virtual memory */ | ||||
int32_t t_rmshr; /* shared real memory */ | uint64_t t_rmshr; /* shared real memory */ | ||||
int32_t t_armshr; /* active shared real memory */ | uint64_t t_armshr; /* active shared real memory */ | ||||
int32_t t_free; /* free memory pages */ | uint64_t t_free; /* free memory pages */ | ||||
}; | }; | ||||
#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) | ||||
#else | #else | ||||
▲ Show 20 Lines • Show All 163 Lines • Show Last 20 Lines |
If you break the ABI, I do not see why not expand _all_ members counting pages into uint64_t. 4G pages is just 4T RAM, which is already quite accessible configuration for top boxes.