From c03b0700a4769e555ee2d1b5aeadb0228bac53a3 Mon Sep 17 00:00:00 2001 From: Qiang Huang Date: Thu, 5 Feb 2015 09:12:56 +0800 Subject: [PATCH] update docs for memory and memoryswap Signed-off-by: Qiang Huang --- docs/sources/reference/run.md | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/docs/sources/reference/run.md b/docs/sources/reference/run.md index 253c83a512..8faf9ad77c 100644 --- a/docs/sources/reference/run.md +++ b/docs/sources/reference/run.md @@ -310,13 +310,26 @@ The operator can also adjust the performance parameters of the container: -m="": Memory limit (format: , where unit = b, k, m or g) + -memory-swap="": Total memory limit (memory + swap, format: , where unit = b, k, m or g) -c=0 : CPU shares (relative weight) -The operator can constrain the memory available to a container easily -with `docker run -m`. If the host supports swap memory, then the `-m` -memory setting can be larger than physical RAM. +We have four ways to set memory usage: + - memory=inf, memory-swap=inf (not specify any of them) + There is no memory limit, you can use as much as you want. -Similarly the operator can increase the priority of this container with + - memory=L