summaryrefslogtreecommitdiff
path: root/docs/source/markdown/options/cpu-quota.md
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2022-08-09 15:02:08 -0600
committerEd Santiago <santiago@redhat.com>2022-08-09 16:18:53 -0600
commit2bcee9f627b2cd1e3fe588b581aff05821f5841d (patch)
tree4a17d840d90e19057a517358986d6587610d2f6f /docs/source/markdown/options/cpu-quota.md
parent72679400b0cd7d059f20b2b84ee8b42306ce607a (diff)
downloadpodman-2bcee9f627b2cd1e3fe588b581aff05821f5841d.tar.gz
podman-2bcee9f627b2cd1e3fe588b581aff05821f5841d.tar.bz2
podman-2bcee9f627b2cd1e3fe588b581aff05821f5841d.zip
Man pages: refactor common options
Continued. Harder-to-review ones this time. Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'docs/source/markdown/options/cpu-quota.md')
-rw-r--r--docs/source/markdown/options/cpu-quota.md12
1 files changed, 12 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..67b9dee8c
--- /dev/null
+++ b/docs/source/markdown/options/cpu-quota.md
@@ -0,0 +1,12 @@
+#### **--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 CPU 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-cpu-limits-fails-with-a-permissions-error