From owner-freebsd-stable@FreeBSD.ORG Wed Aug 5 15:55:54 2009 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 ABC031065678 for ; Wed, 5 Aug 2009 15:55:54 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id 2C8C68FC27 for ; Wed, 5 Aug 2009 15:55:53 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id n75Ftdrc066699 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 5 Aug 2009 18:55:39 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id n75Ftdb2033866; Wed, 5 Aug 2009 18:55:39 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id n75FtdTG033865; Wed, 5 Aug 2009 18:55:39 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 5 Aug 2009 18:55:39 +0300 From: Kostik Belousov To: pluknet Message-ID: <20090805155539.GN1884@deviant.kiev.zoral.com.ua> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="c19Bp+3XvVlZCJ3D" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-stable Subject: Re: softdep_setup_freeblocks: kmem_malloc(4096): kmem_map too small 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: Wed, 05 Aug 2009 15:55:55 -0000 --c19Bp+3XvVlZCJ3D Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 05, 2009 at 09:38:13AM +0400, pluknet wrote: > Hi. >=20 > We have a problem with user running with exceed quota: >=20 > Disk quotas for user eviluser (uid 9181): > Filesystem usage quota limit grace files quota limit = grace > /home 6172656 6172672 6172672 14723 0 0 >=20 > Some types of ufs operations running under him lead to kernel > panic due to out of kernel memory (tested on 6.2-R, and 6.4-R): >=20 > db> x/s *panicstr > buf.1: kmem_malloc(4096): kmem_map too small: 335544320 total allocated >=20 > Upping the higher level of vm.kmem_size_max doesn't help much, > postponing that panic little farther. >=20 > db> bt > Tracing pid 7242 tid 100772 td 0xca7a57d0 > kdb_enter(c0924e28) at kdb_enter+0x2b > panic(c093a575,1000,14000000,c17f7818,0,...) at panic+0x127 > kmem_malloc(c10680c0,1000,402,ef34e7bc,c07fb86d,...) at kmem_malloc+0x7d > page_alloc(c10613c0,1000,ef34e7af,402,0,...) at page_alloc+0x1a > slab_zalloc(c10613c0,402,c1061480,c10613c0,da68220c,...) at slab_zalloc+0= xdd > uma_zone_slab(c10613c0,502) at uma_zone_slab+0xe8 > uma_zalloc_bucket(c10613c0,502) at uma_zalloc_bucket+0x15c > uma_zalloc_arg(c10613c0,0,502) at uma_zalloc_arg+0x292 > malloc(b8,c09d4ba0,502,0,0,...) at malloc+0x46 > softdep_setup_freeblocks(cc8fb18c,0,0,800,cc8fb18c,ffffffe0,ffffffff,0,0)= at sof > tdep_setup_freeblocks+0x48 > ffs_truncate(c89e3990,0,0,800,c94f4300,...) at ffs_truncate+0x5cb > ffs_write(ef34ebec) at ffs_write+0x603 > VOP_WRITE_APV(c09d5960,ef34ebec) at VOP_WRITE_APV+0xce > vn_write(caba7000,ef34ecbc,c94f4300,0,ca7a57d0) at vn_write+0x1ee > dofilewrite(ca7a57d0,7,caba7000,ef34ecbc,ffffffff,...) at dofilewrite+0x77 > kern_writev(ca7a57d0,7,ef34ecbc,7e99c3c,42f6e8,...) at kern_writev+0x3b > write(ca7a57d0,ef34ed04) at write+0x45 > syscall(3b,82b003b,bfbf003b,8851,82bb000,...) at syscall+0x2bf > Xint0x80_syscall() at Xint0x80_syscall+0x1f > --- syscall (4, FreeBSD ELF32, write), eip =3D 0x281ae32f, esp =3D 0xbfbf= bbdc, ebp =3D > 0xbfbfbbf8 --- I have a high confidence that this issue should be fixed by r170991 and by minor followup in r183067. --c19Bp+3XvVlZCJ3D Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkp5q3oACgkQC3+MBN1Mb4iZswCfSr9SADa6mFsoLgYFEIX7pi/Q JXYAoPN64rsqt1PiDu47w8mCizU3cVsL =gHBa -----END PGP SIGNATURE----- --c19Bp+3XvVlZCJ3D--