It's bad form to just say "set this variable to this value" without any explanation about what that variable does and why that value helped.
Your configuration may not work or may be detrimental for others.
It's bad form to just say "set this variable to this value" without any explanation about what that variable does and why that value helped.
Your configuration may not work or may be detrimental for others.
If you click the source linked, you can read through all the details.
The linked source also doesn’t explain what the env variable actually does or why it fixes anything.
PS: Reddit doesn't allow edit post titles, needed to repost
But this is Lemmy.
OP didn't update their repost bot to understand what it's reposting.
What does it do?
The value of this tunable is the minimum size (in bytes) of the top-most, releasable chunk in an arena that will trigger a system call in order to return memory to the system from that arena.
https://www.gnu.org/software/libc/manual/html_node/Memory-Allocation-Tunables.html
MALLOC_MMAP_THRESHOLD_ is an environment variable that sets the size threshold for using the mmap system call to allocate memory instead of using the heap.
mmap is used.What's the default value?
It could depend on your distro, official packaging (docker,Debian,Fedora) have MALLOC_TRIM_THRESHOLD_=131072 , but different distros could have (or not) ship with different settings.
Official settings for systemd https://github.com/jellyfin/jellyfin-packaging/blob/master/debian/conf/jellyfin
Thank you for posting this! I've been increasing the memory for my VM over and over and it was using 24GB RAM + 4GB swap. Hopefully this will let me reclaim some.
I've been having memory leak issues with my Jellyfin container, so I fired it up to see if it has a MALLOC variable set and it immediately crashed my server. Now waiting for the OOM killer to do its thing.
How well does jellyfin work on a rpi? How many simultaneous 1080p users with AVC\ACC media can it do? Active cooling?
Didn't try but depends on which RPI. 4? 5?
Also depends on the storage medium (SD? SSD?), assuming there's no transcoding.
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.
No spam.
Posts are to be related to self-hosting.
Don't duplicate the full text of your blog or readme if you're providing a link.
Submission headline should match the article title.
No trolling.
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.
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!