How Much RAM Does a Self-Hosted Stack Actually Need?
Why this matters
The number people get wrong when they size a machine for the services they run is memory, and the reason they get it wrong is that the services themselves are almost free. A web dashboard that serves a static page costs one megabyte. A feed reader costs twelve. It is tempting to conclude that everything fits, buy the cheapest box, and then spend a year wondering why the site is slow at four in the afternoon.
This is the arithmetic from the machine that serves this site, measured rather than estimated.
What I tested on
- OS: OpenCloudOS 9.6 (kernel 6.6.119-49.23.oc9.x86_64)
- CPU: AMD EPYC 9754 — 2 vCPU, one core with two threads
- RAM: 3.5 GB, with 1 GB of swap alongside
- Disk: 60 GB xfs, one volume, no mirror
- Runtime: Docker 29.9.2 with Compose v5.6.1

What the services actually cost
Five containers, running in production, measured from the host rather than from a vendor’s benchmark:

| Service | Memory | What it is |
|---|---|---|
| homer | 1.07 MB | a static index of links |
| miniflux | 12.3 MB | RSS reader |
| postgres | 37.5 MB | the database behind miniflux and linkding |
| searxng | 177.1 MB | a metasearch engine |
| linkding | 203.8 MB | a bookmark archiver with full-text search |
Total: 432 MB. Add Nginx, a WireGuard tunnel and the operating system’s own footprint and you are at roughly 940 MB of the 3.5 GB — which is what free -h reports on a quiet day, most of the remainder being page cache.
Look at the spread again. Three of the five services cost less than the search engine. A metasearch engine that fans out to dozens of upstream engines at once, and a bookmark archiver that indexes the readable text of every page you save, are each two orders of magnitude heavier than a link list. That is the shape of the whole problem: the cheap services are cheap, and the expensive ones are expensive for reasons that have nothing to do with how many of them you have.
Add two DNS blockers to the same box and the picture barely moves — Pi-hole’s resolver came in at 7 MB and AdGuard Home at 45 MB, both measured on this host.
Where the memory actually goes
The services are the cheap part. On this machine, 937 MB is in use and 2.1 GB is sitting in buff/cache, and that cache is what makes the difference between fast and slow.
Cache is what buys you speed. Every request that hits the page cache is answered from memory. Every request that misses goes to the disk, and on a small box that latency is visible. The 4% CPU figure on a quiet day tells you the processor is idle; it does not tell you the disk is idle, and it is the disk that people notice.
Swap is the emergency exit, not the plan. This machine has 1 GB of swap and uses none of it. A box that is regularly swapping is a box that has already run out of memory — it is a symptom, not a setting. If you find yourself raising swap, the fix is more RAM.
Memory pressure is silent. The kernel does not announce that it is evicting page cache. What you see is a site that was fine yesterday being slow today, with the server’s own metrics showing plenty of free memory. Which is why the number to watch is not free but the ratio of cache to total, and why the fix is never “restart the service”.
Sizing it
2 GB runs a static site and a couple of containers. It is a fine machine for a blog with a feed reader on it, and it will run out of cache rather than memory.
4 GB is the sensible floor for a dozen small services. It leaves room for the page cache to do its job, which is the difference between a machine that feels quick and one that does not.
8 GB is where the arithmetic changes. Beyond this point you are not sizing the services, you are sizing the cache, and the extra memory is going into making reads fast rather than into running more processes. It is also the point at which a virtualisation layer stops being a memory problem and becomes a reasonable option — which is the subject of the hypervisor comparison.
16 GB is not about the services. It is about what you have not built yet.
Disk
Size it at five times what the services need at rest, and do it before you need to.

Images accumulate. Database write-ahead logs accumulate. Logs that nobody rotates accumulate, and they accumulate quietly enough that the first sign is a full disk. Backups staged on the same disk as the thing they are backing up — which is what a lot of people end up doing before they get round to an offsite copy — accumulate the fastest of all.
A single volume is also a single point of failure. On this machine that is acceptable for one reason only: nothing here is the only copy of anything. The site is a static build that can be rebuilt from source, the database is backed up offsite, and every container image can be pulled again. That is the same rule that makes the backup guide work.
What to buy
Memory before cores. This machine runs one physical core with two threads and serves a static site plus five services without noticing. A second core would change nothing you can measure; another 4 GB of RAM would change the page cache ratio, which is the thing you can.
An SSD, not a spinning disk. Not for the peak throughput — for the tail. The moment the cache has been evicted, the difference between memory and a disk is the difference between a fast response and a visible stall.
A single large disk over two small ones, if you can only afford one. Two disks means a mirror, a mirror means a rebuild, and a rebuild is a project. One disk with a nightly backup is a better arrangement than two disks you have not set up yet.
Skip the bells. The parts of a home server that do not pay for themselves are the ones that make it feel like a product: a display, a case with a window, a fan controller. Nothing in this post needed one.
Verdict
The arithmetic is friendlier than the marketing suggests. Twelve small services fit in 2 GB, and the whole stack behind this site costs under half a gigabyte of memory.
The two numbers that decide everything are not in that table. They are the page cache, which wants as much memory as you can give it, and the disk, which wants to be five times larger than you think. Buy memory before you buy cores, and buy the disk you will not have to replace.

References
FAQ
How much RAM do I need for a home server?
Four gigabytes runs a dozen small services comfortably, and two is enough for a static site with a couple of containers. The jump that matters is eight gigabytes, because that is where the page cache stops competing with the services for what is left.
Is CPU or RAM the bottleneck on a small box?
RAM, almost always. A modern low-power core will idle at a few percent while serving a dozen containers. The thing that makes a small box feel slow is memory pressure — the kernel evicting page cache, and every request going back to the disk.
How big should the disk be?
Five times what the services need at rest. Images, database write-ahead logs, backups staged on the same disk, and logs that nobody rotates all add up, and a full disk on a single-volume machine takes everything down at once.
Do I need an SSD?
Yes. The difference is not the peak speed, it is the tail latency when the page cache has been evicted, which is exactly when a small box needs help.