linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] doc: add information about max_ptes_swap
@ 2015-09-17 21:34 Ebru Akagunduz
  2015-09-18 14:40 ` Rik van Riel
  2015-09-21 22:47 ` David Rientjes
  0 siblings, 2 replies; 3+ messages in thread
From: Ebru Akagunduz @ 2015-09-17 21:34 UTC (permalink / raw)
  To: linux-mm
  Cc: riel, akpm, rientjes, oleg, kirill.shutemov, dave, denc716,
	ldufour, sasha.levin, viro, linux-kernel, Ebru Akagunduz

max_ptes_swap specifies how many pages can be brought in from
swap when collapsing a group of pages into a transparent huge page.

/sys/kernel/mm/transparent_hugepage/khugepaged/max_ptes_swap

A higher value can cause excessive swap IO and waste
memory. A lower value can prevent THPs from being
collapsed, resulting fewer pages being collapsed into
THPs, and lower memory access performance.

Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>
---
 Documentation/vm/transhuge.txt | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/Documentation/vm/transhuge.txt b/Documentation/vm/transhuge.txt
index 8143b9e..8a28268 100644
--- a/Documentation/vm/transhuge.txt
+++ b/Documentation/vm/transhuge.txt
@@ -170,6 +170,16 @@ A lower value leads to gain less thp performance. Value of
 max_ptes_none can waste cpu time very little, you can
 ignore it.
 
+max_ptes_swap specifies how many pages can be brought in from
+swap when collapsing a group of pages into a transparent huge page.
+
+/sys/kernel/mm/transparent_hugepage/khugepaged/max_ptes_swap
+
+A higher value can cause excessive swap IO and waste
+memory. A lower value can prevent THPs from being
+collapsed, resulting fewer pages being collapsed into
+THPs, and lower memory access performance.
+
 == Boot parameter ==
 
 You can change the sysfs boot time defaults of Transparent Hugepage
-- 
1.9.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-09-21 22:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-17 21:34 [PATCH] doc: add information about max_ptes_swap Ebru Akagunduz
2015-09-18 14:40 ` Rik van Riel
2015-09-21 22:47 ` David Rientjes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).