2024-02-28, 05:52 PM
(This post was last modified: 2024-02-28, 05:56 PM by Efficient_Good_5784. Edited 2 times in total.)
(2024-02-28, 01:22 PM)duplikk Wrote: I would like to use the memory for something else.As the @TheDreadPirate states, cached memory will be the first to be overwritten when a new program needs to use some ram. You're GUI screenshot doesn't show what is used and what is cached.
Take a look at this screenshot of my Synology's ram usage: https://imgur.com/fkl7Y4j
You can see that despite only having 150MB free out of 8GB, my ram utilization is only 13%.
I have 6.5GB used just for caching purposes by either the OS or applications running on the NAS.
If it wasn't for this cached data, the NAS would need to keep loading all that data from the slow HDDs each time.
The cached data doesn't count as used data (towards the utilization) since it's there with the expectation that it's the first to go when new programs need ram.
Windows even does this too. Look at this picture of my Windows computer's RAM being used at 37% full: https://imgur.com/UIxxr46
You'll notice that despite 20.4GB being used as cache (out of the 32GB), I still have over 20GB free to use for anything else.
Furthermore, this screenshot shows there's no free memory at all in the memory composition bar (memory that has nothing written to it). It's all either used or cached, but Windows doesn't say I'm out of memory.
(2024-02-28, 01:22 PM)duplikk Wrote: "Unusued memory is wasted memory" is a terrible mantra. Use what you need instead of making unoptimized software. Plex uses a fraction of what Jellyfin does, and is frankly still more responsive.Jellyfin already does. If you find a memory leak (non-cache memory not being released after it's no longer needed), that's a bug and should be reported.
A lot of people don't understand that memory can be used for caching purposes, and with some GUIs not showing you what part of RAM is cached data, people tend to think high RAM utilization is bad.
You payed for the ram, why not use it all? It's literally in the name of the hardware, Random Access Memory.
It's meant to collect random bits of data to make data processing faster for the CPU. If it wasn't for RAM, you would have to rely on the slower disks to reload commonly used data.