Update docker.md
This commit is contained in:
@@ -20,10 +20,10 @@ following configs are turned on in your linux kernel:
|
|||||||
|
|
||||||
```shell
|
```shell
|
||||||
CONFIG_RESOURCE_COUNTERS=y
|
CONFIG_RESOURCE_COUNTERS=y
|
||||||
CONFIG_MEMCG=y
|
CONFIG_MEMCG=y
|
||||||
CONFIG_MEMCG_SWAP=y
|
CONFIG_MEMCG_SWAP=y
|
||||||
CONFIG_MEMCG_SWAP_ENABLED=y
|
CONFIG_MEMCG_SWAP_ENABLED=y
|
||||||
CONFIG_MEMCG_KMEM=y
|
CONFIG_MEMCG_KMEM=y
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Enable the memory and swap accounting in the kernel, at boot, as command line
|
3. Enable the memory and swap accounting in the kernel, at boot, as command line
|
||||||
@@ -32,6 +32,7 @@ parameters as follows:
|
|||||||
```shell
|
```shell
|
||||||
GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"
|
GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"
|
||||||
```
|
```
|
||||||
|
|
||||||
NOTE: The above is specifically for GRUB2.
|
NOTE: The above is specifically for GRUB2.
|
||||||
You can check the command line parameters passed to your kernel by looking at the
|
You can check the command line parameters passed to your kernel by looking at the
|
||||||
output of /proc/cmdline:
|
output of /proc/cmdline:
|
||||||
|
|||||||
Reference in New Issue
Block a user