xref: /xnu-11417.121.6/osfmk/man/memory_object_perf_info.html (revision a1e26a70f38d1d7daa7b49b258e2f8538ad81650)
1*a1e26a70SApple OSS Distributions<h2>memory_object_perf_info</h2>
2*a1e26a70SApple OSS Distributions<hr>
3*a1e26a70SApple OSS Distributions<p>
4*a1e26a70SApple OSS Distributions<strong>Structure</strong> - Specifies a memory object's attributes with respect to performance.
5*a1e26a70SApple OSS Distributions<h3>SYNOPSIS</h3>
6*a1e26a70SApple OSS Distributions<pre>
7*a1e26a70SApple OSS Distributions<strong>struct  memory_object_perf_info</strong>
8*a1e26a70SApple OSS Distributions<strong>{</strong>
9*a1e26a70SApple OSS Distributions        <strong>vm_offset_t</strong>      <var>cluster_size</var><strong>;</strong>
10*a1e26a70SApple OSS Distributions        <strong>boolean_t</strong>    <var>may_cache_object</var><strong>;</strong>
11*a1e26a70SApple OSS Distributions<strong>};</strong>
12*a1e26a70SApple OSS Distributions
13*a1e26a70SApple OSS Distributions<strong>typedef struct memory_object_perf_info* memory_object_perf_info_t;</strong>
14*a1e26a70SApple OSS Distributions</pre>
15*a1e26a70SApple OSS Distributions<h3>FIELDS</h3>
16*a1e26a70SApple OSS Distributions<dl>
17*a1e26a70SApple OSS Distributions<dt> <var>cluster_size</var>
18*a1e26a70SApple OSS Distributions<dd>
19*a1e26a70SApple OSS DistributionsPreferred cluster size (in bytes) for the memory object.  This helps to
20*a1e26a70SApple OSS Distributionsdetermine how many pages are transferred in individual data request
21*a1e26a70SApple OSS Distributionsand return messages.
22*a1e26a70SApple OSS Distributions<p>
23*a1e26a70SApple OSS Distributions<dt> <var>may_cache_object</var>
24*a1e26a70SApple OSS Distributions<dd>
25*a1e26a70SApple OSS DistributionsCache indicator.  If true, the kernel can cache data associated with the
26*a1e26a70SApple OSS Distributionsmemory object (keep the memory object active) even if no virtual
27*a1e26a70SApple OSS Distributionsmemory references to it remain.
28*a1e26a70SApple OSS Distributions</dl>
29*a1e26a70SApple OSS Distributions<h3>DESCRIPTION</h3>
30*a1e26a70SApple OSS Distributions<p>
31*a1e26a70SApple OSS DistributionsThe <strong>memory_object_perf_info</strong> structure
32*a1e26a70SApple OSS Distributionsdefines a memory object's character with respect to performance.
33*a1e26a70SApple OSS Distributions<h3>NOTES</h3>
34*a1e26a70SApple OSS Distributions<p>
35*a1e26a70SApple OSS DistributionsSharing cached data among all the clients of a memory object can have a major
36*a1e26a70SApple OSS Distributionsimpact on performance, especially if it can be extended across successive, as
37*a1e26a70SApple OSS Distributionswell as concurrent, uses.  For example, the memory objects that represent
38*a1e26a70SApple OSS Distributionsprogram images can be used regularly by different programs.
39*a1e26a70SApple OSS DistributionsBy retaining the data
40*a1e26a70SApple OSS Distributionsfor these memory objects in cache, the number of secondary storage accesses
41*a1e26a70SApple OSS Distributionscan be reduced significantly.
42*a1e26a70SApple OSS Distributions<h3>RELATED INFORMATION</h3>
43*a1e26a70SApple OSS Distributions<p>
44*a1e26a70SApple OSS DistributionsFunctions:
45*a1e26a70SApple OSS Distributions<a href="MO_get_attributes.html"><strong>memory_object_get_attributes</strong></a>,
46*a1e26a70SApple OSS Distributions<a href="MO_change_attributes.html"><strong>memory_object_change_attributes</strong></a>,
47*a1e26a70SApple OSS Distributions<a href="vm_region.html"><strong>vm_region</strong></a>,
48*a1e26a70SApple OSS Distributions<a href="memory_object_synchronize.html"><strong>memory_object_synchronize</strong></a>,
49*a1e26a70SApple OSS Distributions<a href="VSD_memory_manager.html"><strong>vm_set_default_memory_manager</strong></a>,
50*a1e26a70SApple OSS Distributions<a href="vm_msync.html"><strong>vm_msync</strong></a>.
51*a1e26a70SApple OSS Distributions<p>
52*a1e26a70SApple OSS DistributionsStructures:
53*a1e26a70SApple OSS Distributions<a href="memory_object_attr_info.html"><strong>memory_object_attr_info</strong></a>.
54