Date: Tue, 5 Jul 2016 21:25:37 -0400 From: Allan Jude <allanjude@freebsd.org> To: freebsd-current@freebsd.org Subject: Re: Setting sysctl vfs.zfs.arc_max failed: 22 Message-ID: <145180d1-43c9-d894-9221-b210d641955d@freebsd.org> In-Reply-To: <e1fd9ae9-71de-ec0f-53d2-1c5d2f9ccc87@multiplay.co.uk> References: <ccdd6a5b-4771-6207-adb3-ce9a7960485c@FreeBSD.org> <975e5ae2-2090-94cd-49c0-eee9866ff02b@freebsd.org> <CAB%2BRvm7c97ionaM02UgTLNt-aqQJLZ8%2B5ZoFL9gHDhmmx=cCcg@mail.gmail.com> <e1fd9ae9-71de-ec0f-53d2-1c5d2f9ccc87@multiplay.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --0Vr91rurTBevctlmq1g7faMr85MODg91X Content-Type: multipart/mixed; boundary="fquVBam8R1KLu9vxGJQq88Sw24qVq8DkU" From: Allan Jude <allanjude@freebsd.org> 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: <ccdd6a5b-4771-6207-adb3-ce9a7960485c@FreeBSD.org> <975e5ae2-2090-94cd-49c0-eee9866ff02b@freebsd.org> <CAB+Rvm7c97ionaM02UgTLNt-aqQJLZ8+5ZoFL9gHDhmmx=cCcg@mail.gmail.com> <e1fd9ae9-71de-ec0f-53d2-1c5d2f9ccc87@multiplay.co.uk> In-Reply-To: <e1fd9ae9-71de-ec0f-53d2-1c5d2f9ccc87@multiplay.co.uk> --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 >> <steven@multiplay.co.uk <mailto:steven@multiplay.co.uk>> 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 <mailto: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 >> <mailto: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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?145180d1-43c9-d894-9221-b210d641955d>