From owner-freebsd-stable@FreeBSD.ORG Thu Sep 25 15:10:14 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4C19A106568F; Thu, 25 Sep 2008 15:10:14 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from constantine.ticketswitch.com (constantine.ticketswitch.com [IPv6:2002:57e0:1d4e:1::3]) by mx1.freebsd.org (Postfix) with ESMTP id 1187F8FC36; Thu, 25 Sep 2008 15:10:14 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from dilbert.rattatosk ([10.64.50.6] helo=dilbert.ticketswitch.com) by constantine.ticketswitch.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KisTn-000GCW-Cz; Thu, 25 Sep 2008 16:10:07 +0100 Received: from petefrench by dilbert.ticketswitch.com with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KisTn-0000xy-AG; Thu, 25 Sep 2008 16:10:07 +0100 To: admin@kkip.pl, koitsu@FreeBSD.org In-Reply-To: <20080925145154.GA15486@icarus.home.lan> Message-Id: From: Pete French Date: Thu, 25 Sep 2008 16:10:07 +0100 Cc: freebsd-stable@freebsd.org Subject: Re: vm.kmem_size settings doesn't affect loader? 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: Thu, 25 Sep 2008 15:10:14 -0000 > These are the tuning settings I use: > > vm.kmem_size="1536M" > vm.kmem_size_max="1536M" > vfs.zfs.arc_min="16M" > vfs.zfs.arc_max="64M" > > The entire copying process took almost 2 hours. Not once did I > experience kmem exhaustion. I can *guarantee* that I would have crashed > the box numerous times had I not tuned the machine with the values > above. I am interested in the last two values you have there - I also use ZFS and tune to prevent memory exhaustion. I tune kmem_size, but I have not bothered toi set the arc_min - and the default appears to be 16M anyway. The arc_max value I do set, but I got dreadful performance when I had it at 6M, so I upped it to 128M. This has not resulted in any panics, and gives much better performance. As I understand it there is only one ARC, and it comes from kernel space too, so setting it to an extra 64 meg should not use that much more memory, yes ? My setup is: vm.kmem_size="1024M" vm.kmem_size_max="1024M" vfs.zfs.arc_max="128M" vfs.zfs.prefetch_disable=1 This is on a 2gb amd64 machine, and works beautifully, with no out of memory errors and panics. I have been trying to panic this for a few days. I will probably chnage the kmem size to 1536 which is what I use on other machines though. -pete.