Re: Unable to limit memory consumption with vfs.zfs.arc_max

From: Jim Long <freebsd-questions_at_umpquanet.com>
Date: Fri, 03 May 2024 20:40:36 UTC
Thank you, Mike.  It looks like they're both getting set, so sadly no
progress, but I have updated my sysctl.conf to keep up with the times.

Jim

# sysctl -a | grep vfs.*arc.max
vfs.zfs.arc_max: 4294967296
vfs.zfs.arc.max: 4294967296

# grep vfs.*arc.max /etc/sysctl.conf 
#vfs.zfs.arc_max=4294967296
vfs.zfs.arc.max=4294967296



On Fri, May 03, 2024 at 01:08:44PM -0400, mike tancsa wrote:
> On 5/3/2024 1:03 PM, Jim Long wrote:
> > I'm attempting to limit vfs.zfs.arc_max to 4294967296 (4G) in
> > /etc/sysctl:
> > kern.maxvnodes=1000000
> > vfs.zfs.arc_max=4294967296
> >
> > # sysctl vfs.zfs.arc_max
> > vfs.zfs.arc_max: 4294967296
> 
> Not sure if it makes a difference or not, but maybe try
> 
> vfs.zfs.arc.max
> vs
> vfs.zfs.arc_max ?
> 
> vfs.zfs.arc_max: Maximum ARC size in bytes (LEGACY)
> vfs.zfs.arc.max: Maximum ARC size in bytes
> 
>      ---Mike
> 
>