Re: [RFC PATCH 3/3] doc: add information about min_ptes_young

From: Ebru Akagunduz
Date: Mon Jun 13 2016 - 14:37:21 EST


On Sat, Jun 11, 2016 at 10:16:01PM +0300, Ebru Akagunduz wrote:
> min_ptes_young specifies at least how many young pages needed
> to create a THP. This threshold also effects when making swapin
> readahead (if needed) to create a THP. We decide whether to make
> swapin readahed wortwhile looking the value.
>
> /sys/kernel/mm/transparent_hugepage/khugepaged/min_ptes_young
>
> Signed-off-by: Ebru Akagunduz <ebru.akagunduz@xxxxxxxxx>
Suggested-by: Minchan Kim <minchan@xxxxxxxxxx>
> ---
Cc'ed Minchan Kim.
> Documentation/vm/transhuge.txt | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/Documentation/vm/transhuge.txt b/Documentation/vm/transhuge.txt
> index 2ec6adb..0ae713b 100644
> --- a/Documentation/vm/transhuge.txt
> +++ b/Documentation/vm/transhuge.txt
> @@ -193,6 +193,13 @@ memory. A lower value can prevent THPs from being
> collapsed, resulting fewer pages being collapsed into
> THPs, and lower memory access performance.
>
> +min_ptes_young specifies at least how many young pages needed
> +to create a THP. This threshold also effects when making swapin
> +readahead (if needed) to create a THP. We decide whether to make
> +swapin readahed wortwhile looking the value.
> +
> +/sys/kernel/mm/transparent_hugepage/khugepaged/min_ptes_young
> +
> == Boot parameter ==
>
> You can change the sysfs boot time defaults of Transparent Hugepage
> --
> 1.9.1
>