From nobody Sat May 04 11:56:39 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 4VWmPc3lXfz5KRNc for ; Sat, 4 May 2024 11:57:24 +0000 (UTC) (envelope-from dan@langille.org) Received: from fout5-smtp.messagingengine.com (fout5-smtp.messagingengine.com [103.168.172.148]) (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 4VWmPc1mdQz3xjX for ; Sat, 4 May 2024 11:57:24 +0000 (UTC) (envelope-from dan@langille.org) Authentication-Results: mx1.freebsd.org; none Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfout.nyi.internal (Postfix) with ESMTP id AE3EA1380278; Sat, 4 May 2024 07:57:21 -0400 (EDT) Received: from imap42 ([10.202.2.92]) by compute7.internal (MEProxy); Sat, 04 May 2024 07:57:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=langille.org; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1714823841; x=1714910241; bh=5s3Qo2l1MG qgDhywbifzfZPjvfGbokR/Pwoa0LcW8Lg=; b=RA1edi6m/QDUOc2yB3TjNFB0h5 bYMgS2ppNNSXwcq9bPUb9EIXU/jg5pgUatCO4SHzuNZ7QNAAsD5E3dnFwuWYDJv4 fOjkdyZlrp02c24oFhsqP2EWjVTNY+lI5yEw88gWZZ35c7fWJbgq3ACieScZLRk5 YAaSVFF+arUT7QLCVFP8GI1UpqhGtAgsoKDCc12IcDbmZ62iGI2AK0NuUbN54QFR HzsGURvW+gGw46xc8R6zfZKqiQRGMnBEMm50nwFh/pJcCJa3XD9+CjZzIyYlxqDJ Gavf+ETh1tOhvrE0NnknDZtfjJDo+AdyjpdJmLz7yyCmFq2vaOgP4I3+c5HQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1714823841; x=1714910241; bh=5s3Qo2l1MGqgDhywbifzfZPjvfGb okR/Pwoa0LcW8Lg=; b=Ew6/bF82TMtB16D01LiaokjbOZiOZW6vLNS5iSiP8pDc 77eYkcwNn3bVa8UADTHlzmT1XyeRdSRlkrHNaeF2bGUllnYtQd8L3HdTVa1IPgyL gYR4C6/FoK6+rs+6JyDtfSEhFEyc2yDNjDbQhHo7wZV15LHvUT6DTG7GIZvOtFcv /TQBhj0qyNBluAUohtBGcqmXSfRgcfcdl0cfSksmhvEt5IctA4+TluhEt1R4aT6C FDZoIsw4CIplcXabu9f3N+ShOeecmFFcsDuuqHU5LNHh8EuNWL7KzeZxIlAlf6Ft nWo325+VIYRRFq1yybprfUPFFqvVXN31x+fvm7nkaw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvddvvddggeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedfffgr nhcunfgrnhhgihhllhgvfdcuoegurghnsehlrghnghhilhhlvgdrohhrgheqnecuggftrf grthhtvghrnhepvdetvdeggefhueehteegheejtddutdejtedtgfefledtgeejfeeitdfg geffleevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epuggrnheslhgrnhhgihhllhgvrdhorhhg X-ME-Proxy: Feedback-ID: ifbf9424e:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 4B2B6BC007D; Sat, 4 May 2024 07:57:21 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-417-gddc99d37d-fm-hotfix-20240424.001-g2c179674 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 Message-Id: <3d2f7913-b91d-4d00-a9b4-f37cf1032fc0@app.fastmail.com> In-Reply-To: References: <4299f196-1fbe-4590-8668-d023d7044e8d@sentex.net> Date: Sat, 04 May 2024 07:56:39 -0400 From: "Dan Langille" To: "Jim Long" , "mike tancsa" Cc: "RW via freebsd-questions" Subject: Re: Unable to limit memory consumption with vfs.zfs.arc_max Content-Type: text/plain 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:209242, ipnet:103.168.172.0/24, country:US] X-Rspamd-Queue-Id: 4VWmPc1mdQz3xjX 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