Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Dec 2008 19:21:29 +0100
From:      Ivan Voras <ivoras@freebsd.org>
To:        freebsd-stable@freebsd.org
Subject:   Re: more zfs/nfs panics
Message-ID:  <gi8rj3$63r$1@ger.gmane.org>
In-Reply-To: <E1LCch8-000G0M-Q2@kabab.cs.huji.ac.il>
References:  <E1LCch8-000G0M-Q2@kabab.cs.huji.ac.il>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigE884A4A08C7DF35D4C4CBB6A
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Danny Braniss wrote:
> Hi,
> I'm trying to tar a rather big directory via nfs (some 800gb), it
> has many subdirectories, some of them with many files (close to 10^6 :-=
)
>=20
> just before the server panics, the tar (on the client) starts complaini=
ng=20
> about lost
> files, or permition denied, but not in the pathological directories.
> panic: kmem_malloc(-1661382656): kmem_map too small: 645009408 total al=
located
> cpuid =3D 3
> KDB: enter: panic
> [thread pid 881 tid 100112 ]
> Stopped at      kdb_enter_why+0x3d:     movq    $0,0x5ef3e8(%rip)
> db> tr
> Tracing pid 881 tid 100112 td 0xffffff0004ba2000
> kdb_enter_why() at kdb_enter_why+0x3d
> panic() at panic+0x17b
> kmem_malloc() at kmem_malloc+0x565
> uma_large_malloc() at uma_large_malloc+0x4a
> malloc() at malloc+0xd7
> nfsrv_readdir() at nfsrv_readdir+0x4e1
> nfssvc() at nfssvc+0x400
> syscall() at syscall+0x1bb
> Xfast_syscall() at Xfast_syscall+0xab
> --- syscall (155, FreeBSD ELF64, nfssvc), rip =3D 0x8006885cc, rsp =3D =

> 0x7fffffffea28, rbp =3D 0 ---
>=20
> I have increased=20
> 	vm.kmem_size_max=3D"1024M"
> 	vm.kmem_size=3D"1024M"
> 	vfs.zfs.arc_max=3D"800M"
> it just seems to delay the panic though, it smells like some memory lea=
k ...

Well, the canonical fix seems be to DECREASE vfs.zfs.arc_max to
something like 100M and keep decreasing until it works.


--------------enigE884A4A08C7DF35D4C4CBB6A
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJR/GpldnAQVacBcgRAthNAKDZEdH2ZfTlhHg7dYzBaAdhmeMV/gCfdwlt
h+mkLd32q7GurKEu1r20Nxo=
=7pHZ
-----END PGP SIGNATURE-----

--------------enigE884A4A08C7DF35D4C4CBB6A--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?gi8rj3$63r$1>