Doi have enough Memory?

gwaitsi

Patron
Joined
May 18, 2020
Messages
243
My memory stats show

0.5GiB free
ZFS Cache 10.9GiB
Services 4.4GiB

does ZFS need that much cache? if i add services, will it take ram from the cache and free ?
 

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
That is normal, over the time all of the free memory will be used for ZFS cache.
Why should it left free, if can be used for something useful.

Linux pretty much does the same:
Code:
~# free -m
              total        used        free      shared  buff/cache   available
Mem:          63001        9121       11934         373       41944       52993
Swap:         31996           0       31996
 

gwaitsi

Patron
Joined
May 18, 2020
Messages
243
presumably, ZFS requires some minimum amount of cache to be effective. At what sort of point, should i be looking at more memory for example
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Look at your ARC stats, if your hit rate is low, you could benefit from more RAM.

arc_summary.py
 

gwaitsi

Patron
Joined
May 18, 2020
Messages
243
Look at your ARC stats, if your hit rate is low, you could benefit from more RAM.

arc_summary.py
what is the command i would have to run from the shell pls
 

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
The command is exactly what @sretalla wrote.

You can also view the Arc Hit Ratio via the GUI: Reporting->ZFS
(But the command offers much more info)
 

gwaitsi

Patron
Joined
May 18, 2020
Messages
243
cache hit 94.3%, miss 5.7%, actual hit 94% - so its all pretty good. no
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
cache hit 94.3%, miss 5.7%, actual hit 94% - so its all pretty good
Obviously a small margin for improvement, but generally, your use seems to land most of what you're seeking in RAM.

If you run more services/jails/VMs, you might want to review the numbers again and see if the reduced ARC is having a big impact.
 
Top