From 58a5e517c93c55bd485f25789da2f2fdc8ea4232 Mon Sep 17 00:00:00 2001 From: idi-ot Date: Fri, 19 Jan 2018 22:46:53 +0300 Subject: [PATCH] fix typo: 10000 -> 1000000 (ms in 1 sec) (#5769) * fix typo? Not sure if that's what was intended by the original author, but there are 1000000 microseconds in one second, not 10000. * update example command as well --- engine/admin/resource_constraints.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/admin/resource_constraints.md b/engine/admin/resource_constraints.md index 7392c9dad0..fdd886c8db 100644 --- a/engine/admin/resource_constraints.md +++ b/engine/admin/resource_constraints.md @@ -226,9 +226,9 @@ operating system. To run containers using the realtime scheduler, run the Docker daemon with the `--cpu-rt-runtime` flag set to the maximum number of microseconds reserved for realtime tasks per runtime period. For instance, with the default period of -10000 microseconds (1 second), setting `--cpu-rt-runtime=95000` ensures that -containers using the realtime scheduler can run for 95000 microseconds for every -10000-microsecond period, leaving at least 5000 microseconds available for +1000000 microseconds (1 second), setting `--cpu-rt-runtime=950000` ensures that +containers using the realtime scheduler can run for 950000 microseconds for every +1000000-microsecond period, leaving at least 50000 microseconds available for non-realtime tasks. To make this configuration permanent on systems which use `systemd`, see [Control and configure Docker with systemd](systemd.md). @@ -248,7 +248,7 @@ The following example command sets each of these three flags on a `debian:jessie container. ```bash -$ docker run --it --cpu-rt-runtime=95000 \ +$ docker run --it --cpu-rt-runtime=950000 \ --ulimit rtprio=99 \ --cap-add=sys_nice \ debian:jessie