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