The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/6033
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === It says the memory must be specified in bytes, I think this is wrong. It is megabytes.
From 67f49929daa3138807940f9c4c15d52e3cb38279 Mon Sep 17 00:00:00 2001 From: surfer190 <steph...@startmail.com> Date: Thu, 1 Aug 2019 12:31:34 +0200 Subject: [PATCH] Change memroy limit to megabytes It says the memory must be specified in bytes, I think this is wrong. It is megabytes. --- doc/containers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/containers.md b/doc/containers.md index c18905676e..d9a4c018c1 100644 --- a/doc/containers.md +++ b/doc/containers.md @@ -47,7 +47,7 @@ limits.cpu.allowance | string | 100% | yes limits.cpu.priority | integer | 10 (maximum) | yes | - | CPU scheduling priority compared to other containers sharing the same CPUs (overcommit) (integer between 0 and 10) limits.disk.priority | integer | 5 (medium) | yes | - | When under load, how much priority to give to the container's I/O requests (integer between 0 and 10) limits.kernel.\* | string | - | no | kernel\_limits | This limits kernel resources per container (e.g. number of open files) -limits.memory | string | - (all) | yes | - | Percentage of the host's memory or fixed value in bytes (various suffixes supported, see below) +limits.memory | string | - (all) | yes | - | Percentage of the host's memory or fixed value in megabytes (various suffixes supported, see below) limits.memory.enforce | string | hard | yes | - | If hard, container can't exceed its memory limit. If soft, the container can exceed its memory limit when extra host memory is available. limits.memory.swap | boolean | true | yes | - | Whether to allow some of the container's memory to be swapped out to disk limits.memory.swap.priority | integer | 10 (maximum) | yes | - | The higher this is set, the least likely the container is to be swapped to disk (integer between 0 and 10)
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel