summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@redhat.com>2014-03-27 18:31:16 -0400
committerJosh Boyer <jwboyer@redhat.com>2014-03-27 18:31:27 -0400
commit9a031d5070d9f8f5916c48637bd0c237cd52eaf9 (patch)
tree8b17453ea2bb9e2b8bd3166bf0740d090cdd8ae2
parent5b9ddb97b786b664512caefbdc3e1b7cfb937b80 (diff)
downloadkernel-9a031d5070d9f8f5916c48637bd0c237cd52eaf9.tar.gz
kernel-9a031d5070d9f8f5916c48637bd0c237cd52eaf9.tar.xz
kernel-9a031d5070d9f8f5916c48637bd0c237cd52eaf9.zip
Switch to CONFIG_TRANSPARENT_HUGEPAGE_MADVISE instead of always on
The benefit of THP has been somewhat questionable overall for a while, and it's been known to cause performance issues with some workloads. Upstream also considers it to be overly complicated and really not worth it on machines with memory in the amounts found on typical desktops/SMB servers. Switch to using it via madvise, which most applications that care about it should likely already be doing.
-rw-r--r--config-x86_64-generic1
-rw-r--r--kernel.spec3
2 files changed, 4 insertions, 0 deletions
diff --git a/config-x86_64-generic b/config-x86_64-generic
index dfd56a5b4..02883b84b 100644
--- a/config-x86_64-generic
+++ b/config-x86_64-generic
@@ -37,6 +37,7 @@ CONFIG_SWIOTLB=y
# CONFIG_GART_IOMMU is not set
CONFIG_TRANSPARENT_HUGEPAGE=y
+CONFIG_TRANSPARENT_HUGEPAGE_MADVISE=y
CONFIG_CGROUP_HUGETLB=y
CONFIG_MEM_SOFT_DIRTY=y
diff --git a/kernel.spec b/kernel.spec
index f6c8d8969..458ec0baf 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -2068,6 +2068,9 @@ fi
# ||----w |
# || ||
%changelog
+* Thu Mar 27 2014 Josh Boyer <jwboyer@fedoraproject.org>
+- Switch to CONFIG_TRANSPARENT_HUGEPAGE_MADVISE instead of always on
+
* Tue Mar 25 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc8.git0.1
- Linux v3.14-rc8
- Disable debugging options.