From owner-freebsd-fs@FreeBSD.ORG Mon Aug 31 21:51:10 2009 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC816106566C for ; Mon, 31 Aug 2009 21:51:10 +0000 (UTC) (envelope-from mat.macy@gmail.com) Received: from mail-yw0-f191.google.com (mail-yw0-f191.google.com [209.85.211.191]) by mx1.freebsd.org (Postfix) with ESMTP id 71F8D8FC0A for ; Mon, 31 Aug 2009 21:51:10 +0000 (UTC) Received: by ywh29 with SMTP id 29so6372405ywh.33 for ; Mon, 31 Aug 2009 14:51:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=FKNg65+Ty+p5qRdYJ3rdZxbXWVlLRDvx3cRV9XK923Y=; b=hbsTrCXLbeEVHD7jfndMjINKPlWlARhrICNA3BOBOBbNaCe/uhznMWIvK4aNbm4TZv Y/ocMXOT/QQGhJQXIVCls51fKpbJxIjHo515m0sk++C3xnbw60WSrL9G7LZoz9U6GzVS SO/kkc13KVczChCGAWvGNmG9nJ7GmoG5dSkA8= 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; b=u9edgqOQs+eHBRJC9NnSqN7MRVeJjEngxmgo1kLBC779WNpyQ6/3ZaFHsCyUgnm47C AnpPqKACTLB21+G2NN1qIVjypLGIXRSdLI22LfoCvADx5S7JIgbikC1BvIXCF+Mfjx6G xQFpxXzOC5NQ6nvPLSkriO37j0BeFyAFVTgeE= MIME-Version: 1.0 Sender: mat.macy@gmail.com Received: by 10.101.53.9 with SMTP id f9mr6526543ank.46.1251755469555; Mon, 31 Aug 2009 14:51:09 -0700 (PDT) In-Reply-To: <941145.26591.qm@web37302.mail.mud.yahoo.com> References: <4A927CB3.3040402@plus-plus.su> <4A964F4E.4080009@plus-plus.su> <941145.26591.qm@web37302.mail.mud.yahoo.com> Date: Mon, 31 Aug 2009 14:51:09 -0700 X-Google-Sender-Auth: e1d1f9b9947a848d Message-ID: <3c1674c90908311451j5650bcdfl119309368d852a49@mail.gmail.com> From: Kip Macy To: Simun Mikecin Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-fs@freebsd.org Subject: Re: need help with ZFS X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Aug 2009 21:51:10 -0000 >> vm.kmem_size="1536M" >> vm.kmem_size_max="3072M" >> vm.pmap.shpgperproc="1024" >> vfs.zfs.arc_min="256M" >> vfs.zfs.arc_max="384M" >> vfs.zfs.vdev.cache.size="50M" >> vfs.zfs.prefetch_disable="1" >> kern.maxproc="20000" > > Since FreeBSD 7.2 no additional ZFS tuning in loader.conf is needed (on amd64). > You should remove all those settings from loader.conf, reboot, and re-run the tests. > Maybe, just maybe you get a panic just because of those settings. Actually you probably still want to set kmem_size, kmem_size_max, and arc_min. kmem_size_max just overrides auto-tuning it doesn't actually raise kmem_size. I have found that the ARC can get starved out by user processes with many pages in the page cache so a large arc_min can be useful too. Bear in mind that kmem_size can safely be much larger than physical memory, kmem_malloc can often fail due to KVA fragmentation even when physical memory is plentiful. -Kip