From owner-freebsd-current@freebsd.org Wed Jul 6 01:25:43 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 4A316B20032 for ; Wed, 6 Jul 2016 01:25:43 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from mx1.scaleengine.net (mx1.scaleengine.net [209.51.186.6]) by mx1.freebsd.org (Postfix) with ESMTP id 159721BE9 for ; Wed, 6 Jul 2016 01:25:42 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from [10.1.1.2] (unknown [10.1.1.2]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id 3AB28EF62 for ; Wed, 6 Jul 2016 01:25:41 +0000 (UTC) Subject: Re: Setting sysctl vfs.zfs.arc_max failed: 22 To: freebsd-current@freebsd.org References: <975e5ae2-2090-94cd-49c0-eee9866ff02b@freebsd.org> From: Allan Jude Message-ID: <145180d1-43c9-d894-9221-b210d641955d@freebsd.org> Date: Tue, 5 Jul 2016 21:25:37 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0Vr91rurTBevctlmq1g7faMr85MODg91X" 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:25:43 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --0Vr91rurTBevctlmq1g7faMr85MODg91X Content-Type: multipart/mixed; boundary="fquVBam8R1KLu9vxGJQq88Sw24qVq8DkU" From: Allan Jude To: freebsd-current@freebsd.org Message-ID: <145180d1-43c9-d894-9221-b210d641955d@freebsd.org> Subject: Re: Setting sysctl vfs.zfs.arc_max failed: 22 References: <975e5ae2-2090-94cd-49c0-eee9866ff02b@freebsd.org> In-Reply-To: --fquVBam8R1KLu9vxGJQq88Sw24qVq8DkU Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2016-07-05 20:27, Steven Hartland wrote: > Ahh right, let me check that. >=20 > 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=3D32283127807 >> vfs.zfs.arc_max: 32283127808 -> 32283127807 >> sysctl vfs.zfs.arc_max=3D32283127808 >> vfs.zfs.arc_max: 32283127807 -> 32283127808 >> >> Error 22 =3D EINVAL so I suspect you're requesting a value which o= ne >> 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=3D"YES" >> vfs.zfs.arc_max=3D"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 >> " >> >> >=20 > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.o= rg" 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. --=20 Allan Jude --fquVBam8R1KLu9vxGJQq88Sw24qVq8DkU-- --0Vr91rurTBevctlmq1g7faMr85MODg91X Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJXfF4UAAoJEBmVNT4SmAt+BcIQAOz0zXOktYYYq8I43U2DANs2 vEsySlxODxZFElKzLtpTjNuzxYysZcHEx9q1TputstGfrEhzP8dCBr9JXoddiO/j tO/JkYweMmYSMNsk3HjEgiNRbDbBNUI/SPDe3ZyW+kLJZh9FoK8szf0PFPwfAPOV G6OtksPpjvBwg/klpOcQs6QkcNsc7CUscKWw4OlB8WH8ddj3ZseQoWuzqpp9NY7L jS+yRD/mKVY4SX7Cvt4y5jmyLjol5+CzL5a751CxGtZBv0S3uE4wGPGvwA8jOAgc RXd7fr+gItoqG1KuQa5QEu4+Q3GXTI8nL3oFObMUWsBzBKDwSYIHXfZufy506uvq pDxtWjlorp+0siwQlIpFnkTCD4MhvhR3rGLJ/ShTiCcmP6ISVS8Xx+2gtwp5LGjY wlJOKvquH9HJ6xyIy4XWpmYSrVaGvQLGxIBqcy3eGJrnlScYcAOMbFe4Va+jAhGL utJAExUhmM/XRJRtoGiSAIDzFshU2efJCxgNpaq/bmMy8NYRjCbmUEXi4tdTAX0B bUSx+HcHXeRH9e0G178Q/xGLYtk0/ei3Roj/iAY9O/VvPhk8CJ9I8fZLkbskSMt8 rHLkF85REmzp8tTzz1aifqolZkYQwdIRwQBq8WNlLS/rAl16D8twh2Kt30hdf4Q9 RnIn9YEH8wrnu6Qajo1Y =cWU5 -----END PGP SIGNATURE----- --0Vr91rurTBevctlmq1g7faMr85MODg91X--