diff --git a/docs/content/multiprocess/_index.md b/docs/content/multiprocess/_index.md index cd129930..6c23f2ad 100644 --- a/docs/content/multiprocess/_index.md +++ b/docs/content/multiprocess/_index.md @@ -41,6 +41,14 @@ Windows-mounted path (e.g. `/mnt/c/...`). On Windows-mounted filesystems the per-process metric files can be written with an incorrect internal offset, causing the collector to silently read no data. +Prefer a memory-backed filesystem for this directory: a `tmpfs` mount, +`/dev/shm`, or in Kubernetes an `emptyDir` volume with `medium: Memory`. +Every metric update writes into a memory-mapped file in this directory. On a +disk-backed filesystem the kernel can make that write wait while the disk is +busy, for a second or more, and the thread holds the GIL while it waits, so +every thread of the process stops. Files on a memory-backed filesystem count +against the memory of the machine or container. + **2. Metrics collector**: The application must initialize a new `CollectorRegistry`, and store the