Back to Darwin Xnu

Host Load Info

osfmk/man/host_load_info.html

latest1004 B
Original Source

host_load_info


Structure - Used to present a host's processor load information.

SYNOPSIS

**#define CPU\_STATE\_USER 0**** #define CPU\_STATE\_SYSTEM 1 ****#define CPU\_STATE\_IDLE 2**** struct host\_load\_info ****{**** integer\_t **avenrun** [3]; ****integer\_t** mach\_factor**[3];****}; ****typedef struct host\_load\_info\* host\_load\_info\_t;**

FIELDS

avenrunload average--average number of runnable processes divided by number of CPUs

mach_factorThe processing resources available to a new thread--the number of CPUs divided by (1 + the number of threads)

DESCRIPTION

The host_load_info structure defines the loading information available about a host. The information returned is exponential averages over three periods of time: 5, 30 and 60 seconds.

Functions: host_statistics.

Data Structures: host_basic_info, host_sched_info.