SOLVED ZFS cache consuming nearly 40Gb of RAM

Status
Not open for further replies.

KevDog

Patron
Joined
Nov 26, 2016
Messages
462
I have a question regarding zfs cache. It's nearly consuming 40Gb of RAM and bringing the system to a crawl. I wasn't aware ZFS cache consumed this much memory. Is there a way to limit the amount of RAM it requires since its basically making the system unusable.

I have the following tunable:
vfs.zfs.arc_max
61632000000
sysctl
Generated by autotune
yes

Screen Shot 2020-05-05 at 8.06.52 AM.png
 
Last edited:

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
My understanding was the ZFS cache always uses the memory which is not used by applications.
So ideally there should be no free memory. Of course applications always have higher priority as cache.
I think there is something else wrong.
 

KevDog

Patron
Joined
Nov 26, 2016
Messages
462
@Fredda

You may be right -- I'm running FreeNAS 11.3U1. I updated to the release last week and things worked very well for the first week. Now my Middleware GUI is a crawl. The system is running really slow. I'm not sure what's going on or even where to look. I've rebooted the installation and still the same experience.
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
It should not be bringing the system to a crawl, ZFS is designed to make use of all unused memory as ARC, which should make your disk I/O faster. When the userland calls for more memory, ZFS will release appropriate amounts of ARC. About the only time this seems to be a problem is when userland suddenly allocates gobs of memory and the system might get a little bogged down while ZFS has to do a ton of ARC evictions, and my recollection is that they did some stuff to "fix" even that.

I'm not saying your system isn't bogged down, but it's not likely to be due to ARC.
 

KevDog

Patron
Joined
Nov 26, 2016
Messages
462
The middleware is running at a crawl and the ssh connections keep breaking. I'm on a wired LAN. More and more its sounding potentially like a network issue (possibly).
 

HoneyBadger

actually does care
Administrator
Moderator
iXsystems
Joined
Feb 6, 2014
Messages
5,112
I admit I haven't played much with 11.3 but seeing "Services" at 23GB of RAM tells me something is very wrong from that perspective, that's nearly triple the recommended minimum RAM for FreeNAS. 11.3U2 is out and had a pretty long list of bugs squashed.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
You should probably also remove everything that auto tune has set. Usually auto tune is not something people use.
 

KevDog

Patron
Joined
Nov 26, 2016
Messages
462
Honestly -- I have no idea what's going on -- all my ssh connections now to the VM's running within freenas now become broken after about 1 minute. The middleware like freezes for about a minute or two and then starts working. It's really hard to use the system now.
 

KevDog

Patron
Joined
Nov 26, 2016
Messages
462
Honestly -- I have no idea what's going on -- all my ssh connections now to the VM's running within freenas now become broken after about 1 minute. The middleware like freezes for about a minute or two and then starts working. It's really hard to use the system now.

Thanks for your recommendations -- I'm think I have this pinned to a network issue rather than a RAM issue. I'm going to mark this a solved for now.
 

Apollo

Wizard
Joined
Jun 13, 2013
Messages
1,458
Are you playing with LAGG?
 

KevDog

Patron
Joined
Nov 26, 2016
Messages
462
Are you playing with LAGG?

No I was playing with OpenVPN and although the VPN was technically down -- the network adapters the vpn created were not completely destroyed. I believe this may have been the cause of my problems.
 
Status
Not open for further replies.
Top