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