summaryrefslogtreecommitdiff
path: root/docs/source/markdown/options/cpu-quota.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/source/markdown/options/cpu-quota.md')
-rw-r--r--docs/source/markdown/options/cpu-quota.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/source/markdown/options/cpu-quota.md b/docs/source/markdown/options/cpu-quota.md
new file mode 100644
index 000000000..81d5db3d2
--- /dev/null
+++ b/docs/source/markdown/options/cpu-quota.md
@@ -0,0 +1,14 @@
+#### **--cpu-quota**=*limit*
+
+Limit the CPU Completely Fair Scheduler (CFS) quota.
+
+Limit the container's CPU usage. By default, containers run with the full
+CPU resource. The limit is a number in microseconds. If a number is provided,
+the container will be allowed to use that much CPU time until the CPU period
+ends (controllable via **--cpu-period**).
+
+On some systems, changing the resource limits may not be allowed for non-root
+users. For more details, see
+https://github.com/containers/podman/blob/main/troubleshooting.md#26-running-containers-with-resource-limits-fails-with-a-permissions-error
+
+This option is not supported on cgroups V1 rootless systems.