Skip to content

Commit fe9389f

Browse files
authored
Fix typos in the Resource constraints manual (#22594)
1 parent aec91a4 commit fe9389f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

content/manuals/engine/containers/resource_constraints.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ You can mitigate the risk of system instability due to OOME by:
6969

7070
Docker can enforce hard or soft memory limits.
7171

72-
- Hard limits lets the container use no more than a fixed amount of memory.
73-
- Soft limits lets the container use as much memory as it needs unless certain
72+
- Hard limits let the container use no more than a fixed amount of memory.
73+
- Soft limits let the container use as much memory as it needs unless certain
7474
conditions are met, such as when the kernel detects low memory or contention on
7575
the host machine.
7676

@@ -162,7 +162,7 @@ a container. Consider the following scenarios:
162162
an OOM error. If the kernel memory limit is higher than the user memory
163163
limit, the kernel limit doesn't cause the container to experience an OOM.
164164

165-
When you enable kernel memory limits, the host machine tracks "high water mark"
165+
When you enable kernel memory limits, the host machine tracks the "high water mark"
166166
statistics on a per-process basis, so you can track which processes (in this
167167
case, containers) are using excess memory. This can be seen per process by
168168
viewing `/proc/<PID>/status` on the host machine.
@@ -186,7 +186,7 @@ the container's cgroup on the host machine.
186186
| :--------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
187187
| `--cpus=<value>` | Specify how much of the available CPU resources a container can use. For instance, if the host machine has two CPUs and you set `--cpus="1.5"`, the container is guaranteed at most one and a half of the CPUs. This is the equivalent of setting `--cpu-period="100000"` and `--cpu-quota="150000"`. |
188188
| `--cpu-period=<value>` | Specify the CPU CFS scheduler period, which is used alongside `--cpu-quota`. Defaults to 100000 microseconds (100 milliseconds). Most users don't change this from the default. For most use-cases, `--cpus` is a more convenient alternative. |
189-
| `--cpu-quota=<value>` | Impose a CPU CFS quota on the container. The number of microseconds per `--cpu-period` that the container is limited to before throttled. As such acting as the effective ceiling. For most use-cases, `--cpus` is a more convenient alternative. |
189+
| `--cpu-quota=<value>` | Impose a CPU CFS quota on the container. The number of microseconds per `--cpu-period` that the container is limited to before being throttled. As such acting as the effective ceiling. For most use-cases, `--cpus` is a more convenient alternative. |
190190
| `--cpuset-cpus` | Limit the specific CPUs or cores a container can use. A comma-separated list or hyphen-separated range of CPUs a container can use, if you have more than one CPU. The first CPU is numbered 0. A valid value might be `0-3` (to use the first, second, third, and fourth CPU) or `1,3` (to use the second and fourth CPU). |
191191
| `--cpu-shares` | Set this flag to a value greater or less than the default of 1024 to increase or reduce the container's weight, and give it access to a greater or lesser proportion of the host machine's CPU cycles. This is only enforced when CPU cycles are constrained. When plenty of CPU cycles are available, all containers use as much CPU as they need. In that way, this is a soft limit. `--cpu-shares` doesn't prevent containers from being scheduled in Swarm mode. It prioritizes container CPU resources for the available CPU cycles. It doesn't guarantee or reserve any specific CPU access. |
192192

@@ -234,7 +234,7 @@ for real-time tasks per runtime period. For instance, with the default period of
234234
containers using the real-time scheduler can run for 950000 microseconds for every
235235
1000000-microsecond period, leaving at least 50000 microseconds available for
236236
non-real-time tasks. To make this configuration permanent on systems which use
237-
`systemd`, create a systemd unit file for the `docker` service. For an example,
237+
`systemd`, create a systemd unit file for the `docker` service. For example,
238238
see the instruction on how to configure the daemon to use a proxy with a
239239
[systemd unit file](../daemon/proxy.md#systemd-unit-file).
240240

@@ -343,6 +343,6 @@ environment variables. More information on valid variables can be found in the
343343
[nvidia-container-toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/docker-specialized.html)
344344
documentation. These variables can be set in a Dockerfile.
345345

346-
You can also use CUDA images which sets these variables automatically. See the
346+
You can also use CUDA images, which set these variables automatically. See the
347347
official [CUDA images](https://catalog.ngc.nvidia.com/orgs/nvidia/containers/cuda)
348348
NGC catalog page.

0 commit comments

Comments
 (0)