Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 May 2024 07:56:39 -0400
From:      "Dan Langille" <dan@langille.org>
To:        "Jim Long" <freebsd-questions@umpquanet.com>, "mike tancsa" <mike@sentex.net>
Cc:        "RW via freebsd-questions" <freebsd-questions@freebsd.org>
Subject:   Re: Unable to limit memory consumption with vfs.zfs.arc_max
Message-ID:  <3d2f7913-b91d-4d00-a9b4-f37cf1032fc0@app.fastmail.com>
In-Reply-To: <ZjVLxKH5LDBZjakR@sfo.umpquanet.com>
References:  <ZjUYzdiz01GgnbX/@sfo.umpquanet.com> <4299f196-1fbe-4590-8668-d023d7044e8d@sentex.net> <ZjVLxKH5LDBZjakR@sfo.umpquanet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 3, 2024, at 4:40 PM, Jim Long wrote:
> 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

This is from FreeBSD 14 on an Dell R730 in the basement (primary purpose, poudriere, and PostgreSQL, and running four FreshPorts nodes):

>From top:

ARC: 34G Total, 14G MFU, 9963M MRU, 22M Anon, 1043M Header, 9268M Other
     18G Compressed, 41G Uncompressed, 2.28:1 Ratio

% grep arc /boot/loader.conf
vfs.zfs.arc_max="36000M"

Looks like the value to set is:

% sysctl -a vfs.zfs.arc | grep max
vfs.zfs.arc.max: 37748736000

Perhaps not a good example, but this might be more appropriate:

% grep vfs.zfs.arc.max /boot/loader.conf
vfs.zfs.arc_max="1200M"

with top showing:

ARC: 1198M Total, 664M MFU, 117M MRU, 3141K Anon, 36M Header, 371M Other
     550M Compressed, 1855M Uncompressed, 3.37:1 Ratio

-- 
  Dan Langille
  dan@langille.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3d2f7913-b91d-4d00-a9b4-f37cf1032fc0>