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