From owner-freebsd-fs@FreeBSD.ORG Mon Oct 8 20:28:36 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 90C3F16A417; Mon, 8 Oct 2007 20:28:36 +0000 (UTC) (envelope-from gb@isis.u-strasbg.fr) Received: from mailhost.u-strasbg.fr (mailhost.u-strasbg.fr [IPv6:2001:660:2402::156]) by mx1.freebsd.org (Postfix) with ESMTP id 2CF6913C474; Mon, 8 Oct 2007 20:28:36 +0000 (UTC) (envelope-from gb@isis.u-strasbg.fr) Received: from 6nq.u-strasbg.fr (mojito.u-strasbg.fr [IPv6:2001:660:4701:1002::3]) by mailhost.u-strasbg.fr (8.13.8/jtpda-5.5pre1) with ESMTP id l98KSTS7010471 ; Mon, 8 Oct 2007 22:28:29 +0200 (CEST) Received: by 6nq.u-strasbg.fr (Postfix, from userid 1001) id 1EB8D8184; Mon, 8 Oct 2007 22:27:44 +0200 (CEST) Date: Mon, 8 Oct 2007 22:27:44 +0200 From: Guy Brand To: freebsd-fs@freebsd.org, freebsd-current@freebsd.org Message-ID: <20071008202743.GA1555@isis.u-strasbg.fr> References: <20071005000046.GC92272@garage.freebsd.pl> <20071008121523.GM2327@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20071008121523.GM2327@garage.freebsd.pl> x-gpg-fingerprint: B423 4924 012E 52F3 BA9E 547F CC8C 0BC5 9C0E B1CA x-gpg-key: 9C0EB1CA User-Agent: Mutt/1.5.16 (2007-06-09) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (mailhost.u-strasbg.fr [IPv6:2001:660:2402::156]); Mon, 08 Oct 2007 22:28:29 +0200 (CEST) X-Virus-Scanned: ClamAV 0.88.7/4507/Mon Oct 8 20:42:59 2007 on mr6.u-strasbg.fr X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=5.0 tests=AWL,NO_RELAYS autolearn=disabled version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on mr6.u-strasbg.fr Cc: Subject: Re: ZFS kmem_map too small. 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, 08 Oct 2007 20:28:36 -0000 Pawel Jakub Dawidek (pjd@freebsd.org) on 08/10/2007 at 14:15 wrote: > 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. > > 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. Hi, On a Lenovo X61s from yesterday (FreeBSD 7.0-CURRENT #1: Sun Oct 7 21:55:14 CEST 2007) with hw.model: Intel(R) Core(TM)2 Duo CPU L7500 @ 1.60GHz hw.physmem: 2091008000 hw.machine_arch: i386 hw.realmem: 2104164352 and a single zpool containing ad4s2 slice (all FS except /). I tuned vm.kmem_size and ran ad vitam: - vt0: rsync /usr/src /tmp/. && rm -rf /tmp/src - vt1: dd if=/dev/zero of=/tmp/file bs=1k count=1000000 The kernel panics until vm.kmem_size/vm.kmem_size_max is set to 671088640 where I could have both loops running for 3 hours. But then the system was hanging: rsync and dd seem stopped in their execution. This was confirmed on another term (load of 0). Any attempt to R/W from the poll (touch/ls) hangs the terminal. I could still log in to a term, but reboot/shutdown failed. I applied your patch and re-run the tests. After eight hours, the kernel is still up and usable. Thanks Pawel. > 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. Default vm.kmem_size value is 335544320 on my laptop: a portsnap fetch + extract from scratch panics with kmem_map too small. -- bug