[Devel] [PATCH RHEL7 COMMIT] tcache/tswap: enable by default

Konstantin Khorenko khorenko at virtuozzo.com
Thu Feb 18 01:34:39 PST 2016


The commit is pushed to "branch-rh7-3.10.0-327.3.1-vz7.10.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-327.3.1.vz7.10.12
------>
commit 0c680f38c67f2e7129c8cfd3675feef4959018c0
Author: Vladimir Davydov <vdavydov at virtuozzo.com>
Date:   Thu Feb 18 12:59:51 2016 +0400

    tcache/tswap: enable by default
    
    These subsystems has proven to be stable, so let's enable them by
    default. If anything goes wrong, they can always be disabled by writing
    'N' to /sys/module/{tcache,tswap}/parameters/active.
    
    Currently tcache/tswap are enabled by vcmmd, but I want to drop this
    code from there.
    
    Signed-off-by: Vladimir Davydov <vdavydov at virtuozzo.com>
---
 mm/tcache.c | 2 +-
 mm/tswap.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mm/tcache.c b/mm/tcache.c
index 9bf7564..f4ea718 100644
--- a/mm/tcache.c
+++ b/mm/tcache.c
@@ -131,7 +131,7 @@ static bool tcache_enabled __read_mostly = true;
 module_param_named(enabled, tcache_enabled, bool, 0444);
 
 /* Enable/disable populating the cache */
-static bool tcache_active __read_mostly;
+static bool tcache_active __read_mostly = true;
 module_param_named(active, tcache_active, bool, 0644);
 
 /* Total number of pages cached */
diff --git a/mm/tswap.c b/mm/tswap.c
index 01953b4..20c952b 100644
--- a/mm/tswap.c
+++ b/mm/tswap.c
@@ -31,7 +31,7 @@ static bool tswap_enabled __read_mostly = true;
 module_param_named(enabled, tswap_enabled, bool, 0444);
 
 /* Enable/disable populating the cache */
-static bool tswap_active __read_mostly;
+static bool tswap_active __read_mostly = true;
 module_param_named(active, tswap_active, bool, 0644);
 
 /* Total number of pages cached */


More information about the Devel mailing list