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