this post was submitted on 07 Jul 2023
36 points (97.4% liked)

Selfhosted

60723 readers
264 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
 

I've heard a lot of people say your swap should be 2x RAM.. but do I really need 32GB of swap?

you are viewing a single comment's thread
view the rest of the comments
[–] SJ_Zero@lemmy.fbxl.net 5 points 3 years ago (2 children)

There's people who make dumb arguments that go "but what if you run out of ram?" And then someone else says "I have enough ram" and then someone else goes "but what if you run out of ram?"

I have a small amount of swap, a few gigs, and enough memory for the application. Moreover I also have my swappiness set to 0 because I don't want stuff swapped out of memory. If I need more memory I need more memory.

[–] takeda@kbin.social 6 points 3 years ago* (last edited 3 years ago) (1 children)

I'm one of those people.

I will leave you this: https://chrisdown.name/2018/01/02/in-defence-of-swap.html

This is a nice read from a kernel developer responsible for memory management.

[–] dpflug@hachyderm.io 1 points 3 years ago (1 children)

@takeda
Thanks for sharing. Always good to learn more.
@sam @SJ_Zero @selfhosted

Hi there! Looks like you linked to a Lemmy community using an URL instead of its name, which doesn't work well for people on different instances. Try fixing it like this: !selfhosted@lemmy.world

[–] eh@nerdbin.social 4 points 3 years ago (1 children)

Moreover I also have my swappiness set to 0 because I don’t want stuff swapped out of memory. If I need more memory I need more memory.

I don't think swappiness has worked that way for a while now.

https://chrisdown.name/2018/01/02/in-defence-of-swap.html

[–] SJ_Zero@lemmy.fbxl.net 1 points 3 years ago

It does. I can vouch for it's behavior in practice. My servers basically sit with the swap file unused, which isn't the case when I set swappiness to a non-zedo value