From owner-freebsd-fs@freebsd.org Wed May 12 16:50:32 2021 Return-Path: Delivered-To: freebsd-fs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4B42C64571A for ; Wed, 12 May 2021 16:50:32 +0000 (UTC) (envelope-from SRS0=kx+D=KH=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FgLPz072Dz4qWL for ; Wed, 12 May 2021 16:50:30 +0000 (UTC) (envelope-from SRS0=kx+D=KH=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id E2C7028411; Wed, 12 May 2021 18:50:22 +0200 (CEST) Received: from illbsd.quip.test (ip-94-113-69-69.net.upcbroadband.cz [94.113.69.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id C07722842B; Wed, 12 May 2021 18:50:20 +0200 (CEST) Subject: Re: Changes in vfs.zfs.arc_max on 13 To: freebsd-fs@freebsd.org References: <0961dfe0-922e-8a6f-0bf9-c0685e3ec3d1@nomadlogic.org> <95d2d77f-c995-69ce-c6d6-ea8e22e9515b@nomadlogic.org> From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: Date: Wed, 12 May 2021 18:50:19 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <95d2d77f-c995-69ce-c6d6-ea8e22e9515b@nomadlogic.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4FgLPz072Dz4qWL X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of SRS0=kx@elsa.codelab.cz has no SPF policy when checking 94.124.105.4) smtp.mailfrom=SRS0=kx@elsa.codelab.cz X-Spamd-Result: default: False [-0.95 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; FORGED_SENDER(0.30)[000.fbsd@quip.cz,SRS0=kx@elsa.codelab.cz]; RECEIVED_SPAMHAUS_PBL(0.00)[94.113.69.69:received]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[94.124.105.4:from]; MIME_TRACE(0.00)[0:+]; TAGGED_FROM(0.00)[D=KH=quip.cz=000.fbsd]; ASN(0.00)[asn:42000, ipnet:94.124.104.0/21, country:CZ]; FROM_NEQ_ENVFROM(0.00)[000.fbsd@quip.cz,SRS0=kx@elsa.codelab.cz]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_MEDIUM(-0.15)[-0.145]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[quip.cz]; AUTH_NA(1.00)[]; SPAMHAUS_ZRD(0.00)[94.124.105.4:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_NA(0.00)[no SPF record]; MAILMAN_DEST(0.00)[freebsd-fs] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 May 2021 16:50:32 -0000 On 12/05/2021 18:06, Pete Wright via freebsd-fs wrote: [...] > Ah interesting, the examples certainly refer to loader.conf knobs. I had > mistakenly assumed that the sysctl values would take the same form. > Section 20.6.1 of the handbook isn't clear on this distinction: > "This value can be adjusted at runtime with sysctl(8) > > and can be set in /boot/loader.conf or /etc/sysctl.conf." > > zfs-module-parameters(5) is a bit more clear on this it looks like. Is > it common for loader variables to accept different formatted values for > the same knob? It is really user-unfriendly to accept 2048M in the loader.conf but not in sysctl.conf / sysctl command. I think it always should accept the same format. And human formatted is the preferred way. Just my $0.02 Miroslav Lachman