Just removing the white-spaces

This commit is contained in:
Avinash Sridharan 2015-07-31 22:09:34 -07:00
parent b5a7cc9887
commit 8e9c254f44

View File

@ -57,6 +57,7 @@ Here's a diagram of what the final result will look like:
1. You need to have docker installed on one machine. 1. You need to have docker installed on one machine.
2. Your kernel should support memory and swap accounting. Ensure that the 2. Your kernel should support memory and swap accounting. Ensure that the
following configs are turned on in your linux kernel: following configs are turned on in your linux kernel:
```console ```console
CONFIG_RESOURCE_COUNTERS=y CONFIG_RESOURCE_COUNTERS=y
@ -65,22 +66,24 @@ following configs are turned on in your linux kernel:
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
parameters as follows: parameters as follows:
```console ```console
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 kenel by looking at the You can check the command line parameters passed to your kenel by looking at the
output of /proc/cmdline: output of /proc/cmdline:
```console ```console
$cat /proc/cmdline $cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.18.4-aufs root=/dev/sda5 ro cgroup_enable=memory BOOT_IMAGE=/boot/vmlinuz-3.18.4-aufs root=/dev/sda5 ro cgroup_enable=memory
swapaccount=1 swapaccount=1
``` ```
### Step One: Run etcd ### Step One: Run etcd
```sh ```sh