Jump to content

Cached memory?


Recommended Posts

I currently have 12Gb ram in my system (6.4.1) and in the system stats dashboard it shows that most of the memory is cached, approx. 10Gb with 1.5Gb used leaving about 600Mb free. Just wanting to understand the cached memory, is this apps and system running in memory and therefore a good thing? The system is fairly idle right now and I have 5 Dockers running but not really active, Plex, Plexpy, Sonarr, Radarr, NZBGet. Should I look at increasing RAM? Any benefit from an additional 4Gb to increase the free RAM?

Link to comment

Cached RAM just means that the OS will keep recently used file data in memory in case some program will request the same data again.

 

The OS always strives to use as much of the available (but unused) RAM for cache so as not to waste excess RAM in the machine.


So adding 4 GB more RAM will not increase the free RAM. It will just increase the amount of RAM used for caching of file data. Your 600 MB of free RAM is just the result of the actual memory consumption jumping a bit up/down as different processes runs. And when memory is released it ends up as free - until some other program needs it or until the OS will repurpose it as cache.

 

If a program needs more than your 600 MB of memory, then the OS will instantly throw away some cached data and hand over to the program. So you aren't lacking RAM in the system.

  • Thanks 1
Link to comment
  • 1 year later...

In case anyone wanted to know.  I was worried about unraid using up all the ram for caching.  It kept the cache for over 10 hours until I stopped the array and restarted it.  Once I did that, I captured the graph showing that unraid removed most of the cache in about 8 seconds.

did this on unraid version 6.8.0-rc7

1004142796_2019-12-1113_38_45-Tower_Stats.jpg.9ac4ecec0c5b6c0c682e5cf601969311.jpg

  • Thanks 1
Link to comment
  • 9 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...