github.com/containers/podman/v5@v5.1.0-rc1/docs/source/markdown/options/memory-swap.md (about) 1 ####> This option file is used in: 2 ####> podman build, container clone, create, farm build, pod clone, pod create, run, update 3 ####> If file is edited, make sure the changes 4 ####> are applicable to all of those. 5 #### **--memory-swap**=*number[unit]* 6 7 A limit value equal to memory plus swap. 8 A _unit_ can be **b** (bytes), **k** (kibibytes), **m** (mebibytes), or **g** (gibibytes). 9 10 Must be used with the **-m** (**--memory**) flag. 11 The argument value must be larger than that of 12 **-m** (**--memory**) By default, it is set to double 13 the value of **--memory**. 14 15 Set _number_ to **-1** to enable unlimited swap. 16 17 This option is not supported on cgroups V1 rootless systems.