From 9a031d5070d9f8f5916c48637bd0c237cd52eaf9 Mon Sep 17 00:00:00 2001 From: Josh Boyer Date: Thu, 27 Mar 2014 18:31:16 -0400 Subject: [PATCH] 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. --- config-x86_64-generic | 1 + kernel.spec | 3 +++ 2 files changed, 4 insertions(+) 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 +- Switch to CONFIG_TRANSPARENT_HUGEPAGE_MADVISE instead of always on + * Tue Mar 25 2014 Josh Boyer - 3.14.0-0.rc8.git0.1 - Linux v3.14-rc8 - Disable debugging options.