Sfoglia il codice sorgente

Merge pull request #953 from rhysh/952-swapaccount-docs

- Documentation: fix inconsistent/outdated instructions for setting up "swapaccount"
Solomon Hykes 12 anni fa
parent
commit
4383d7b603
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      docs/sources/installation/kernel.rst

+ 2 - 2
docs/sources/installation/kernel.rst

@@ -100,7 +100,7 @@ Memory and Swap Accounting on Debian/Ubuntu
 If you use Debian or Ubuntu kernels, and want to enable memory and swap
 If you use Debian or Ubuntu kernels, and want to enable memory and swap
 accounting, you must add the following command-line parameters to your kernel::
 accounting, you must add the following command-line parameters to your kernel::
 
 
-    cgroup_enable=memory swapaccount
+    cgroup_enable=memory swapaccount=1
 
 
 On Debian or Ubuntu systems, if you use the default GRUB bootloader, you can
 On Debian or Ubuntu systems, if you use the default GRUB bootloader, you can
 add those parameters by editing ``/etc/default/grub`` and extending
 add those parameters by editing ``/etc/default/grub`` and extending
@@ -110,6 +110,6 @@ add those parameters by editing ``/etc/default/grub`` and extending
 
 
 And replace it by the following one::
 And replace it by the following one::
 
 
-    GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount"
+    GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"
 
 
 Then run ``update-grub``, and reboot.
 Then run ``update-grub``, and reboot.