From owner-freebsd-current@FreeBSD.ORG Mon Nov 5 23:31:57 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 093E916A417 for ; Mon, 5 Nov 2007 23:31:57 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.189]) by mx1.freebsd.org (Postfix) with ESMTP id C880513C4B3 for ; Mon, 5 Nov 2007 23:31:56 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so1469022rvb for ; Mon, 05 Nov 2007 15:31:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=P7R3wxLm8r2Xfdg1pqJF2YGvRIwxhTx7k5+BHP1wfcc=; b=pB1nEiCmt1qbOiKeFpa4Lg7L5k736DyfgjKuOUhw26Cxqj3XENTsL39J/tT4ST96cb+85I4DJ5LOYYFRct44yWapbtWCADDWmJVvmYge5tGMLAODI3TMCvQH1zOyuYEd6t8uEFeksaRe2XaGrYa8D+GFsDiBcw/BAU0wz7vtU5o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=O6PIXY4QSlJg2W926n/KEYuijiwxoHCsb2xOYqP+mkV2LDiSr1MlXIugan6/uf7PoG0w73iKSbMEPo5gD8Dw2NjqRn1AQ5vhwEmz9hQ8Al9Gyn4WAeVt7XesWba9POeXjeu1WW+kEfQJMq2hLp+ghl83TIcV++IX+PqG26/4xEQ= Received: by 10.141.52.5 with SMTP id e5mr2697010rvk.1194305502073; Mon, 05 Nov 2007 15:31:42 -0800 (PST) Received: by 10.140.131.18 with HTTP; Mon, 5 Nov 2007 15:31:42 -0800 (PST) Message-ID: <2e77fc10711051531k41e7224dq6aaedb35cad8d9f2@mail.gmail.com> Date: Tue, 6 Nov 2007 01:31:42 +0200 From: "Niki Denev" Sender: ndenev@gmail.com To: freebsd-current@freebsd.org In-Reply-To: <20071105215035.GC26730@heff.fud.org.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20071005000046.GC92272@garage.freebsd.pl> <20071008121523.GM2327@garage.freebsd.pl> <20071105215035.GC26730@heff.fud.org.nz> X-Google-Sender-Auth: 448ea43501c3f746 Cc: freebsd-fs@freebsd.org Subject: Re: ZFS kmem_map too small. 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: Mon, 05 Nov 2007 23:31:57 -0000 On Nov 5, 2007 11:50 PM, Andrew Thompson wrote: > On Mon, Oct 08, 2007 at 02:15:23PM +0200, Pawel Jakub Dawidek wrote: > > Here are some updates: > > > > I was able to reproduce the panic by rsyncing big files and trying > > bonnie++ test suggested in this thread. > > > > Can you guys retry with this patch: > > > > http://people.freebsd.org/~pjd/patches/vm_kern.c.2.patch > > > > It's a hack, yes, but allows to mitigate the problem quite well. I'm > > looking for a solution that can be used for 7.0 before we find a better > > fix. > > Do you still plan to commit this for 7.0 or is a better solution in the > works? I would assume something would need to be in before RC1. > > > BTW. To use ZFS you _must_ increase vm.kmem_size/vm.kmem_size_max. > > If you have the problem discussed here and you're using standard values, > > please retry with vm.kmem_size/vm.kmem_size_max set to at least 600MB in > > /boot/loader.conf. > > > > I'm not sure if it's not too late to ask re@ about increasing the > > default kmem size at least on amd64. ~300MB we have there is silly > > small. > > I have fairly easy reproductable (bonnie++) kmem_map too small panics on AMD64 even with kmem_size and kmem_size_max to 1G on 8Gig machine. I've tried setting them to 2G but the kernel panics on boot. I have compiled in debugger support and can provide backtraces and testing if needed (the machine is still not in production).