All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20140103033303.GB4106@localhost.localdomain>

diff --git a/a/1.txt b/N1/1.txt
index 31a9d9e..0b602d3 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -20,3 +20,42 @@ On Thu, Jan 02, 2014 at 10:05:21AM -0800, Dave Hansen wrote:
 > allocations"
 > 
 Thanks. I have updated it according to your suggestion.
+
+
+>From f9902b16ff0c326349e72eca9facef2c98f8595d 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 |    5 ++++-
+ 1 files changed, 4 insertions(+), 1 deletions(-)
+
+diff --git a/mm/huge_memory.c b/mm/huge_memory.c
+index 7de1bf8..1f0356d 100644
+--- a/mm/huge_memory.c
++++ b/mm/huge_memory.c
+@@ -130,8 +130,11 @@ 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 b3a016a..460319a 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -33,6 +33,45 @@
  "> \"raising min_free_kbytes from %d to %d to help transparent hugepage\n"
  "> allocations\"\n"
  "> \n"
- Thanks. I have updated it according to your suggestion.
+ "Thanks. I have updated it according to your suggestion.\n"
+ "\n"
+ "\n"
+ ">From f9902b16ff0c326349e72eca9facef2c98f8595d 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 |    5 ++++-\n"
+ " 1 files changed, 4 insertions(+), 1 deletions(-)\n"
+ "\n"
+ "diff --git a/mm/huge_memory.c b/mm/huge_memory.c\n"
+ "index 7de1bf8..1f0356d 100644\n"
+ "--- a/mm/huge_memory.c\n"
+ "+++ b/mm/huge_memory.c\n"
+ "@@ -130,8 +130,11 @@ 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 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
 
-e01713352d6dc8c24641a712dae9a2d5572898b543c850573205000e4ffedef0
+90cbe56a2bb69794c9b897b8c909687e73482cd4d534ca6f993a139b3b9cab54

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.