From a9588158b54bc8866bddfa0445c14831e02ebbbc Mon Sep 17 00:00:00 2001 From: Lei Jitang Date: Thu, 2 Apr 2015 08:38:39 +0800 Subject: [PATCH] Add MEMCG_SWAP_ENABLED to check-config.sh Signed-off-by: Lei Jitang --- contrib/check-config.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/contrib/check-config.sh b/contrib/check-config.sh index ac5df62c26..59649d6c66 100755 --- a/contrib/check-config.sh +++ b/contrib/check-config.sh @@ -151,8 +151,14 @@ check_flags "${flags[@]}" echo echo 'Optional Features:' +{ + check_flags MEMCG_SWAP + check_flags MEMCG_SWAP_ENABLED + if is_set MEMCG_SWAP && ! is_set MEMCG_SWAP_ENABLED; then + echo " $(wrap_color '(note that cgroup swap accounting is not enabled in your kernel config, you can enable it by setting boot option "swapaccount=1")' bold black)" + fi +} flags=( - MEMCG_SWAP RESOURCE_COUNTERS CGROUP_PERF )