[lxc-devel] [lxd/master] Change memroy limit to megabytes

surfer190 on Github lxc-bot at linuxcontainers.org
Thu Aug 1 10:31:54 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 387 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190801/085c374b/attachment.bin>
-------------- next part --------------
From 67f49929daa3138807940f9c4c15d52e3cb38279 Mon Sep 17 00:00:00 2001
From: surfer190 <stephenh at 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)


More information about the lxc-devel mailing list