diff --git a/CHANGELOG.md b/CHANGELOG.md index ea90a39..31a2b08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,18 @@ +## 2026-10-18 — Immich: server 3072M, machine learning 2048M (R-994, a large library) + +- Measured on scratch guest 9202 (felhom.eu `audits/night-2026-10-18/P6/`): 4,000 synthetic photos (3,520 generated with + varied EXIF dates and GPS, 480 crops of 80 CC0 portrait paintings for faces — no real photos) uploaded through + Immich's own API, then every job queue drained (thumbnails, metadata, smart search, faces, OCR): 4,030 photos, 75 + people. At 2048M **`immich-server` was OOM-killed twice** (kernel memcg kill; Docker reported `OOMKilled=false`) and + its queue stopped moving; anon peak 1,596 MB (77 %). `immich-machine-learning` anon peak 1,175 of 1536M (76 %). + Postgres 76 of 768M, Redis 10 of 128M — unchanged. With the limits raised for the measurement the run finished, no + further kill. +- **Limits:** server 2048M → **3072M** (anon peak 52 %), ML 1536M → **2048M** (57 %); `mem_limit` 4480M → **6016M**. + **`mem_request` stays 2048M:** the typical use over the run (median anon) is 1,888 MB in total, below it. So the + install check (which judges `mem_request`) gives the same verdict as before on an 8 GB box: Immich alone is still + admitted; only the soft overcommit warning can now appear on a guest smaller than 6 GB. +- Superseded ladder steps keep their own limits (a box pinned to one runs that step's file); every box runs the newest. + ## 2026-10-18 — homepage without the Docker socket (R-981); each app's own appdata folder in the privileges gate (R-1142) - **homepage** no longer mounts `/var/run/docker.sock`. It gave the login-less start page full control of Docker (= of diff --git a/REPORT.md b/REPORT.md index 8997efa..d41a982 100644 --- a/REPORT.md +++ b/REPORT.md @@ -9,3 +9,9 @@ app-list check now refuses a template that reaches another app's data folder, th - `scripts/check-privileges.py`: the `${HDD_PATH}` root is `appdata//` (R-1142); 7 new decoys. - Gates: `check-privileges.py` rc=0 (123 files); `privileges_cases` 0 fails; red-proof recorded. - Live proof and the night's other work: felhom.eu `REPORT-night-2026-10-18.md`. + +## Immich memory (R-994, same night) + +A 4,000-photo import on the scratch box killed Immich's server twice at 2 GB. Its limit is now 3 GB, and the photo +recognition part 2 GB. The memory request is unchanged, so an 8 GB box still installs Immich. Peaks table: felhom.eu +`audits/night-2026-10-18/P6/peaks.md`. diff --git a/templates/immich/.felhom.yml b/templates/immich/.felhom.yml index 50ae792..b880c97 100644 --- a/templates/immich/.felhom.yml +++ b/templates/immich/.felhom.yml @@ -20,7 +20,7 @@ catalog_since: "2026-09-30" # --- Resource hints (displayed on deploy screen) --- resources: mem_request: "2048M" - mem_limit: "4480M" + mem_limit: "6016M" pi_compatible: false needs_hdd: true diff --git a/templates/immich/docker-compose.yml b/templates/immich/docker-compose.yml index 12fd0a2..b583be8 100644 --- a/templates/immich/docker-compose.yml +++ b/templates/immich/docker-compose.yml @@ -1,7 +1,7 @@ # Immich - Self-hosted Photo & Video Management # Domain: ${SUBDOMAIN}.${DOMAIN} # Database: PostgreSQL (with VectorChord) + Redis -# RAM: ~4GB minimum (mem_limit: 4480M total — server 2048M + ML 1536M + postgres 768M + redis 128M) | Pi-compatible: No (ML too heavy) +# RAM: ~4GB minimum (mem_limit: 6016M total — server 3072M + ML 2048M + postgres 768M + redis 128M) | Pi-compatible: No (ML too heavy) # # Environment variables: # DOMAIN - Your domain (e.g., demo-felhom.eu) @@ -52,7 +52,11 @@ services: deploy: resources: limits: - memory: 2048M + # R-994 (2026-10-18, scratch box 9202, 4,000 synthetic photos + 480 CC0 portrait crops): at 2048M the server + # was OOM-killed TWICE during the import (kernel memcg kill; Docker's OOMKilled stays false in an LXC) and its + # job queue stopped moving. Anon peak 1,596 MB (77 %); with room it peaked at 2,848 MB incl. page cache. + # 3072M puts the anon peak at 52 %. felhom.eu audits/night-2026-10-18/P6/. + memory: 3072M healthcheck: test: ["CMD", "curl", "-sf", "http://127.0.0.1:2283/api/server/ping"] interval: 30s @@ -81,7 +85,9 @@ services: deploy: resources: limits: - memory: 1536M + # R-994 (2026-10-18): anon peak 1,175 MB of 1536M (76 %) during the same import (faces, smart search, OCR); + # 2048M puts it at 57 %. + memory: 2048M healthcheck: test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:3003/ping')"] interval: 30s