Lines Matching +full:in +full:- +full:memory
1 .. SPDX-License-Identifier: GPL-2.0
4 DAMON-based Reclamation
7 DAMON-based Reclamation (DAMON_RECLAIM) is a static kernel module that aimed to
8 be used for proactive and lightweight reclamation under light memory pressure.
9 It doesn't aim to replace the LRU-list based page_granularity reclamation, but
10 to be selectively used for different level of memory pressure and requirements.
15 On general memory over-committed systems, proactively reclaiming cold pages
16 helps saving memory and reducing latency spikes that incurred by the direct
20 Free Pages Reporting [3]_ based memory over-commit virtualization systems are
21 good example of the cases. In such systems, the guest VMs reports their free
22 memory to host, and the host reallocates the reported memory to other guests.
23 As a result, the memory of the systems are fully utilized. However, the
24 guests could be not so memory-frugal, mainly because some kernel subsystems and
25 user-space applications are designed to use as much memory as available. Then,
26 guests could report only small amount of memory as free to host, results in
27 memory utilization drop of the systems. Running the proactive reclamation in
33 DAMON_RECLAIM finds memory regions that didn't accessed for specific time
36 out memory regions that didn't accessed longer time first. System
38 automatically activated and deactivated with three memory pressure watermarks.
54 -------
60 no real monitoring and reclamation due to the watermarks-based activation
64 -------------
70 of parametrs except ``enabled`` again. Once the re-reading is done, this
72 re-reading, DAMON_RECLAIM will be disabled.
75 -------
77 Time threshold for cold memory regions identification in microseconds.
79 If a memory region is not accessed for this or longer time, DAMON_RECLAIM
85 --------
87 Limit of time for the reclamation in milliseconds.
97 --------
99 Limit of size of memory for the reclamation in bytes.
101 DAMON_RECLAIM charges amount of memory which it tried to reclaim within a time
109 -----------------------
111 The time/size quota charge reset interval in milliseconds.
121 ---------------
127 -----------
129 Free memory rate (per thousand) for the high watermark.
131 If free memory of the system in bytes per thousand bytes is higher than this,
136 ----------
138 Free memory rate (per thousand) for the middle watermark.
140 If free memory of the system in bytes per thousand bytes is between this and
145 ----------
147 Free memory rate (per thousand) for the low watermark.
149 If free memory of the system in bytes per thousand bytes is lower than this,
151 watermarks. In the case, the system falls back to the LRU-list based page
155 ---------------
157 Sampling interval for the monitoring in microseconds.
159 The sampling interval of DAMON for the cold memory monitoring. Please refer to
163 -------------
165 Aggregation interval for the monitoring in microseconds.
167 The aggregation interval of DAMON for the cold memory monitoring. Please
171 --------------
175 The minimal number of monitoring regions of DAMON for the cold memory
176 monitoring. This can be used to set lower-bound of the monitoring quality.
177 But, setting this too high could result in increased monitoring overhead.
181 --------------
185 The maximum number of monitoring regions of DAMON for the cold memory
186 monitoring. This can be used to set upper-bound of the monitoring overhead.
187 However, setting this too low could result in bad monitoring quality. Please
191 --------------------
193 Start of target memory region in physical address.
195 The start physical address of memory region that DAMON_RECLAIM will do work
196 against. That is, DAMON_RECLAIM will find cold memory regions in this region
200 ------------------
202 End of target memory region in physical address.
204 The end physical address of memory region that DAMON_RECLAIM will do work
205 against. That is, DAMON_RECLAIM will find cold memory regions in this region
209 -----------
214 -1.
217 ------------------------
219 Number of memory regions that tried to be reclaimed by DAMON_RECLAIM.
222 ---------------------------
224 Total bytes of memory regions that tried to be reclaimed by DAMON_RECLAIM.
227 --------------------
229 Number of memory regions that successfully be reclaimed by DAMON_RECLAIM.
232 -----------------------
234 Total bytes of memory regions that successfully be reclaimed by DAMON_RECLAIM.
237 ----------------
244 Below runtime example commands make DAMON_RECLAIM to find memory regions that
248 nothing if the system's free memory rate is more than 50%, but start the real
250 therefore the free memory rate becomes lower than 20%, it asks DAMON_RECLAIM to
251 do nothing again, so that we can fall back to the LRU-list based page