diff --git a/content/en/docs/images.md b/content/en/docs/images.md index a3c727d..d7b3dfa 100644 --- a/content/en/docs/images.md +++ b/content/en/docs/images.md @@ -193,7 +193,10 @@ runs. It then downloads every layer and the config blob that is not already in the store, three at a time, each checked against its sha256 digest while it streams: a blob is written next to its final name and renamed only once verified, so an interrupted download never passes for -a complete one, and a download cut short takes its part file with it. It says of +a complete one, and a download cut short takes its part file with it. A registry +that answers it is busy, with 429 Too Many Requests or a 5xx error, is asked again +after 1, 2, 4 and 8 seconds before the pull gives up and says so; any other refusal +ends it at once. It says of each blob when it is downloaded, and then: 1. assembles the root file system with the chosen [backend](#backends): every diff --git a/content/en/docs/machines.md b/content/en/docs/machines.md index 5fcbce5..ab70a58 100644 --- a/content/en/docs/machines.md +++ b/content/en/docs/machines.md @@ -365,7 +365,14 @@ good too, but does not take an `unless-stopped` one off the boot list. A `-m`/`--memory` (`512m`, `2g`), `--cpus` (`0.5`, `2`) and `--pids-limit` bound the whole machine: they are the MemoryMax=, CPUQuota= and TasksMax= of its -unit, which is why nothing inside shows them. `--memory` also +unit, which is why nothing inside shows them: systemd-nspawn runs the program +in a cgroup below its unit's, the root of the machine's cgroup namespace, +where `/sys/fs/cgroup/memory.max`, `memory.swap.max`, `cpu.max` and +`pids.max` read `max`. The kernel holds the machine to the limits all the +same, but a program that sizes itself from those files, as Node.js and the +JVM do, takes the host's memory and CPUs for its own and runs into the limit: +give it its size, such as `--max-old-space-size` for Node.js or `-Xmx` and +`-XX:ActiveProcessorCount` for a JVM. `--memory` also lets the machine use as much swap again (MemorySwapMax=), and no more, unless `--memory-swap` gives memory and swap together: equal to `--memory` for no swap, larger for the difference, `-1` for swap without a @@ -516,7 +523,9 @@ its unit: `--interface` keeps `NET_ADMIN` on its own; a name that is no capability is refused. `--cap-drop ALL --cap-add NET_BIND_SERVICE` keeps NET_BIND_SERVICE alone, and - `--privileged` keeps every one. + `--privileged` keeps every one. Whatever the set, a program may lock memory + (mlock, mlockall) up to its memlock limit, 8 MiB under systemd's default, + which `--ulimit memlock=` changes. - `--read-only`: the root read-only. `--tmpfs PATH[:OPTIONS]`: an empty tmpfs at a path (`size=64m`, `mode=0700`; 1777 when given without options), which is how a read-only machine still writes `/tmp` or diff --git a/content/en/docs/reference.md b/content/en/docs/reference.md index 6993d8a..fbb6227 100644 --- a/content/en/docs/reference.md +++ b/content/en/docs/reference.md @@ -3,7 +3,7 @@ title: Command reference linkTitle: Reference weight: 10 description: >- - Every command and option of nspawn 3.3.1. + Every command and option of nspawn 3.3.2. --- `nspawn --help` and `nspawn COMMAND --help` list the options; this page diff --git a/hugo.yaml b/hugo.yaml index 2e9643b..964d9c7 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -53,7 +53,7 @@ params: privacy_policy: /about/#privacy # Version of nspawn the documentation describes. - version: 3.3.1 + version: 3.3.2 archived_version: false # In-page links to open issues and suggest changes.