@@ -270,13 +270,16 @@ For more information, see the kernel cgroups documentation about [memory][cgroup
270270** ` memory ` ** (object, OPTIONAL) represents the cgroup subsystem ` memory ` and it's used to set limits on the container's memory usage.
271271For more information, see the kernel cgroups documentation about [ memory] [ cgroup-v1-memory ] .
272272
273- The following parameters can be specified to set up the controller:
273+ Values for memory specify the limit in bytes, or ` -1 ` for unlimited memory.
274+
275+ * ** ` limit ` ** * (int64, OPTIONAL)* - sets limit of memory usage
276+ * ** ` reservation ` ** * (int64, OPTIONAL)* - sets soft limit of memory usage
277+ * ** ` swap ` ** * (int64, OPTIONAL)* - sets limit of memory+Swap usage
278+ * ** ` kernel ` ** * (int64, OPTIONAL)* - sets hard limit for kernel memory
279+ * ** ` kernelTCP ` ** * (int64, OPTIONAL)* - sets hard limit for kernel TCP buffer memory
280+
281+ For ` swappiness ` the values are from 0 to 100. Higher means more swappy.
274282
275- * ** ` limit ` ** * (uint64, OPTIONAL)* - sets limit of memory usage in bytes
276- * ** ` reservation ` ** * (uint64, OPTIONAL)* - sets soft limit of memory usage in bytes
277- * ** ` swap ` ** * (uint64, OPTIONAL)* - sets limit of memory+Swap usage
278- * ** ` kernel ` ** * (uint64, OPTIONAL)* - sets hard limit for kernel memory
279- * ** ` kernelTCP ` ** * (uint64, OPTIONAL)* - sets hard limit in bytes for kernel TCP buffer memory
280283* ** ` swappiness ` ** * (uint64, OPTIONAL)* - sets swappiness parameter of vmscan (See sysctl's vm.swappiness)
281284
282285#### Example
@@ -286,8 +289,8 @@ The following parameters can be specified to set up the controller:
286289 "limit" : 536870912 ,
287290 "reservation" : 536870912 ,
288291 "swap" : 536870912 ,
289- "kernel" : 0 ,
290- "kernelTCP" : 0 ,
292+ "kernel" : -1 ,
293+ "kernelTCP" : -1 ,
291294 "swappiness" : 0
292295 }
293296```
0 commit comments