Skip to content

Commit 5fa16af

Browse files
bagasmehtejun
authored andcommitted
docs: cgroup-v1: make swap extension subsections subsections
Subsections text of swap extension section is marked up as bold text, whereas making them proper subsection is more appropriate. Signed-off-by: Bagas Sanjaya <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent b9d2a17 commit 5fa16af

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Documentation/admin-guide/cgroup-v1/memory.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,15 +244,17 @@ In this case, setting memsw.limit_in_bytes=3G will prevent bad use of swap.
244244
By using the memsw limit, you can avoid system OOM which can be caused by swap
245245
shortage.
246246

247-
**why 'memory+swap' rather than swap**
247+
2.4.1 why 'memory+swap' rather than swap
248+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
248249

249250
The global LRU(kswapd) can swap out arbitrary pages. Swap-out means
250251
to move account from memory to swap...there is no change in usage of
251252
memory+swap. In other words, when we want to limit the usage of swap without
252253
affecting global LRU, memory+swap limit is better than just limiting swap from
253254
an OS point of view.
254255

255-
**What happens when a cgroup hits memory.memsw.limit_in_bytes**
256+
2.4.2. What happens when a cgroup hits memory.memsw.limit_in_bytes
257+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
256258

257259
When a cgroup hits memory.memsw.limit_in_bytes, it's useless to do swap-out
258260
in this cgroup. Then, swap-out will not be done by cgroup routine and file

0 commit comments

Comments
 (0)