From owner-freebsd-stable@FreeBSD.ORG Mon Jan 7 16:02:38 2008 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6560616A419 for ; Mon, 7 Jan 2008 16:02:37 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.235]) by mx1.freebsd.org (Postfix) with ESMTP id EB7C713C46A for ; Mon, 7 Jan 2008 16:02:36 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by wr-out-0506.google.com with SMTP id 68so324403wra.13 for ; Mon, 07 Jan 2008 08:02:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=D+Rue+9vziV/3dtvFtaOluOmfg663HxYvkRtwHXRGUk=; b=S/qeIK8MNy+IY0uTPHNbOG1uSbSHYcXfALA6bAdxYFy3kb8XzVVD1WhbVm8wB5UKXE9tDtFDCK63x6JVHZa+yBdN8IeyPmfStCpYG05qLEki/K4lhazeUE3eZW6Zu25Fl0Z/cobR9fDG7sYlbf0x01oHIZlWpNXJU91MghDV3AQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TuGUL0S6XfN72UYNRPOobC9Ensh1XZYTFhCuoNoLShlnElMX9P+T/O+9zpfk5ywbjUj+JPkNdQo2vPJmHRpVHBiwm5Y6bpXPOMfdPlzs6PM2xgsZz2aUsB5ZDHwwrghaQH8jBm6lsp27rKGwnZRQOhyWFdvchr0WAwGNtfWG63I= Received: by 10.151.15.3 with SMTP id s3mr5149111ybi.143.1199720111371; Mon, 07 Jan 2008 07:35:11 -0800 (PST) Received: by 10.150.150.12 with HTTP; Mon, 7 Jan 2008 07:35:11 -0800 (PST) Message-ID: <790a9fff0801070735n6696c01ega9c975a8026a1d28@mail.gmail.com> Date: Mon, 7 Jan 2008 09:35:11 -0600 From: "Scot Hetzel" To: "Pete French" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4cd036390801070409l4d8f1cf9te86772f188f89dfe@mail.gmail.com> Cc: stable@freebsd.org Subject: Re: kmem_map too small under 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: Mon, 07 Jan 2008 16:02:38 -0000 On 1/7/08, Pete French wrote: > > vm.kmem_size="512M" > > vm.kmem_size_max="512M" > > I have similar to this in mine... > > vm.kmem_size=629145600 > vm.kmem_size_max=629145600 > > which is about 600 meg - the machine has 2 gig of RAM. > > > vfs.zfs.prefetch_disable="1" > > vfs.zfs.arc_max="150M" > > kern.maxvnodes="400000" > > now these I havent got - I did see a reference to disabling the intent log, > which is what I was about to try. I will give your settings a shot too. > > > Most of these settings came from various mailing list postings. It's > > possible that some don't do anything useful, but I haven't had a zfs > > related panic since. > > Worth a try - might see if I can find a way tro reliably trigger the > opanic and then tyrn these bits back on one at a time too. > I use the following settings that were obtained from the ZFSTuningGuide a while back. # # ZFS Tunning (amd64) - http://wiki.freebsd.org/ZFSTuningGuide # # kern.maxvnodes="400000" - sysctl.conf # 1073741824 = 1G vm.kmem_size="1073741824" vm.kmem_size_max="1073741824" #vfs.zfs.zil_disable=1 #vfs.zfs.prefetch_disable=1 # arc_max = 2 * kmem_size / 3 #vfs.zfs.arc_max="683M" The commented out settings are no longer in the guide, and I haven't had any problems with just setting vm.kmem_size* on FreeBSD/amd64. Is your system FreeBSD/amd64 or FreeBSD/i386? If it is FreeBSD/i386 you will need to increase KVA_PAGES as suggested in the guide. Scot