From owner-freebsd-stable@FreeBSD.ORG Tue Dec 16 18:21:46 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C0DB1065687 for ; Tue, 16 Dec 2008 18:21:46 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id A0F408FC2C for ; Tue, 16 Dec 2008 18:21:45 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LCeY6-0003C4-QT for freebsd-stable@freebsd.org; Tue, 16 Dec 2008 18:21:38 +0000 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Dec 2008 18:21:38 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Dec 2008 18:21:38 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Ivan Voras Date: Tue, 16 Dec 2008 19:21:29 +0100 Lines: 62 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigE884A4A08C7DF35D4C4CBB6A" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.18 (X11/20081125) In-Reply-To: X-Enigmail-Version: 0.95.0 Sender: news Subject: Re: more zfs/nfs panics X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 18:21:46 -0000 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--