From nobody Tue Jul 16 09:35:22 2024 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WNYpV625yz5QxKQ for ; Tue, 16 Jul 2024 09:35:46 +0000 (UTC) (envelope-from ax61@disroot.org) Received: from layka.disroot.org (layka.disroot.org [178.21.23.139]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WNYpV2bnkz54l4 for ; Tue, 16 Jul 2024 09:35:46 +0000 (UTC) (envelope-from ax61@disroot.org) Authentication-Results: mx1.freebsd.org; none Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id C724740E40; Tue, 16 Jul 2024 11:35:37 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KUATB_aXUNhQ; Tue, 16 Jul 2024 11:35:36 +0200 (CEST) Content-Type: multipart/alternative; boundary=Apple-Mail-6430E99A-084F-4EF6-8A2C-7A8C5DC0E2E8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1721122536; bh=fp0We1K/toQQU7mDJoxGV4+OJgHvlW4MhwBsar/GTfA=; h=From:Subject:Date:References:Cc:In-Reply-To:To; b=V3kvwMyqkKMzIfeuqB5OZtYqBlHReCbp6kyFl3CQ28e2/fzbIhwTQMHPIWFRKaz1G 5qkMga5yevF+ItzgbuL+ytXEAM7oLnv0Sap6SJZ0y/yN8hGJfaVoqr5FJ88PptoINW GkNdwwlkQnZtsJ2tEFkfdNFrt5AxjOPaBoZgGCln5tGKUvoncpIDJPfpUZWRl2QSKH jO6ybKw9Na/vlJFKnX5ibk5JVKMzjrORBDX6RL44Z+jEOuo/PX/X6odldX8e5tJAqh C4cTvdh8SXi6qsr7YixpxaxqHD1dqrSTk2iy6rapCDFfCjIAV498wbfdqab4XyV3HN 3jkNECWPgdxGg== Content-Transfer-Encoding: 7bit From: ax disroo List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org Mime-Version: 1.0 (1.0) Subject: Re: Unable to limit memory consumption with vfs.zfs.arc_max Date: Mon, 15 Jul 2024 23:35:22 -1000 Message-Id: <4A8DDEA3-CD0A-4294-BFEE-155E07B8EA18@disroot.org> References: Cc: Dan Langille , RW via freebsd-questions , freebsd questions In-Reply-To: To: Jim Long X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:50673, ipnet:178.21.23.0/24, country:NL] X-Rspamd-Queue-Id: 4WNYpV2bnkz54l4 --Apple-Mail-6430E99A-084F-4EF6-8A2C-7A8C5DC0E2E8 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > On Jul 15, 2024, at 11:36=E2=80=AFAM, Jim Long wrote: =E2=80=A6 > The ARC used frequently sails right past > the 4G limit. It seems the daily periodic job is one task which can > push the kernel to violate the vfs.zfs.arc_max limitation. =E2=80=A6 Have you tried these MIBs (set in loader.conf(5) or via sysctl(8), check tha= t) =E2=80=A6 - vfs.zfs.arc.free_target: Desired number of free pages below which ARC trig= gers reclaim; - vfs.zfs.arc.sys_free https://openzfs.github.io/openzfs-docs/Performance%20= and%20Tuning/Module%20Parameters.html#zfs-arc-sys-free =E2=80=A6 ? - Anubhav= --Apple-Mail-6430E99A-084F-4EF6-8A2C-7A8C5DC0E2E8 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
= On Jul 15, 2024, at 11:36=E2=80=AFAM, Jim Long wrote:
=E2=80= =A6
The ARC used frequ= ently sails right past
the 4G limit.  It seems the dail= y periodic job is one task which can
push the kernel to viol= ate the vfs.zfs.arc_max limitation.
=E2=80=A6
Have you tried these MIBs (set in loader.conf(5) or via sy= sctl(8), check that) =E2=80=A6

- vfs.zfs.arc.free_t= arget: Desired number of free pages below which ARC triggers reclaim;
<= div>

= =E2=80=A6 ?

- Anubhav
= --Apple-Mail-6430E99A-084F-4EF6-8A2C-7A8C5DC0E2E8--