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