this post was submitted on 15 Feb 2024
65 points (97.1% liked)

Selfhosted

61265 readers
104 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

Here is the thing, I have 4 RPi’s of different generations (all the way from Zero W to 4B 4GB) that I use to host services at home for personal use.

Lately, I have realized I am running out of RAM to host more services, not to mention not enough switch ports to connect to.

Now I know the obvious solution is to get a more powerful setup (maybe a thin client) but electricity isn’t cheap and I am not particularly in the best shape financially speaking to shell out $300+ on a decent client to host my services.

Any suggestions?

you are viewing a single comment's thread
view the rest of the comments
[–] bastion@feddit.nl 2 points 2 years ago* (last edited 2 years ago) (1 children)

There are two types of computer memory that fundamentally matter on the consumer level:

  • memory, as in RAM, which is like short-term memory in people, or how much you can think about at once. It is blanked when the computer restarts. It is very fast.
  • drive storage, as in hdd or ssd space. This is like long-term memory or overall knowledge capacity, and persists across boots. It is comparatively slow.

Solid state disk storage, and in particular some SD cards, can be vulnerable to excessive writes.

Ram, however, is not impacted by the number of uses.

A swap file works like this: When memory gets full, you move the least-used parts onto the swap file.

A normal swapfile is on-disk. When memory gets close to full, the system moves some onto the (much much slower, like 10-1000x) on-disk swapfile.

Zram swap creates a compressed swapfile out of your free memory. A file in linux does not have to be on a hard disk/ssd, it just has to look and quack like a file. When memory gets close to full, the system copies some onto the in-memory compressed file. This is very fast, but uses some cpu. It doesn't touch your drive storage.

[–] admin@lemmy.mohammadodeh.com 2 points 2 years ago

That is a great explanation. It makes perfect sense to me know. Thank you