Planning your install
Four decisions to make before you install — how many cameras, what decodes them, what runs inference, where recordings live — and the RAM, CPU and disk a real install used.
This page walks you through the four decisions that determine whether your install works well, so you know what to buy or reuse.
Most Dominevo installs that go badly go badly for the same reason: the hardware was chosen after the software. Ten minutes here saves an afternoon later.
Decision 1 — how many cameras, and at what resolution
Count your cameras and note the resolution and codec of each main stream. Two 1080p H.264 cameras and eight 4K H.265 cameras are very different workloads.
The number that matters most is not camera count but total decoded pixels per second on the machine that decodes them. A 4K camera is roughly four times a 1080p camera.
Decision 2 — what decodes the video
This is the decision people underestimate.
With hardware decode — an Intel integrated GPU exposed as /dev/dri, and
Dominevo configured to use it — decoding is nearly free.
Without it, software decode costs roughly 60% of a CPU for a handful of
4K HEVC cameras. That is why every install path asks you to pass /dev/dri
through.
So:
- If the machine has an Intel integrated GPU, pass
/dev/drithrough. This is the single highest-value thing you can do. - If it does not, size the CPU for software decode, or use the camera's substream for detection so the expensive main stream is only decoded when something is actually watching or recording.
- On a Mac, decode runs on VideoToolbox, which every Mac has. The desktop app uses it with no setup.
Decision 3 — what runs inference
Object detection is a separate workload from decode, and a separate piece of hardware can do it. Dominevo supports several inference backends; which ones are available depends on the machine and on what you pass into the container.
| Hardware | Passed into the container as |
|---|---|
| Intel integrated GPU | /dev/dri |
| Intel NPU | /dev/accel |
| Coral USB Edge TPU | /dev/bus/usb plus the c 189:* rmw device-cgroup rule |
| CPU | nothing — always available |
| Apple Neural Engine, on a Mac | nothing — the desktop app runs on macOS directly, with CoreML |
The Coral pairing is not optional. A Coral USB accelerator re-enumerates when its library initialises, so the device node you passed through is not the one the delegate ends up opening. Without the cgroup rule admitting the whole USB character-device major, the accelerator appears to load and then sheds every frame — which looks like a broken model, not a broken passthrough.
For the full list of engines and how to choose between them, see Inference engines.
You do not have to put the accelerator in the hub. If your Coral is in another machine, run that machine as an agent.
A Mac mini can be an agent or a hub. With Apple silicon it decodes on VideoToolbox and runs detection on the Apple Neural Engine, with no passthrough to get right. The reference install below has a Mac mini agent; its memory and CPU are in the sizing tables. We have not measured a Mac as a hub. See Mac (desktop app).
Decision 4 — where recordings live
In the container, two paths have different jobs:
| Path | What it holds | What it needs |
|---|---|---|
/data | Addons, models, TLS certificates, logs, the database | Not much space. Losing it loses the install — this is the one to back up. |
/recordings | Recordings and event media | Everything. This is the one that grows. |
Rules of thumb that hold regardless of your numbers:
- Put
/recordingson spinning array storage, not on an SSD cache. On a NAS, this means an array share. /recordingsonly receives media ifDOMINEVO_MEDIA_ROOT=/recordingsis set. The mount alone does nothing.- If you run agents, each agent writes its own cameras' media, to its own media root. Storage is planned per machine, not per cluster.
- On a Mac, the app keeps everything, recordings included, in
~/Library/Application Support/@dominevo/desktop/dataunless you add a storage location on another disk. See Where your data lives.
Memory and shared memory
Two things to know about the container:
- The container needs
--pids-limit=8192(pids_limit: 8192in compose). A container's limit counts threads, and Docker's 2048 default was measured refusing thread creation on a busy hub — the symptom is media that quietly stops. - You do not need
--shm-size: Dominevo does not use/dev/shm.
Sizing: what we measured on a real install
These numbers come from one real cluster, measured over a week. It is a large install — far more cameras, analysis and integrations than most homes run. Use it as a reference point, not as a guarantee. If you plan a few cameras on one machine, read Sizing a small install below, which scales these measurements down.
The reference install
| What | On this install |
|---|---|
| Cameras | 28 IP cameras plus a robot vacuum's camera. 23 stream all the time; 4 battery cameras, the video doorbell and the robot connect only on demand. |
| Main streams | 21 are 4K-class (15 H.265, 6 H.264; one of them a dual-lens camera). The rest: one 2560×1440 H.264, two 2304×1296 H.265, one 2048×2048 H.265 doorbell, one 1080p H.264, one 4 MP H.264 and one Wyze H.264. |
| Detection | Every camera set to detect on motion, at 10 frames per second on the main stream. Audio analysis runs all the time on every camera. |
| Enrichments | On every camera: face detection and recognition, license plate detection and reading, and search embeddings (CLIP). Animal, bird and vehicle classifiers on a few cameras, package detection on one. |
| Recording | 13 cameras record continuously (main stream plus the low-quality copy), 10 record events only, 5 do not record. |
| Addons | 39 addon packages, running as 49 processes on the hub. Many are home-automation integrations: the hub also manages about 1,000 non-camera devices. |
The machines:
| Machine | Hardware | Role |
|---|---|---|
| Hub | Intel Core Ultra 7 265K (20 cores), integrated GPU and NPU, 64 GB host RAM, container limited to 32 GB | Owns every camera, records, and runs most addons. Decodes on the integrated GPU and runs detection on the integrated GPU and the NPU. |
| Agent | Intel N100 (4 cores), 16 GB RAM | Takes detection and audio work when the balancer sends it. |
| Agent | Mac mini, Apple M2 (8 cores), 16 GB RAM | Runs detection on Apple's Neural Engine when the balancer sends it. |
The camera counts, stream formats and settings above were read from the hub's own API. The bitrates on this page are averages the stream broker reports for each stream (bytes received divided by time connected).
RAM
| Machine | Typical | Busy (95th percentile) | Highest seen |
|---|---|---|---|
| Hub | 15 GB | 18 GB | 24 GB |
| N100 agent | 3.8 GB | 4.8 GB | 6.1 GB |
| Mac mini agent | 3.3 GB | — | — |
What drives it:
- Every addon is its own process. On this hub, an addon that is installed but mostly idle — a device integration, an export, a notifier — used 130 to 250 MB. Forty of them add up to about 6.5 GB. Uninstall the addons you do not use; it is the cheapest memory you can get back.
- The core server used about 2 GB.
- The parts that scale with cameras: detection about 1.7 GB, the stream broker that holds every camera's streams about 1.2 GB, analytics about 0.7 GB, the database about 0.6 GB.
- An agent runs only a dozen or so processes, so it starts much lower. It grows while it is running detection for cameras.
Leave headroom above the busy figure. The hub's highest reading was a third above its busy figure.
CPU
| Machine | Typical | Busy (95th percentile) | Peak (99th percentile) |
|---|---|---|---|
| Hub (20 cores) | 2.2 cores | 3.6 cores | 4.5 cores |
| N100 agent (4 cores) | 0.6 cores | 1.9 cores | 2.6 cores |
| Mac mini agent (8 cores) | 0.4 cores while running detection for 2 cameras | — | — |
What drives it:
- Decode. These numbers are low because video is decoded on the integrated GPU. Without hardware decode, decoding 4K streams becomes the largest CPU cost by far. See Decision 2.
- Where detection runs. On this hub, detection runs on the integrated GPU and the NPU, so it costs little CPU. Detection on the CPU is far more expensive.
- Detection mode. By default a camera runs detection on motion: only while something moves. A camera set to detect always costs CPU all the time. Every camera on this hub detects on motion.
- Integrations. The busiest processes after the media path were the Home Assistant integration and audio analysis.
Disk for recordings
Recordings dominate disk use. The size depends on the camera's bitrate, and on whether a camera records all the time or only around events.
To estimate one camera: 1 Mbit/s recorded all day is about 10.8 GB a day. Check the bitrate your camera actually sends, then multiply.
What we measured per camera, per day, on the main (high) stream:
| Camera | Recording | Per day |
|---|---|---|
| 4K, H.265, 1.7–4.2 Mbit/s | Continuous | 19–45 GB |
| 4K, H.264, 6–7.4 Mbit/s | Continuous | 65–80 GB |
| A dual-lens 4K, H.265, at 11 Mbit/s | Continuous | 122 GB |
| 4K, quiet scene | Events only | 0.1–0.6 GB |
| A camera facing a busy area | Events only | 16 GB |
By default Dominevo also records a low-quality copy next to the main stream. On this install that copy cost 0.7–3 GB a day per continuous camera.
What drives it:
- Recording mode. Continuous recording costs one or two orders of magnitude more than events only. You choose the mode per camera, and per time of day with schedule bands. See Recording.
- Codec. At the same resolution, H.265 cameras here used about half the space of H.264 cameras.
- Which streams you record. Main stream plus low copy is the default. You can drop one or add the medium stream per camera.
To turn this into a number of days, add up your cameras. This hub's main-stream disk received about 720 GB a day. The main streams of its 13 continuous cameras add up to about 68 Mbit/s, which by the rule above is about 730 GB a day, so continuous recording is nearly all of it. A 4 TB disk therefore holds about six days of main-stream footage. The low copies, on a separate 2 TB disk, hold about three weeks. Dominevo deletes the oldest footage as the disk fills, so a smaller disk means fewer days, not a full disk. See Storage.
Event media — snapshots, clips and crops for events — took another 183 GB here.
Disk for /data
| What | Measured here |
|---|---|
| The database | 1.1 GB |
| Models | 4.5 GB, with every available model installed. One detection model is 5–115 MB; the largest search model is 540 MB. You only download the models you use. |
| Log files | 0.9–1.4 GB a day, kept 30 days by default. This range was measured with file logs at Debug; about four in five lines were debug lines, so the default Info level writes far less. See Logs. |
| Addons and their runtimes | About 1.5 GB |
This hub's /data held about 48 GB, most of it log files written at Debug. Put /data on an
SSD, and lower the log level or the number of days kept if space is tight.
Sizing a small install
Most installs are not the reference install. Here is what 4 or 8 cameras on a single hub, with no agents, should cost. These are estimates scaled down from the large install above, not measurements of a small one.
How we split the cost
We sorted every process on the reference hub into three groups: the parts any install runs once (the fixed baseline), the parts that grow with cameras, and integrations a small install may not have. We then took the camera part, minus each of those processes' idle size, and divided it by the 23 cameras that stream all the time. Memory is each process's resident memory, sampled by the hub over six hours; CPU is the same processes' usage plus the two agents' typical CPU, since a single hub does that work itself.
Fixed baseline, paid once whatever the camera count:
| What | Memory | CPU |
|---|---|---|
| The core server | 2.4–3.4 GB | 0.4–0.5 cores |
| The database | 0.55–0.7 GB | under 0.1 cores |
| The 12 addon processes a camera install needs — stream broker, recorder, detection, pipeline orchestration, analytics, snapshots, one decoder, admin UI, sign-in, network access, notifiers and one camera integration — at their idle size of about 0.16 GB each | about 1.9 GB | about 0.1 cores |
| Detection models, loaded once by the inference workers | about 0.75 GB | — |
| Total | about 5.5–7 GB | about 0.5–0.65 cores |
Per camera, on top of the baseline: about 0.12 GB of memory and about 0.09 cores. That covers the stream broker holding the camera's streams, the camera integration, detection and enrichment during motion, analysis, audio analysis and recording.
Small-install estimates
| Cameras | Memory, typical | CPU, typical | CPU, busy | Disk a day: continuous 4K H.265 | Continuous 4K H.264 | Continuous 1080p H.265 | Events only |
|---|---|---|---|---|---|---|---|
| 4 | 6–7 GB | 0.9–1 cores | about 1.5–1.6 cores | 160–170 GB | 275–285 GB | 43 GB per Mbit/s each camera sends | 0.4–2.4 GB; up to 64 GB if every camera faces a busy area |
| 8 | 6.5–8 GB | 1.2–1.4 cores | about 2–2.3 cores | 320–335 GB | 550–570 GB | 86 GB per Mbit/s each camera sends | 0.8–5 GB; up to 128 GB |
Suggested minimum hardware:
- 4 cameras, detection on motion: a 4-core x86 machine with an Intel
integrated GPU (an N100-class mini PC), 16 GB of RAM,
/dev/dripassed through. - 8 cameras, detection on motion: the same, with 6 or more cores if your CPU is a low-power one, and 16 GB of RAM.
By these numbers, 8 GB of RAM is too tight for Dominevo's default set of addons: the baseline alone is 5.5–7 GB before you leave any headroom.
The assumptions behind the table:
- Hardware decode and an accelerator. Video is decoded on an Intel integrated GPU and detection runs on it or on an NPU, as on the reference hub. Without hardware decode, CPU is far higher; see Decision 2.
- Detection on motion, with the reference install's enrichments: faces, license plates and search on every camera, plus audio analysis.
- Cores are the reference hub's (Core Ultra 7 265K). A low-power CPU does less per core, so leave more headroom on one.
- "Busy" is typical CPU multiplied by the reference hub's own ratio of busy (95th percentile) to typical, 3.6 to 2.2.
- Bitrates are the reference cameras' medians, averaged by the stream broker over two hours and in line with the week-long figures above: 3.6 Mbit/s across the 13 always-on 4K H.265 main streams (the dual-lens camera left out), 6.3 Mbit/s across the 6 4K H.264 ones. Each continuous camera also adds its low-quality copy, 0.7–3 GB a day. No camera here sends 1080p H.265, so that column is the rule of thumb applied to your camera's bitrate.
- Events only uses the per-camera range measured above: 0.1–0.6 GB a day for a quiet scene, up to 16 GB for a busy one.
- The core server is probably smaller on your install. On the reference hub it also manages about 1,000 home-automation devices. We kept its measured size, so the memory estimate leans high.
- Resident memory counts shared memory once per process, which slightly overstates the total.
To turn disk a day into days kept: four continuous 4K H.265 cameras at about 165 GB a day fill a 4 TB disk in about 24 days.
The biggest memory lever on a small install is the addon list. Every addon runs as its own process of 0.13–0.25 GB even when idle, so each integration, export or analysis feature you do not use is memory you can get back by disabling or uninstalling it. Audio analysis is about 0.35 GB and search embeddings about 0.25 GB, for example.
A worked example
Six cameras: four 1080p H.264, two 4K H.265. One mini PC with a recent Intel CPU and integrated graphics, and a 4 TB drive.
- Decode: pass
/dev/drithrough. The 4K HEVC pair is exactly the case that punishes software decode. - Inference: start on the integrated GPU. A Coral is an extra detector with a smaller model, not a faster copy of the iGPU's — see Known limits and Example setups. Use the built-in benchmark addon before you buy anything.
- Storage:
/recordingson the 4 TB drive,/dataon the system disk, both included in whatever backup you already run. - Cluster: none. One box.
Then
- Installation.
- Example setups — an N100 on its own, a Core Ultra hub with an N100 agent, a Coral, an AMD agent, a Mac.
- Weak machines — what to set when the CPU is small.