mirror of https://github.com/docker/docs.git
Merge pull request #22761 from hqhq/hq_check_config_kmem
Update check_config for MEMCG_KMEM
This commit is contained in:
commit
16e6211cf7
|
@ -206,12 +206,16 @@ echo 'Optional Features:'
|
||||||
check_flags CGROUP_PIDS
|
check_flags CGROUP_PIDS
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
check_flags MEMCG_KMEM MEMCG_SWAP MEMCG_SWAP_ENABLED
|
check_flags MEMCG_SWAP MEMCG_SWAP_ENABLED
|
||||||
if is_set MEMCG_SWAP && ! is_set MEMCG_SWAP_ENABLED; then
|
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)"
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [ "$kernelMajor" -lt 4 ] || [ "$kernelMajor" -eq 4 -a "$kernelMinor" -le 5 ]; then
|
||||||
|
check_flags MEMCG_KMEM
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$kernelMajor" -lt 3 ] || [ "$kernelMajor" -eq 3 -a "$kernelMinor" -le 18 ]; then
|
if [ "$kernelMajor" -lt 3 ] || [ "$kernelMajor" -eq 3 -a "$kernelMinor" -le 18 ]; then
|
||||||
check_flags RESOURCE_COUNTERS
|
check_flags RESOURCE_COUNTERS
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue