mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add MEMCG_SWAP_ENABLED to check-config.sh
Signed-off-by: Lei Jitang <leijitang@huawei.com>
This commit is contained in:
parent
e7c48f5817
commit
a9588158b5
1 changed files with 7 additions and 1 deletions
|
@ -151,8 +151,14 @@ check_flags "${flags[@]}"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
echo 'Optional Features:'
|
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=(
|
flags=(
|
||||||
MEMCG_SWAP
|
|
||||||
RESOURCE_COUNTERS
|
RESOURCE_COUNTERS
|
||||||
CGROUP_PERF
|
CGROUP_PERF
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue