this post was submitted on 26 Aug 2021
18 points (100.0% liked)
Lemmy
12718 readers
52 users here now
Everything about Lemmy; bugs, gripes, praises, and advocacy.
For discussion about the lemmy.ml instance, go to [email protected].
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Mastodon will struggle to live on a 1GB RAM system, like most cheap VPS. I host one instance (single-user though) on a ROCK64 with 4GB of RAM, and it takes around 1GB. Lemmy on the other hand takes right around 100MB of RAM, also single-user instance. I guess Lemmy's developers prefer to stay on the safe side and encourage people to make use of federation as much as possible.
Lemmy is written in Rust while Mastodon is written in Ruby, this likely explains the differences in RAM usage.
Maybe CPU/Disk will scale worse on lemmy because each page loads a lot of comments, while on Mastodon you rarely load more than a few toots at once.
I think you're right, Mastodon's CPU/RAM usage seems to be always the same. On Lemmy I can't really try yet, as federation doesn't seem to work for me. Once I can get content from other instances I'll have more information.
I used to host a mastodon instance for just one user, me. It really struggled unfortunately in both speed and space requirements.
I wish they had an option to block all bots from the platform. I can block individuals and instances, but bots would still pop up like crazy.
From lemmy.ca:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
lemmy 17645 0.3 0.3 672368 98876 ? Ssl Aug03 154:51 node dist/js/server.js
lemmy 20959 0.4 0.6 4127676 210048 ? Ssl Aug03 169:59 /home/lemmy/lemmy/target/release/lemmy_server
pictrs 32164 0.0 11.4 10599856 3769764 ? Ssl Jul28 18:50 /home/lemmy/pictrs/pict-rs/pict-rs
iframely 20977 0.0 0.1 901704 55368 ? Ssl Jul08 3:25 iframely
Make of it what you will. :-)
WOW. 100MB is tiny. but Lemmy requires postgress, and a quick google search says Postgres requires minimum of 2 GB or RAM.
You can use RDS and not host it within the same server.
I must say that for now there is no content on it, it's a fresh instance, with federation enabled but still not getting content from others. Once I can start to sync with others, I'll see if there is any change.