Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Apr 2015 23:37:56 -0700
From:      Garrett Cooper <yaneurabeya@gmail.com>
To:        freebsd-fs@freebsd.org
Cc:        freebsd-stable <freebsd-stable@FreeBSD.org>
Subject:   FreeBSD/ZFS on 9.3-RELEASE chews up memory with "wide" directories when calling readdir, etc; causes trap 12 panics
Message-ID:  <F390CDB8-024C-4F6F-8793-752756859B5C@gmail.com>

next in thread | raw e-mail | index | archive | help

--Apple-Mail=_C5F0CD32-23D7-44BA-8C8E-E252FF9CCF4C
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252

Hi,
	Long story short, I had a lot of mail spooled up in /var/spool. =
When I did ls /var/spool, ZFS chewed up almost all 12GB of my memory in =
<10 mins (because there were enough files there) and the system =
eventually panicked because [I assume that a memory allocation failed =
and] a trap 12 panic was caught. I don=92t have the exact details, but =
it should be relatively easy to repro (YMMV if you have a boatload of =
RAM):

repro_end=3D10000000000
for i in $(seq 1 $repro_end); do mktemp tmp.XXXXXXXXXXXX; done
ls

	This might be ameliorated via r281026, but this change is only =
available in CURRENT (so far), and I haven=92t tested it.
	Are there any comments about this scalability issue with =
FreeBSD/ZFS?
Thanks,

--Apple-Mail=_C5F0CD32-23D7-44BA-8C8E-E252FF9CCF4C
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJVI3tFAAoJEMZr5QU6S73eR6kH/A1XPCegxem49+98PdTl4NuY
95tQEbzANC8xbnOFueluyEk6/8/X0kIFvEwraQxJg9kPUuC1goWghzNVPp/iTXuv
TOxv3jTUmg2GYP0nvkcP/0G7G/7QRthr59XYtZZQZZiw3XqjpnDLECJ37eGjAxyY
QiQte9z7FnzUMAE/f+vPGTffwkEYh9+DcFwmoCfTAnS9vmt8UfyYbOyuPmP58Dyv
OJkAa9WpIVUrGSlILnXi+H8A5S9BTLZb91g+pOsp1YTeXoE6X7v+JafoM6kHMZEM
gV/xaHoJXeCecp1VDDt/yLXM6ZTu36GnuDBxVdtghLJPH1eRBQyOdEXJQUhEX3c=
=nPfJ
-----END PGP SIGNATURE-----

--Apple-Mail=_C5F0CD32-23D7-44BA-8C8E-E252FF9CCF4C--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F390CDB8-024C-4F6F-8793-752756859B5C>