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