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