Ollama next to n8n on a CPU-only VPS: measured speed and RAM
- Hardware
- AMD EPYC KVM VPS, 8 vCPU, 23.5 GB RAM, shared host
- Models & engines
- Ollama on CPU with llama3.2:1b (Q8_0), llama3.2:3b (Q4_K_M) and llama3.1:8b (Q4_K_M)
- Key gotcha
- Going from 4 to 8 vCPU barely helped the 3B and 8B models; on CPU, generation is bound by memory bandwidth, not core count. Only the 1B model scaled (+42%)
What they built
ricco020 wanted straight answers to two questions people keep asking on forums: how much RAM a self-hosted n8n really uses, and how fast Ollama is on a plain CPU VPS with no GPU. Instead of repeating vendor minimums, they measured both on one VPS and kept the raw numbers.
The test box was an AMD EPYC KVM VPS with 8 vCPU and 23.5 GB RAM on a shared host. Each Ollama model was run three times at 4 and 8 vCPU, and n8n ran in Docker with its default SQLite database while RAM was sampled with ps.
Setup
- AMD EPYC KVM VPS, 8 vCPU, 23.5 GB RAM, shared host
- Ollama on CPU with llama3.2:1b (Q8_0), llama3.2:3b (Q4_K_M) and llama3.1:8b (Q4_K_M)
- n8n in Docker with the default SQLite database
How it works
- Each model and vCPU combination was run three times; the median generation speed is reported with min and max, plus prompt speed, cold load time and resident memory
- n8n was measured idle, under 100 sequential webhooks, 1,000 webhooks at 10 concurrent, and 200 heavy Code nodes at 10 concurrent
Results & numbers
- llama3.2:1b: 27.7 tok/s at 4 vCPU and 39.3 tok/s at 8 vCPU, 1.5 GB resident
- llama3.2:3b: about 21 tok/s at both 4 and 8 vCPU, 2.5 GB resident
- llama3.1:8b: 9.0 tok/s at 4 vCPU and 10.2 tok/s at 8 vCPU, 5.4 GB resident, about 12 s cold load
- n8n used 555 MB idle and peaked at 780 MB under 1,000 webhooks at 10 concurrent, with zero errors across about 1,310 executions
Gotchas
- Going from 4 to 8 vCPU barely helped 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, so it will not fit next to anything else on a 4 GB VPS
- The host's load average was already around 3.4 to 4.2 before the runs, so the author treats the figures as a realistic floor, not a lab best case
- 1 GB of RAM is too tight for n8n once the OS and Docker are counted; 2 GB is the realistic minimum
“On CPU, generation is bound by memory bandwidth, not core count.”— ricco020
Do it yourself
- Pick a VPS with enough RAM for the model plus everything beside it (about 8 GB if you run an 8B model with n8n or a web UI)
- Install Ollama and pull a 3B model for chat-like use and an 8B model for background jobs
- Run n8n in Docker with the default SQLite database for a small instance
- Measure on your own box: run each model a few times and compare generation speed and resident memory before sizing up
Similar setups
Serving a local model on Kubernetes on your own laptop with kind and Ollama
Alex Jones wrote a tested guide to running Ollama in a kind cluster on CPU, Intel Arc, NVIDIA and AMD, then using the served model with k8sgpt to explain cluster failures without any data leaving the machine.
A one-script Ubuntu install that stands up Ollama and Open WebUI as a private ChatGPT in the browser
HendGrow’s guide 50 ships a Bash installer that detects NVIDIA GPU or CPU, deploys pinned Ollama and Open WebUI with Docker Compose on Ubuntu 24.04, pulls a small starter model, and opens the UI on port 3000.
Self-hosted AI email assistant on Linux (n8n + Ollama)
Classifies IMAP mail with llama3.1:8b, routes it, saves reply drafts and extracts action items as JSON. Reports 85-95% classification accuracy.
Finding why a local Ollama RAG bot ignored its instructions: silent num_ctx truncation
A developer's local RAG bot on llama3.1:8b skipped citations and guessed answers because Ollama silently cut prompts to a 2048-token window; in a 500-question test 312 prompts were truncated, and setting num_ctx to 8192 lifted grounded accuracy from 61% to 84%.