From 0a0e49d406d10ce7c79952c78162768dd05ee875 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Barth Date: Sat, 12 Apr 2014 10:57:19 +0000 Subject: [PATCH] Docs: improve installation/ubuntulinux memory and swap accounting section Docker-DCO-1.1-Signed-off-by: Jean-Baptiste Barth (github: jbbarth) --- docs/sources/installation/ubuntulinux.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/sources/installation/ubuntulinux.rst b/docs/sources/installation/ubuntulinux.rst index 51f303e88a..3e4b2a9855 100644 --- a/docs/sources/installation/ubuntulinux.rst +++ b/docs/sources/installation/ubuntulinux.rst @@ -234,7 +234,7 @@ To install the latest version of docker, use the standard ``apt-get`` method: Memory and Swap Accounting ^^^^^^^^^^^^^^^^^^^^^^^^^^ -If want to enable memory and swap accounting, you must add the following +If you want to enable memory and swap accounting, you must add the following command-line parameters to your kernel:: cgroup_enable=memory swapaccount=1 @@ -249,7 +249,12 @@ And replace it by the following one:: GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1" -Then run ``update-grub``, and reboot. +Then run ``sudo update-grub``, and reboot. + +These parameters will help you get rid of the following warnings:: + + WARNING: Your kernel does not support cgroup swap limit. + WARNING: Your kernel does not support swap limit capabilities. Limitation discarded. Troubleshooting ^^^^^^^^^^^^^^^