smallserverdata

joined 2 weeks ago
[–] smallserverdata@lemmy.ml 1 points 2 weeks 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 2 weeks 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 2 weeks 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 -1 points 2 weeks ago (1 children)

Taking these in order.

Point 3 first, because you are right and I was sloppy. There is no resident .NET layer sitting under the *arr apps. What I actually observed is four apps landing within 5 MB of each other, and the cause is that each process loads its own copy of the same runtime assemblies, not that something shared is running underneath. My wording implied a shared layer that does not exist. I will correct that on the site.

Point 2: the exact binary, flags and health check for each app are on its page on the site, but you are right that none of that was in the post, and the post is what most people read. Short version: every app is the upstream release binary run directly, no distro packages, no containers, so the numbers exclude container overhead.

Point 1: fair, and it undercuts how I framed the sizing rule. On a provider that allows bursting, a floor matters less than I implied.

Point 4 is the useful one for me. 700 MB for a whole *arr stack under real use is a much better number than anything I published, and it comes from someone who has watched it since the mono days. If you have a rough split per app I will put it up as a reported real-world figure alongside my measured idle ones, credited to you.

Point 5: agreed, and it is what I am fixing right now.

[–] smallserverdata@lemmy.ml -4 points 2 weeks ago

That is a legitimate hit and the beginner framing makes it worse, agreed. A floor shown to someone who does not know it is a floor gets read as a budget, and then they buy the 1 GB box.

Two things I am changing. First, I am measuring peak RSS under concurrent load now so no app is ever listed with only an idle figure. Second, the site framing goes, because "here is the floor, good luck" is exactly the rest-of-the-owl problem you are describing.

If you have a multiplier you actually trust for the gap between idle and real usage, I would rather publish yours with credit than invent one.

[–] smallserverdata@lemmy.ml -1 points 2 weeks ago (2 children)

You are right, and the 1070 MiB vs 173 MB gap is exactly the thing that makes my number misleading.

Mine is a cold instance, no repos, no CI, no users, sampled 60 seconds after start. Yours is doing real work with real repo data cached. So the honest reading of my figure is "Forgejo will not start in less than 173 MB", not "Forgejo runs in 173 MB". I framed it as the second thing and I should not have.

I am re-running the whole set under concurrent load now to publish a second column.

If you are willing: roughly how many repos and how many users hit your instance? I would rather put a real-world datapoint next to the synthetic one than keep publishing only the synthetic one.

[–] smallserverdata@lemmy.ml -1 points 2 weeks 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.