Browse Source

Merge pull request #11956 from coolljt0725/add_memcg_swap_cgroup_enabled_to_check_config

add MEMCG_SWAP_ENABLED to check-config.sh
Alexander Morozov 10 năm trước cách đây
mục cha
commit
03525d5fc6
1 tập tin đã thay đổi với 7 bổ sung1 xóa
  1. 7 1
      contrib/check-config.sh

+ 7 - 1
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
 )