Lines Matching +full:memory +full:- +full:to +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
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
34 duration and page out. To avoid it consuming too much CPU for the paging out
36 out memory regions that didn't accessed longer time first. System
38 automatically activated and deactivated with three memory pressure watermarks.
43 To use this feature, you should first ensure your system is running on a kernel
46 To let sysadmins enable or disable it and tune for the given system,
49 proper values to ``/sys/module/damon_reclaim/parameters/<parameter>`` files.
54 -------
60 no real monitoring and reclamation due to the watermarks-based activation
61 condition. Refer to below descriptions for the watermarks parameter for this.
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 --------
89 DAMON_RECLAIM tries to use only up to this time within a time window
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 -----------------------
121 ---------------------
123 Desired level of memory pressure-stall time in microseconds.
127 memory pressure is incurred. System-wide ``some`` memory PSI in microseconds
129 compared to this value to see if the aim is satisfied. Value zero means
130 disabling this auto-tuning feature.
135 -----------------------
137 User-specifiable feedback for auto-tuning of the effective quota.
143 this auto-tuning feature.
148 ---------------
150 Minimal time to wait before checking the watermarks, when DAMON_RECLAIM is
151 enabled but inactive due to its watermarks rule.
154 -----------
156 Free memory rate (per thousand) for the high watermark.
158 If free memory of the system in bytes per thousand bytes is higher than this,
163 ----------
165 Free memory rate (per thousand) for the middle watermark.
167 If free memory of the system in bytes per thousand bytes is between this and
172 ----------
174 Free memory rate (per thousand) for the low watermark.
176 If free memory of the system in bytes per thousand bytes is lower than this,
178 watermarks. In the case, the system falls back to the LRU-list based page
182 ---------------
186 The sampling interval of DAMON for the cold memory monitoring. Please refer to
190 -------------
194 The aggregation interval of DAMON for the cold memory monitoring. Please
195 refer to the DAMON documentation (:doc:`usage`) for more detail.
198 --------------
202 The minimal number of monitoring regions of DAMON for the cold memory
203 monitoring. This can be used to set lower-bound of the monitoring quality.
205 Please refer to the DAMON documentation (:doc:`usage`) for more detail.
208 --------------
212 The maximum number of monitoring regions of DAMON for the cold memory
213 monitoring. This can be used to set upper-bound of the monitoring overhead.
215 refer to the DAMON documentation (:doc:`usage`) for more detail.
218 --------------------
220 Start of target memory region in physical address.
222 The start physical address of memory region that DAMON_RECLAIM will do work
223 against. That is, DAMON_RECLAIM will find cold memory regions in this region
227 ------------------
229 End of target memory region in physical address.
231 The end physical address of memory region that DAMON_RECLAIM will do work
232 against. That is, DAMON_RECLAIM will find cold memory regions in this region
236 ---------
245 -----------
250 -1.
253 ------------------------
255 Number of memory regions that tried to be reclaimed by DAMON_RECLAIM.
258 ---------------------------
260 Total bytes of memory regions that tried to be reclaimed by DAMON_RECLAIM.
263 --------------------
265 Number of memory regions that successfully be reclaimed by DAMON_RECLAIM.
268 -----------------------
270 Total bytes of memory regions that successfully be reclaimed by DAMON_RECLAIM.
273 ----------------
280 Below runtime example commands make DAMON_RECLAIM to find memory regions that
282 to be done only up to 1 GiB per second to avoid DAMON_RECLAIM consuming too
283 much CPU time for the paging out operation. It also asks DAMON_RECLAIM to do
284 nothing if the system's free memory rate is more than 50%, but start the real
286 therefore the free memory rate becomes lower than 20%, it asks DAMON_RECLAIM to
287 do nothing again, so that we can fall back to the LRU-list based page