I wanted a straight answer to two questions people keep asking on forums: how much RAM does a self-hosted n8n really use, and how fast is Ollama on a plain CPU VPS with no GPU. Most "requirements" pages repeat the vendor minimums. So I measured both on one VPS and kept the raw numbers.
Test box: AMD EPYC KVM VPS, 8 vCPU, 23.5 GB RAM, shared host (load average was already around 3.4 to 4.2 before the Ollama runs, so treat the figures as a realistic floor, not a lab best case).
Ollama on CPU: tokens per second by model
Three runs per cell, median shown with min and max. Generation speed is what you feel when the answer streams.
| Model | Quant | vCPU | Generation tok/s (median, min-max) | Prompt tok/s | Cold load | RSS |
|---|---|---|---|---|---|---|
| llama3.2:1b | Q8_0 | 4 | 27.7 (27.0-29.5) | 1721 | 3.2 s | 1.5 GB |
| llama3.2:1b | Q8_0 | 8 | 39.3 (37.0-39.4) | 2525 | 3.1 s | 1.5 GB |
| llama3.2:3b | Q4_K_M | 4 | 21.1 (17.7-21.8) | 1134 | 6.0 s | 2.5 GB |
| llama3.2:3b | Q4_K_M | 8 | 20.8 (17.7-27.1) | 1123 | 6.0 s | 2.5 GB |
| llama3.1:8b | Q4_K_M | 4 | 9.0 (8.6-9.3) | 446 | 12.4 s | 5.4 GB |
| llama3.1:8b | Q4_K_M | 8 | 10.2 (8.2-12.5) | 437 | 11.9 s | 5.4 GB |
What surprised me:
- Going from 4 to 8 vCPU barely helps the 3B and 8B models. On CPU, generation is bound by memory bandwidth, not core count. Only the 1B model scaled (+42 %).
- An 8B model needs about 5.4 GB resident. On a 4 GB VPS it will not fit next to anything else. Plan 8 GB if you also run a web UI or n8n beside it.
- Around 9 to 10 tok/s for 8B is usable for background jobs (summaries, classification in a workflow), slow for chat. 3B at about 21 tok/s feels fine for chat.
Full write-up with the per-model VPS sizing table and the exact commands to reproduce: Ollama on a VPS, measured.
n8n self-hosted: RAM idle and under load
Same VPS, n8n in Docker with the default SQLite database, measured with ps sampling during each run.
| Scenario | Throughput | Latency | Peak RAM |
|---|---|---|---|
| Idle, 37 s after start | n/a | n/a | 555 MB (main 418 + task runner 137) |
| 100 webhooks, sequential | 13.5 req/s | p50 82 ms | 656 MB |
| 1,000 webhooks, 10 concurrent | 26.5 req/s | p50 351 ms, p95 565 ms | 780 MB |
| 200 heavy Code nodes, 10 concurrent | 33 req/s | n/a | 763 MB |
Zero errors across about 1,310 executions. The SQLite file was 7.6 MB plus a 4 MB WAL afterwards. The image pull and install took 200 s with a warm cache and about 2.9 GB of disk.
Takeaway: 1 GB of RAM is too tight once the OS and Docker are counted, 2 GB is the realistic minimum for a small n8n instance, and 4 GB leaves room for Postgres or a reverse proxy. Details and the load script: n8n self-hosted requirements, measured.
Raw data
The CSV and JSON results plus the load script are public in this GitLab repository, so you can rerun them on your own box and compare. If your numbers differ a lot on a similar VPS, I would like to hear what CPU and host you used.