diff for duplicates of <20140105003501.GC4106@localhost.localdomain> diff --git a/a/1.txt b/N1/1.txt index 7fec746..18f38f2 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -20,3 +20,42 @@ On Fri, Jan 03, 2014 at 10:17:54AM -0800, Dave Hansen wrote: > Otherwise, I do like the new message Thanks. This is the new version: + +>From f4d085a880dfae7638b33c242554efb0afc0852b Mon Sep 17 00:00:00 2001 +From: Han Pingtian <hanpt@linux.vnet.ibm.com> +Date: Fri, 3 Jan 2014 11:10:49 +0800 +Subject: [PATCH] mm: show message when raising min_free_kbytes in THP + +min_free_kbytes may be raised during THP's initialization. Sometimes, +this will change the value being set by user. Showing message will +clarify this confusion. + +Showing the old value of min_free_kbytes according to Dave Hansen's +suggestion. This will give user the chance to restore old value of +min_free_kbytes. + +Signed-off-by: Han Pingtian <hanpt@linux.vnet.ibm.com> +--- + mm/huge_memory.c | 6 +++++- + 1 files changed, 5 insertions(+), 1 deletions(-) + +diff --git a/mm/huge_memory.c b/mm/huge_memory.c +index 7de1bf8..7910360 100644 +--- a/mm/huge_memory.c ++++ b/mm/huge_memory.c +@@ -130,8 +130,12 @@ static int set_recommended_min_free_kbytes(void) + (unsigned long) nr_free_buffer_pages() / 20); + recommended_min <<= (PAGE_SHIFT-10); + +- if (recommended_min > min_free_kbytes) ++ if (recommended_min > min_free_kbytes) { ++ pr_info("raising min_free_kbytes from %d to %d " ++ "to help transparent hugepage allocations\n", ++ min_free_kbytes, recommended_min); + min_free_kbytes = recommended_min; ++ } + setup_per_zone_wmarks(); + return 0; + } +-- +1.7.7.6 diff --git a/a/content_digest b/N1/content_digest index 8cdde0b..5ef18bc 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -35,6 +35,45 @@ "> \n" "> Otherwise, I do like the new message\n" "\n" - Thanks. This is the new version: + "Thanks. This is the new version:\n" + "\n" + ">From f4d085a880dfae7638b33c242554efb0afc0852b Mon Sep 17 00:00:00 2001\n" + "From: Han Pingtian <hanpt@linux.vnet.ibm.com>\n" + "Date: Fri, 3 Jan 2014 11:10:49 +0800\n" + "Subject: [PATCH] mm: show message when raising min_free_kbytes in THP\n" + "\n" + "min_free_kbytes may be raised during THP's initialization. Sometimes,\n" + "this will change the value being set by user. Showing message will\n" + "clarify this confusion.\n" + "\n" + "Showing the old value of min_free_kbytes according to Dave Hansen's\n" + "suggestion. This will give user the chance to restore old value of\n" + "min_free_kbytes.\n" + "\n" + "Signed-off-by: Han Pingtian <hanpt@linux.vnet.ibm.com>\n" + "---\n" + " mm/huge_memory.c | 6 +++++-\n" + " 1 files changed, 5 insertions(+), 1 deletions(-)\n" + "\n" + "diff --git a/mm/huge_memory.c b/mm/huge_memory.c\n" + "index 7de1bf8..7910360 100644\n" + "--- a/mm/huge_memory.c\n" + "+++ b/mm/huge_memory.c\n" + "@@ -130,8 +130,12 @@ static int set_recommended_min_free_kbytes(void)\n" + " \t\t\t (unsigned long) nr_free_buffer_pages() / 20);\n" + " \trecommended_min <<= (PAGE_SHIFT-10);\n" + " \n" + "-\tif (recommended_min > min_free_kbytes)\n" + "+\tif (recommended_min > min_free_kbytes) {\n" + "+\t\tpr_info(\"raising min_free_kbytes from %d to %d \"\n" + "+\t\t\t\"to help transparent hugepage allocations\\n\",\n" + "+\t\t\tmin_free_kbytes, recommended_min);\n" + " \t\tmin_free_kbytes = recommended_min;\n" + "+\t}\n" + " \tsetup_per_zone_wmarks();\n" + " \treturn 0;\n" + " }\n" + "-- \n" + 1.7.7.6 -9b7b0aba8a399322a5770e979c616bcd97923f15fdb5df2794b005ef221e743b +e01d59fc9a1b9dc3afcf2a82d1e25e82eaf16db333d632ada26d381e3349c3a6
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.