From owner-freebsd-stable@FreeBSD.ORG Thu Jun 2 19:44:50 2011 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 C8179106566B for ; Thu, 2 Jun 2011 19:44:50 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7F8F98FC0A for ; Thu, 2 Jun 2011 19:44:50 +0000 (UTC) Received: by yxl31 with SMTP id 31so754199yxl.13 for ; Thu, 02 Jun 2011 12:44:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=u6EMQlNnN5+6NHTBBQPQO8CUdIMtwQHa6pv0A+2oBEo=; b=W8yW0j1tipexVceYL2SQDI9kWg401rqfjm6mNrRN/YoAUQtfen3lpdkJsVUtTTsPwk fkP+ExwSImHJMbMksmG+0lWPco64q1kLt/IP0Tyh2wI9GWXwKA6mX3awydn9eJKhKz/y SD04D1mCr3Lnlhg+JKelrwhZWgt/ZQEirf9/A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=Lgrx9gIkp3jnDZX8aI9bv1eP/TYRccKxe7GXXpjgan6nLq5mR0tpw9abAey6DqGS6v IOkWOnBJn0eAY6gbt1AjfzLoK+X6sJ01pnHjN1geCtkhmrbsWYXQndB9DHX4Kj9uA/zS nOyultc3SOe6JWdCPVHI3sUkJYPyXBVORoPVg= MIME-Version: 1.0 Received: by 10.236.182.38 with SMTP id n26mr1484360yhm.183.1307043889631; Thu, 02 Jun 2011 12:44:49 -0700 (PDT) Sender: artemb@gmail.com Received: by 10.236.208.70 with HTTP; Thu, 2 Jun 2011 12:44:49 -0700 (PDT) In-Reply-To: <20110602213116.425400b6.torfinn.ingolfsen@broadpark.no> References: <20110602213116.425400b6.torfinn.ingolfsen@broadpark.no> Date: Thu, 2 Jun 2011 12:44:49 -0700 X-Google-Sender-Auth: KWCwQEnzYwXzhtGfP_uoY0q0CII Message-ID: From: Artem Belevich To: Torfinn Ingolfsen Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-stable@freebsd.org Subject: Re: Fileserver panic - FreeBSD 8.1-stable and zfs 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: Thu, 02 Jun 2011 19:44:50 -0000 On Thu, Jun 2, 2011 at 12:31 PM, Torfinn Ingolfsen wrote: > FYI, in case it is interesting > my zfs fileserver[1] just had a panic: (transcribed from screen) > panic: kmem_malloc(131072): kmem_map too small: 1324613632 total allocate= d > cpuid =3D 1 It's probably one of the most frequently reported issues with ZFS. While things got quite a bit better lately, you still need to bump up kernel VM size with vm.kmem_size tunable. I typically set vm.kmem_size tunable to ~2x physical memory size. > The machine runs: > root@kg-f2# uname -a > FreeBSD kg-f2.kg4.no 8.1-STABLE FreeBSD 8.1-STABLE #4: Fri Oct 29 12:11:4= 8 CEST 2010 =A0 =A0 root@kg-f2.kg4.no:/usr/obj/usr/src/sys/GENERIC =A0amd64 In general you may want to update to the latest -stable. There were a lot of ZFS fixes committed. --Artem