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