From owner-freebsd-current@freebsd.org Wed Jul 6 01:32:08 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 C946EB200FD for ; Wed, 6 Jul 2016 01:32:08 +0000 (UTC) (envelope-from nathan.bosley@gmail.com) Received: from mail-yw0-x233.google.com (mail-yw0-x233.google.com [IPv6:2607:f8b0:4002:c05::233]) (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 776951EF9; Wed, 6 Jul 2016 01:32:08 +0000 (UTC) (envelope-from nathan.bosley@gmail.com) Received: by mail-yw0-x233.google.com with SMTP id v77so76659605ywg.0; Tue, 05 Jul 2016 18:32:08 -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=KE2aaryJczk+aZl64QK9kMwGMa65oA4MrS0wnAXIH0A=; b=dC260BgGG/NKPyFoiLGrzTS/CqSL22MOkK/AmSClmHGAsIqlGQ/FL548gHIfKzLerH oih9SxYY/5AnEFm5iNBbayISZDBi7YTiOfYY3TkYXO9T4fawLqrMNHGjbDDdh9CsdcSA 8A5kUgFNdvrGRjJMGrHsZ8VOW4b8bITObhJzrE+pmGm/yO99hT+yeT5O9J/iJ1qRoEaR zcWRsKNg5HAOyeqdfuhw0G0xPVc/lGq49feX8Ect39ovNU0OivxvDqTAuyv9kWOLOylX XWuTgwLhYHRu4kqER32QarkulxBaSrH6eOPueeE+TrRNP4ISEjhh53k9liHlmbFLtGCR 1OVg== 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=KE2aaryJczk+aZl64QK9kMwGMa65oA4MrS0wnAXIH0A=; b=gzq2BObadrXqGDBKh4ImBHNmhPcbCL6sMLquP1oz/IBLEe+wC0DA7O0oMd8dwhiGk3 Y2udT3HfJorklJQ8Dw1vCZixEMNNm48I1uw3KSP928pfJDivMDta2D2c+PVNO7lDYtmg 0sLqF3bE5xgD05riDKZfHKsEF6WgmdAHEY5WuXzKGNSkYZzphvVExt8PeRWmQhN3o8yF /za91jnmJWDGYDLOZBcUXHy6CRCq+S+sNiccXDr9cpiiQTCq1VsbXGJiquCQx6h0f2Jg HBmYEPHfS0BaBG22KIM3Z519xLq4mZCwtl9kdjCyPmO4hRjBYGajuriA2S9DWPHBDonM M8vg== X-Gm-Message-State: ALyK8tK5aZz8PRllIFvsygPjAaDciemRq3LqGGjgTS+eUmO+Kj/qb+qL9Wx/t4ZeFWbJdCS9h96JrZyPeD3UrA== X-Received: by 10.37.108.69 with SMTP id h66mr12170692ybc.76.1467768727518; Tue, 05 Jul 2016 18:32:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.97.8 with HTTP; Tue, 5 Jul 2016 18:32:06 -0700 (PDT) In-Reply-To: <145180d1-43c9-d894-9221-b210d641955d@freebsd.org> References: <975e5ae2-2090-94cd-49c0-eee9866ff02b@freebsd.org> <145180d1-43c9-d894-9221-b210d641955d@freebsd.org> From: Nathan Bosley Date: Tue, 5 Jul 2016 21:32:06 -0400 Message-ID: Subject: Re: Setting sysctl vfs.zfs.arc_max failed: 22 To: Allan Jude Cc: 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: Wed, 06 Jul 2016 01:32:08 -0000 I think in about 4 - 5 hours I can show what values I'm using in loader.conf under, say, r302264 and r302265 for comparison. I'm not 100% sure that the problem arose for me in r302265; I merely suspect it. On Tue, Jul 5, 2016 at 9:25 PM, Allan Jude wrote: > On 2016-07-05 20:27, Steven Hartland wrote: > > Ahh right, let me check that. > > > > On 06/07/2016 00:51, Nathan Bosley wrote: > >> I actually have this same problem. > >> I'll send more details when I get home later. > >> > >> I think the problem started for me after r302265. > >> Before that, I can set vfs.zfs.arc_max and vfs.zfs.arc_min in > >> loader.conf. > >> After r302265, setting either vfs.zfs.arc_max or vfs.zfs.arc_min in > >> loader.conf results in the EINVAL errors in 'dmesg': > >> > >> Setting sysctl vfs.zfs.arc_max failed: 22 > >> Setting sysctl vfs.zfs.arc_min failed: 22 > >> > >> But setting vfs.zfs.arc_meta_limit in loader.conf works fine. > >> > >> But I did notice that using 'sysct' or sysctl.conf for vfs.zfs.arc_max > >> and vfs.zfs.arc_min works. > >> I only have problems with setting them now in loader.conf. > >> > >> Like I said, I'll try to send output from my setup later. > >> > >> Thanks. > >> > >> On Tue, Jul 5, 2016 at 6:10 PM, Steven Hartland > >> > wrote: > >> > >> What is it currently? > >> > >> Just had a quick play here: > >> sysctl vfs.zfs.arc_max > >> vfs.zfs.arc_max: 32283127808 > >> sysctl vfs.zfs.arc_max=32283127807 > >> vfs.zfs.arc_max: 32283127808 -> 32283127807 > >> sysctl vfs.zfs.arc_max=32283127808 > >> vfs.zfs.arc_max: 32283127807 -> 32283127808 > >> > >> Error 22 = EINVAL so I suspect you're requesting a value which one > >> of the following: > >> * < arc_abs_min > >> * > kmem_size > >> * < arc_c_min > >> * < zfs_arc_meta_limit > >> > >> Regards > >> Steve > >> > >> On 05/07/2016 22:56, Eric van Gyzen wrote: > >> > >> Steven and -current: > >> > >> I just updated to r302350 with a GENERIC kernel config. I see > >> this in > >> dmesg: > >> > >> VT(efifb): resolution 1024x768 > >> Setting sysctl vfs.zfs.arc_max failed: 22 > >> CPU: Intel(R) Xeon(R) CPU E5-1650 v3 @ 3.50GHz > >> (3491.98-MHz K8-class > >> CPU) > >> > >> The relevant parts of /boot/loader.conf are: > >> > >> zfs_load="YES" > >> vfs.zfs.arc_max="6442450944" > >> > >> Let me know what other information you need. > >> > >> Cheers, > >> > >> Eric > >> > >> > >> _______________________________________________ > >> 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 > >> " > >> > >> > > > > _______________________________________________ > > 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" > > > I think the issue might be that the default value of arc_min is higher > than when the user is trying to set arc_max to. In that case we might > want sysctl to lower arc_min instead of giving an error? > > It would definitely be a POLA violation to have to set arc_min lower to > be able to have existing lines that set arc_max in loader.conf work > correctly. > > -- > Allan Jude > >