Fixes #146: cgroups_mem_max unit in config.proto
This commit fixes the incorrect cgroups_mem_max unit described in a config.proto comment. We do not perform any calculations on this value and we don't specify the values unit (k/M/G) when writing to memory cgroup controller files, so the value is specified in bytes.
This commit is contained in:
parent
f7554882fe
commit
5d103e595a
@ -196,7 +196,7 @@ message NsJailConfig {
|
|||||||
optional bool seccomp_log = 60 [default = false];
|
optional bool seccomp_log = 60 [default = false];
|
||||||
|
|
||||||
/* If > 0, maximum cumulative size of RAM used inside any jail */
|
/* If > 0, maximum cumulative size of RAM used inside any jail */
|
||||||
optional uint64 cgroup_mem_max = 61 [default = 0]; /* In MiB */
|
optional uint64 cgroup_mem_max = 61 [default = 0]; /* In bytes */
|
||||||
/* Mount point for cgroups-memory in your system */
|
/* Mount point for cgroups-memory in your system */
|
||||||
optional string cgroup_mem_mount = 62 [default = "/sys/fs/cgroup/memory"];
|
optional string cgroup_mem_mount = 62 [default = "/sys/fs/cgroup/memory"];
|
||||||
/* Writeable directory (for the nsjail user) under cgroup_mem_mount */
|
/* Writeable directory (for the nsjail user) under cgroup_mem_mount */
|
||||||
|
Loading…
Reference in New Issue
Block a user