From owner-freebsd-current@freebsd.org Fri Jul 8 06:48:18 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0075AB85E47 for ; Fri, 8 Jul 2016 06:48:18 +0000 (UTC) (envelope-from nathan.bosley@gmail.com) Received: from mail-yw0-x242.google.com (mail-yw0-x242.google.com [IPv6:2607:f8b0:4002:c05::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B2C3219FA; Fri, 8 Jul 2016 06:48:17 +0000 (UTC) (envelope-from nathan.bosley@gmail.com) Received: by mail-yw0-x242.google.com with SMTP id y188so994098ywf.3; Thu, 07 Jul 2016 23:48:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=FDronj9QoCmUz5JzHDOlS+TvzpUbJY2MH+0ijRGans8=; b=dG5h0GL/t+pbulb2uBhvoz6ReGjKcnMQXlMc1dq4njU3vGKhHC3Gtu1PbumNOabtd8 F5d01vt7Yavl/efbi+c4jtOlnegpTJnYZ5cbOgFGRuaTHT9htOeSKex6FQj94UZppNoi mxqxZH4Y5LDV0T6gpb+2wDtBKYkIIymC+fVFXO3yMqQBubFTUp9Uk2/Dpfdig1Q9fWIJ DVH9c3U1fuVIhEs/42CKsh+xcP9vi7brkss8bCupjITaqO4rm/Bx5xrZbz+0LWEvX0Ay FrAi9SH0qSC2Hk81NYPHLNA5/GtXKluaq3tv5G2ZXmUXmyG6mP9iz6jX7YWQgwROXFZA diiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=FDronj9QoCmUz5JzHDOlS+TvzpUbJY2MH+0ijRGans8=; b=WaDYPaw84mlyb6nD0ciI55x7sxb8VfCYs6bWKK8itNqEUsYj6B+wI1lWL2XOCqz8fP g4i26MqahuuZOrDbJJH5SZm1mklcicJ9/MCxfqmGzbD2Bj+87dkILcgt5xInwYM6VuG4 Ha1rtPExd1CmEYb3gS99ilepWcMoVEiNjtgT1vkV6KJZz18asgm9v/atsnL77tJfevAd hI/4nZjLGjeGic9AE07lwUg/s50G/57jxWe4dN7kVQ1CUsxEYkzFMmdS09sScqZRRrmc 0G0gCHv9TUa3UIbT/Qaw509+2MbFX3E5S60Bb0E5CXz6vc9iBENa0lZCZkBZYBdp896g k9eg== X-Gm-Message-State: ALyK8tJh2egtj1HlRcjMGZcil2sj3VAoCqFxG+T5iils/LCxdWq74SLCayi5n7Ae9jtXxD1JGpOtXH00njAxzw== X-Received: by 10.37.14.11 with SMTP id 11mr3165051ybo.43.1467960496865; Thu, 07 Jul 2016 23:48:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.97.8 with HTTP; Thu, 7 Jul 2016 23:48:16 -0700 (PDT) In-Reply-To: <0a21b4f9-3f82-5e3b-3624-cad1e79489a0@multiplay.co.uk> References: <975e5ae2-2090-94cd-49c0-eee9866ff02b@freebsd.org> <145180d1-43c9-d894-9221-b210d641955d@freebsd.org> <7255f240-8cf0-0a62-89be-2a0970b67063@freebsd.org> <4d83c12e-e9d9-b5a8-e6cb-733924d6fd7d@multiplay.co.uk> <0a21b4f9-3f82-5e3b-3624-cad1e79489a0@multiplay.co.uk> From: Nathan Bosley Date: Fri, 8 Jul 2016 02:48:16 -0400 Message-ID: Subject: Re: Setting sysctl vfs.zfs.arc_max failed: 22 To: Steven Hartland Cc: Eric van Gyzen , freebsd-current@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2016 06:48:18 -0000 I was just testing this a bit. I can now set max in loader.conf as expected. I did notice one thing that I thought was a bit strange though. As a reference, here are my defaults without any ARC tunables/sysctls: vfs.zfs.arc_meta_limit: 3903459328 vfs.zfs.arc_min: 1951729664 vfs.zfs.arc_max: 15613837312 If I put vfs.zfs.arc_max="8589934592" in loader.conf, the results are: vfs.zfs.arc_meta_limit: 2147483648 vfs.zfs.arc_min: 1073741824 vfs.zfs.arc_max: 8589934592 So meta_limit and min are also changed, which is reasonable. If I remove all of my ARC tunables in loader.conf, so that I have the default values after booting, and then use: # sysctl vfs.zfs.arc_max="8589934592" The result is: vfs.zfs.arc_meta_limit: 2147483648 vfs.zfs.arc_min: 1951729664 vfs.zfs.arc_max: 8589934592 Max was set as requested. meta_limit was set to max/4. But min is still at the default. In other words, if I use loader.conf to set max, then min and meta_limit are also recalculated. But if I use sysctl to set max, only meta_limit is recalculated; min remains at the default. I'm not sure if that's the intent. Just a heads-up. Thanks again. On Wed, Jul 6, 2016 at 7:51 PM, Steven Hartland wrote: > On 06/07/2016 21:39, Eric van Gyzen wrote: > >> On 07/06/16 03:35 PM, Steven Hartland wrote: >> >>> The ARC settings and kmem aren't initialised when tunables are loaded >>> so the tests fail. >>> >>> I've fixed this locally by blindly setting if ARC is not configured. >>> Request to commit the fix is with re@ >>> >>> In the mean time the patch is attached. >>> >>> Thanks for the report and sorry about the breakage. >>> >> No worries. Thanks for the quick fix. >> >> https://svnweb.freebsd.org/changeset/base/302382 > > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >