From owner-freebsd-current@FreeBSD.ORG Sun Sep 23 22:34:37 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64A0216A41A for ; Sun, 23 Sep 2007 22:34:37 +0000 (UTC) (envelope-from darrenr@freebsd.org) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 18BC013C448 for ; Sun, 23 Sep 2007 22:34:37 +0000 (UTC) (envelope-from darrenr@freebsd.org) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 6701A2EBF8; Sun, 23 Sep 2007 18:34:36 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Sun, 23 Sep 2007 18:34:36 -0400 X-Sasl-enc: 5VO3vSQBJCSkMhjHZA8raPMDMcXzHpoOze5mTGATbaFJ 1190586876 Received: from [192.168.1.235] (64-142-85-108.dsl.dynamic.sonic.net [64.142.85.108]) by mail.messagingengine.com (Postfix) with ESMTP id A9B00207D9; Sun, 23 Sep 2007 18:34:35 -0400 (EDT) Message-ID: <46F6EA42.1070401@freebsd.org> Date: Sun, 23 Sep 2007 15:35:46 -0700 From: Darren Reed User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: Larry Rosenman References: <20070921102946.T11189@borg> <46F415BF.9010500@FreeBSD.org> <20070921140550.D96923@thebighonker.lerctr.org> <46F41CFF.6080108@FreeBSD.org> <46F58799.1030702@freebsd.org> <20070923161722.B41582@thebighonker.lerctr.org> In-Reply-To: <20070923161722.B41582@thebighonker.lerctr.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, Claus Guttesen Subject: Re: panic: kmem_malloc(131072): kmem_map too small (AMD64) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Sep 2007 22:34:37 -0000 Larry Rosenman wrote: > On Sun, 23 Sep 2007, Claus Guttesen wrote: > >>> So I just received this courtesy of ZFS: >>> panic: kmem_malloc(131072): kmem_map too small: 343027712 total >>> allocated >>> cpuid = 0 >>> KDB: enter: panic >>> >>> This was with these settings in loader.conf: >>> vm.kmem_size=419430400 >>> vm.kmem_size_max=419430400 >>> vfs.zfs.arc_max=409715200 >> >> How much ram do you have? Is this amd64 or i386? > > In my case, 4Gig ram, amd64, and I've seen the panic even with > 750M vm.kmem_size. > > Do we have guidelines on what vm.kmem_size(|_max) should be set to? My advice would be to tune the ZFS ARC to be smaller than kmem_size. The above represents a mistake in sizing the ARC. When using ZFS, I'd tune vm.kmem_size to be as much as 80% of RAM, unless you're running *large* applications in user space. Darren