Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Sep 2018 23:00:31 -0400
From:      Allan Jude <allanjude@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   Re: 12.0-ALPHA5 - ZFS default ARC max apparently forcing system to run out of memory
Message-ID:  <73c9d4f4-02db-1db2-419b-04167ed9216e@freebsd.org>
In-Reply-To: <f3267619-8706-47d2-7b07-590937bf4df7@bluestop.org>
References:  <f3267619-8706-47d2-7b07-590937bf4df7@bluestop.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--iaQ1FsEl9pQo3aWqwguVBQt1iw54maDBe
Content-Type: multipart/mixed; boundary="CSE4p3KCS2x1crVq3GR87aHhInRw2zyaB";
 protected-headers="v1"
From: Allan Jude <allanjude@freebsd.org>
To: freebsd-current@freebsd.org
Message-ID: <73c9d4f4-02db-1db2-419b-04167ed9216e@freebsd.org>
Subject: Re: 12.0-ALPHA5 - ZFS default ARC max apparently forcing system to
 run out of memory
References: <f3267619-8706-47d2-7b07-590937bf4df7@bluestop.org>
In-Reply-To: <f3267619-8706-47d2-7b07-590937bf4df7@bluestop.org>

--CSE4p3KCS2x1crVq3GR87aHhInRw2zyaB
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

On 2018-09-27 18:01, Rebecca Cran wrote:
> I'm running 12.0-ALPHA5 on a laptop which has 32GB RAM and 2GB swap.
> I've found it running out of memory when building ports via synth: I
> think I've also seen it when running a buildworld. Johannes on
> FreeBSDDesktop suggested it might be related to ZFS, and setting
> vfs.zfs.arc_max to 8GB *does* appear to have resolved the problem.
>=20
>=20
> Shortly after running out of memory (with |"swap_pager_getswapspace(32)=
:
> failed" messages)|, the first few lines of 'top' were:
>=20
>=20
> Mem: 4335M Active, 4854M Inact, 7751M Laundry, 9410M Wired, 48K Buf,
> 5332M Free
>=20
> ARC: 5235M Total, 4169M MFU, 497M MRU, 172K Anon, 97M Header, 471M Othe=
r
>=20
> =C2=A0=C2=A0=C2=A0=C2=A0 3479M Compressed, 5930M Uncompressed, 1.70:1 R=
atio
>=20
> Swap: 2048M Total, 2009M Used, 39M Free, 98% Inuse
>=20
>=20
>=20
> I've not seen this happen before on ZFS systems, so is it a regression
> in 12?
>=20
>=20

It doesn't appear like ZFS is dominating memory usage there. Using less
than the 8GB you indicated that setting the max to solved the problem...

--=20
Allan Jude


--CSE4p3KCS2x1crVq3GR87aHhInRw2zyaB--

--iaQ1FsEl9pQo3aWqwguVBQt1iw54maDBe
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)

iQIcBAEBAgAGBQJbrZlTAAoJEBmVNT4SmAt+6EMP/1CTPP4aS8NsMSmBSPLsCNfv
wfPt2i4nkkNkdwaXIByzssZdaklS73pBAdJQv1jdSq5TnyNcp/JVhM4PWTZ37Ceq
24W70n94NCgjUHqCM0iF8GHFh3MwfNKuszo2fRDTZgkLZctXkhcy3QQmiRgxw1Ji
k0hjIC6854hhm/e6BPPmK8XfojHZDbFES2Jgo4jdQCvOKHfmA3JCB1/eW7NLx+a7
O3+0+yozUHEND/8wCVUbOyEu0qt0xCh3nLkUl2TcVQxJ1PIPFE3i0K8J6xnXQ6Zi
Lgrna+t1JQVWuh5z/r1oJrCs/KL8LyqxGyAYCceWuWARBwfRwOEJHKBfo//uz0PH
BOZdBaEAAYx0gj514c/35cL4oVcCSPfavYRiy8Wq7kl0XAnOIolEujBnCNVpKEnN
qvVgWJt0fBdoOGEHedsYjZmHkWHFc4s58sWMCpnY7i/R84DLFCkh5UqpOV7bSq3d
cIDR/O1H64jERuA6GE5KzfTAg1ZYXPc6PsnABHpuX5q719/5HMNPFyBXjoCHB8ok
KaoB9LwyeoDMCX2Y6qXmeM8Q4t8mi11AmzeLDdrxLNsBLZOm0PKyfxEup2L9VKQC
KtNT7USpJsSeO/d68dL8WZQEug0ZDUybLFy4zirNwPuExgPjCLTxY8HcQz4gFPEK
s4jWPRQIzJ7Mler8yaOm
=Nj26
-----END PGP SIGNATURE-----

--iaQ1FsEl9pQo3aWqwguVBQt1iw54maDBe--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?73c9d4f4-02db-1db2-419b-04167ed9216e>