xref: /xnu-10002.61.3/osfmk/man/processor_set_load_info.html (revision 0f4c859e951fba394238ab619495c4e1d54d0f34)
1*0f4c859eSApple OSS Distributions<h2>processor_set_load_info</h2>
2*0f4c859eSApple OSS Distributions<hr>
3*0f4c859eSApple OSS Distributions<p>
4*0f4c859eSApple OSS Distributions<strong>Structure</strong> - Defines the scheduling statistics for a processor set.
5*0f4c859eSApple OSS Distributions<h3>SYNOPSIS</h3>
6*0f4c859eSApple OSS Distributions<pre>
7*0f4c859eSApple OSS Distributions<strong>struct processor_set_load_info</strong>
8*0f4c859eSApple OSS Distributions<strong>{</strong>
9*0f4c859eSApple OSS Distributions       <strong>int</strong>            <var>task_count</var><strong>;</strong>
10*0f4c859eSApple OSS Distributions       <strong>int</strong>          <var>thread_count</var><strong>;</strong>
11*0f4c859eSApple OSS Distributions       <strong>integer_t</strong>    <var>load_average</var><strong>;</strong>
12*0f4c859eSApple OSS Distributions       <strong>integer_t</strong>     <var>mach_factor</var><strong>;</strong>
13*0f4c859eSApple OSS Distributions<strong>};</strong>
14*0f4c859eSApple OSS Distributions
15*0f4c859eSApple OSS Distributions<strong>typedef struct processor_set_load_info* processor_set_load_info_t;</strong>
16*0f4c859eSApple OSS Distributions</pre>
17*0f4c859eSApple OSS Distributions<h3>FIELDS</h3>
18*0f4c859eSApple OSS Distributions<dl>
19*0f4c859eSApple OSS Distributions<dt> <var>task_count</var>
20*0f4c859eSApple OSS Distributions<dd>
21*0f4c859eSApple OSS DistributionsNumber of tasks currently assigned to this processor set
22*0f4c859eSApple OSS Distributions<p>
23*0f4c859eSApple OSS Distributions<dt> <var>thread_count</var>
24*0f4c859eSApple OSS Distributions<dd>
25*0f4c859eSApple OSS DistributionsNumber of threads currently assigned to this processor set
26*0f4c859eSApple OSS Distributions<p>
27*0f4c859eSApple OSS Distributions<dt> <var>load_average</var>
28*0f4c859eSApple OSS Distributions<dd>
29*0f4c859eSApple OSS DistributionsAverage number of runnable processes divided by number of CPUs
30*0f4c859eSApple OSS Distributions<p>
31*0f4c859eSApple OSS Distributions<dt> <var>mach_factor</var>
32*0f4c859eSApple OSS Distributions<dd>
33*0f4c859eSApple OSS DistributionsThe processing resources available to a new thread\(emthe number of
34*0f4c859eSApple OSS DistributionsCPUs divided by (1 + the number of threads)
35*0f4c859eSApple OSS Distributions</dl>
36*0f4c859eSApple OSS Distributions<h3>DESCRIPTION</h3>
37*0f4c859eSApple OSS Distributions<p>
38*0f4c859eSApple OSS DistributionsThe <strong>processor_set_load_info</strong> structure defines the scheduling
39*0f4c859eSApple OSS Distributionsstatistics
40*0f4c859eSApple OSS Distributionsmaintained for a processor set.
41*0f4c859eSApple OSS Distributions<h3>RELATED INFORMATION</h3>
42*0f4c859eSApple OSS Distributions<p>
43*0f4c859eSApple OSS Distributions<p>
44*0f4c859eSApple OSS DistributionsData Structures:
45*0f4c859eSApple OSS Distributions<a href="processor_set_basic_info.html"><strong>processor_set_basic_info</strong></a>.
46