From owner-freebsd-fs@FreeBSD.ORG Fri Oct 26 09:00:05 2007 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 D37A116A46B; Fri, 26 Oct 2007 09:00:05 +0000 (UTC) (envelope-from bra@fsn.hu) Received: from people.fsn.hu (people.fsn.hu [195.228.252.137]) by mx1.freebsd.org (Postfix) with ESMTP id 2A6E813C4D1; Fri, 26 Oct 2007 09:00:04 +0000 (UTC) (envelope-from bra@fsn.hu) Received: from localhost (localhost [127.0.0.1]) by people.fsn.hu (Postfix) with ESMTP id 344EA8445A; Fri, 26 Oct 2007 10:59:51 +0200 (CEST) Received: from people.fsn.hu ([127.0.0.1]) by localhost (people.fsn.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 56512-04; Fri, 26 Oct 2007 10:59:43 +0200 (CEST) Received: from japan.t-online.private (unknown [192.168.2.3]) by people.fsn.hu (Postfix) with ESMTP id 60E0D8442B; Fri, 26 Oct 2007 10:59:43 +0200 (CEST) Message-ID: <4721AC89.7080306@fsn.hu> Date: Fri, 26 Oct 2007 10:59:53 +0200 From: Attila Nagy User-Agent: Thunderbird 2.0.0.0 (X11/20070421) MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <471F5B46.9050106@fsn.hu> <20071024155723.GA1431@garage.freebsd.pl> <47208FC8.7060203@fsn.hu> <20071025151004.GA4511@garage.freebsd.pl> <4720C8C5.2040909@fsn.hu> <20071025172039.GA5172@garage.freebsd.pl> In-Reply-To: <20071025172039.GA5172@garage.freebsd.pl> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at fsn.hu Cc: freebsd-fs@freebsd.org Subject: Re: ZFS and disk naming change (ex. da0->da4) 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: Fri, 26 Oct 2007 09:00:05 -0000 On 10/25/07 19:20, Pawel Jakub Dawidek wrote: > On Thu, Oct 25, 2007 at 06:48:05PM +0200, Attila Nagy wrote: > >> On 10/25/07 17:10, Pawel Jakub Dawidek wrote: >> >>>> panic: kmem_malloc(131072): kmem_map too small: 335319040 total allocated >>>> cpuid = 0 >>>> Uptime: 18m22s >>>> Physical memory: 1015 MB >>>> Dumping 372 MB: 357 341 325 309 293 277 261 245 229 213 197 181 165 149 >>>> 133 117 101 85 69 53 37 21 5 >>>> >>>> #0 doadump () at pcpu.h:195 >>>> 195 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); >>>> >>>> I've tried to lower vfs.zfs.arc_max first to 32, then 16 MB, but the >>>> panics still occur. >>>> >>>> >>> Have you tried the patch I posted some weeks ago? >>> >>> http://people.freebsd.org/~pjd/patches/vm_kern.c.2.patch >>> >>> >> Umm, no, not until now. >> >> The result is the same: >> Unread portion of the kernel message buffer: >> panic: kmem_malloc(131072): kmem_map too small: 335331328 total allocated >> cpuid = 0 >> Uptime: 15m25s >> Physical memory: 1015 MB >> Dumping 371 MB: 356 340 324 308 292 276 260 244 228 212 196 180 164 148 >> 132 116 100 84 68 52 36 20 4 >> >> #0 doadump () at pcpu.h:195 >> 195 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); >> >> This is with the default settings, so: >> vm.kmem_size_max: 335544320 >> vm.kmem_size: 335544320 >> > > One more thing. Can you add: > > vm.kmem_size=629145600 > vm.kmem_size_max=629145600 > > to your /boot/loader.conf, but don't touch any other settings (ie. don't > tune maximum number of vnodes, ARC size, etc.), let ZFS to autotune > them. > Of course this works (it had been worked before the patch too, but to be honest, I did not try just upping the kmem_size alone, I did lower arc_max too). The problem here is that if I install FreeBSD on such a machine and start using ZFS, I will get unexpected lockups and restarts. I cannot reproduce this with UFS with the default settings. Will there be a recommended loader.conf entry in the ZFS manual for lower memory machines, or is it possible to solve this, so no panic would occur even with the default values? Thanks, -- Attila Nagy e-mail: Attila.Nagy@fsn.hu Free Software Network (FSN.HU) phone: +3630 306 6758 http://www.fsn.hu/