smallserverdata

joined 2 days ago
[–] smallserverdata@lemmy.ml 2 points 23 hours ago

Agreed, and this cuts deeper than the sizing question.

Most of these are idle event loops waiting on a socket. The memory is mostly runtime and heap that was allocated and never returned, so on a box under pressure a lot of it is reclaimable or swappable and the RSS I am reporting overstates what is genuinely needed at rest. That is another reason the idle number is weak.

Socket activation is the real version of your point. If an app is genuinely request driven then its idle cost can be near zero and the number that matters is what it grows to on first request and whether it ever gives it back. I do not measure the giving-it-back part at all right now, which I should, because that is the difference between a stack that fits in 2 GB and one that slowly does not.

Adding a post-load settle measurement to the harness is cheap so I will do that. I already sample for 10 seconds after load stops and the peak does not come back down much, but I have not run it long enough to say anything solid.

[–] smallserverdata@lemmy.ml 1 points 23 hours ago

This is the most useful comment in the thread and it is the thing I am going to build next.

You are describing the actual failure of what I posted. Hammering an HTTP endpoint with concurrent clients barely moves these apps. Forgejo went 171 to 313 MB under 24 concurrent clients at 4144 req/s, and the Go single binaries moved almost nothing, Caddy 40 to 47, ntfy 27 to 36. That is because the request path is cheap. What costs memory is data, so repo count and size and the working set of the database.

So the harness needs to create state, not traffic. What I plan for Forgejo is to create N repos through the API, push real history into them, create users, then measure at several values of N so you get a curve rather than one number. A curve is also more honest because your answer depends on your N.

Since you would use this: what values are worth reporting? I was thinking 10, 100 and 500 repos. And is repo count the thing that hurts, or is it total repo size, or CI, or concurrent git operations? You and your colleagues run this for real and I do not, so I would rather measure what you would actually check than guess.

[–] smallserverdata@lemmy.ml 1 points 23 hours ago

You and phlaym landed on the same thing and you are both right.

Short answer: the download script had version strings baked into the URLs from memory instead of asking each project's release API for latest, so the whole set froze at one point in time. Forgejo 7.0.9 against a current 15.x, Prometheus 2.53 against 3.13, Gotify 2.6 against 3.0.

I am re-running on current releases with the version resolved at measure time. Full breakdown in my reply to phlaym.

[–] smallserverdata@lemmy.ml 1 points 23 hours ago

You are right and this is the worst error in the post.

I went and resolved what the current releases actually are, against what I benchmarked:

app I measured current
Forgejo 7.0.9 15.x
Prometheus 2.53.2 3.13.2
Gotify 2.6.1 3.0.0
PocketBase 0.22.21 0.39.10
Caddy 2.8.4 2.11.4
ntfy 2.11.0 2.27.0
File Browser 2.31.2 2.63.23
Gitea 1.24.4 1.27.1

Two of those cross a major version. Prometheus 2 to 3 in particular is not a number I can assume carries over.

The cause is dumb and worth stating plainly. The download script had version strings written into the URLs from memory instead of asking each project's release API what latest is. So the whole set froze at roughly one point in time and I never checked. Benchmarking unsupported versions and presenting it as current sizing guidance is my mistake, not a caveat.

Fix is running now. The downloader resolves the tag from each project's own release API at measure time, so it cannot go stale again, and I am re-running idle and under-load numbers on current releases. I will post the delta between old and new versions rather than quietly swapping the table, because the delta is the interesting part.

Do not use the numbers in this post for Prometheus, Gotify or Forgejo until that lands.

[–] smallserverdata@lemmy.ml -3 points 1 day ago

Gatus is a good call. It is close to a controlled comparison against Uptime Kuma, same job, Go vs Node, so whatever the gap is you can mostly attribute it to the runtime rather than the feature set. Adding it.

[–] smallserverdata@lemmy.ml -3 points 1 day ago

Fair question, and it is the main weakness of what I posted.

The floor tells you what you can rule out, not what you need. If Sonarr will not even start under 190 MB, you know a 512 MB box is already tight before you have indexed a single thing. That is useful for elimination and not much else.

Several people in this thread said the same, so I am running the follow-up now: the same apps, but measuring peak RSS while they are being hit by 24 concurrent clients, plus requests/sec so you can see what the memory bought you. Every app gets an idle number and a working number next to it.

If there is a specific workload you would want simulated rather than a generic HTTP hammer, tell me and I will add it.

 

Crosspost of [my post in !selfhosted@lemmy.world](https://lemmy.world/post/50560671).

Every time someone asks "will this run on a 1 GB VPS?" the answer is a guess, or a vendor minimum that was written to be safe rather than accurate. So I measured it.

Same box, same method, every app: install, start it, let it settle for 60s at idle with no clients connected, then sum the RSS of the whole process tree. No Docker overhead in the numbers — these are the apps themselves.

App Idle RSS Version
File Browser 16 MB 2.31.2
Gotify 20 MB 2.6.1
ntfy 27 MB 2.11.0
PocketBase 31 MB 0.22.21
Beszel 39 MB 0.9.1
Caddy 40 MB 2.8.4
Navidrome 47 MB 0.63.2
Syncthing 57 MB 2.1.3
Prometheus 70 MB 2.53.2
MinIO 132 MB 2024 release
Uptime Kuma 136 MB 2.5.0
Gitea 158 MB 1.24.4
Grafana 172 MB 11.2.0
Forgejo 173 MB 7.0.9
Prowlarr 188 MB 2.5.2.5491
code-server 191 MB 4.131.0
Lidarr 191 MB 3.1.0.4875
Radarr 192 MB 6.3.0.10514
Sonarr 193 MB 4.0.19.2979

Things I did not expect:

  • *The \arr apps are all the same size. Sonarr, Radarr, Lidarr and Prowlarr land within 5 MB of each other (188–193 MB). That is not a coincidence and it is not the app — it is the .NET runtime setting the floor. Which also means the folklore of "budget ~2 GB for an \*arr stack" is roughly right, and I say that as someone who started this expecting to debunk it.
  • Go binaries are absurdly cheap. File Browser, Gotify, ntfy, PocketBase, Caddy and Navidrome together idle at about 181 MB — less than one Sonarr.
  • Grafana's 512 MB minimum is honest. At 172 MB idle it has real headroom needs once dashboards start querying. Not every vendor minimum is padding.
  • Node apps cost you. Uptime Kuma at 136 MB is ~8x File Browser for a job that is not 8x harder.

Caveats, because they matter: this is idle RSS, not what you need under load. Databases, media transcoding and indexing all blow past these numbers. Treat it as the floor, not the budget. My own rule of thumb from this: sum the idle figures, add ~300 MB for the OS, then add 30% headroom — that has matched what actually fits so far.

Raw data is free under CC BY 4.0 (CSV and JSON), plus per-app pages with the exact commands used so you can reproduce or dispute any number:

https://smeltworks.com/smallserver/

CSV direct: https://smeltworks.com/smallserver/smallserver-dataset.csv

Happy to take corrections — if a number looks wrong for your setup I would rather fix it than defend it. Also taking requests for what to measure next; Jellyfin and Immich are the two I keep getting asked for.