Selfhosted
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:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
-
No trolling.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
view the rest of the comments
1gb swap is way too small...
I usually setup swap to be 2x the total ram size. So, 32gb swap in your case.
Nothing wrong here, seems normal. With such little swap.
Actually Linux kernel works better with swap, the more the better. It will lalso perform better than zero swap. Counterintuitive indeed, but that's how it works.
If you don't want swap, use zram.
32GB of swap is huge, I wouldn't bother with that much unless you're suspending to disk regularly. I personally just suspend to RAM and call it a day.
On my laptop with 24GB RAM, I have about 20GB swap, which matches the system memory (rest is dedicated to my APU). On my desktop with 16GB RAM, I have 16GB swap, because that's what my OS picked (I would otherwise go with 10GB). On both systems, I usually only have 2-3GB in swap anyway.
On my server, I have no swap at all and 16GB RAM (usually use <5GB at any time). I think swap is overrated and overused. If your swap is being used a lot, buy more RAM, it's cheap and a much better experience.
I though that the recommended swap partition was to double until 16 GB? So at 32GB of ram use 32GB of swap?
You should just maintain awareness of how much you're using. I think 32gb ram + 32gb swap is ridiculous, frankly. Fedora by default sets zram up to 8gb, with no other swap space configured. Works very well that way.
Personally I'd also probably not ever set up more than 16gb of swap space. If I'm somehow hitting that limit it's because I actually just need to buy more RAM.
+1 for
zramswap
, especially if you're tight on RAM but have a few CPU cycles to spare.Yeah I was thinking of adding swap as my other systems have lots more.
This is just the default on yunohost.