From owner-freebsd-stable@FreeBSD.ORG Mon Sep 29 08:13:31 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 B110B106569B for ; Mon, 29 Sep 2008 08:13:31 +0000 (UTC) (envelope-from admin@kkip.pl) Received: from mainframe.kkip.pl (kkip.pl [87.105.164.78]) by mx1.freebsd.org (Postfix) with ESMTP id 5F2478FC2D for ; Mon, 29 Sep 2008 08:13:31 +0000 (UTC) (envelope-from admin@kkip.pl) Received: from [192.168.0.10] by mainframe.kkip.pl with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KkDsl-000OvE-Aj; Mon, 29 Sep 2008 10:13:29 +0200 Message-ID: <48E08E28.90009@kkip.pl> Date: Mon, 29 Sep 2008 10:13:28 +0200 From: Bartosz Stec User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Ben Kelly , freebsd-stable@freebsd.org References: <48DB6772.1060400@kkip.pl> <20080925130227.GA13497@icarus.home.lan> <48DB9CAA.9060807@kkip.pl> <20080925145154.GA15486@icarus.home.lan> <48DCA0AF.5050000@kkip.pl> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-User: admin@kkip.pl X-Authenticator: plain X-Sender-Verify: SUCCEEDED (sender exists & accepts mail) X-Spam-Score: -8.9 X-Spam-Score-Int: -88 X-Exim-Version: 4.69 (build at 26-Jun-2008 18:19:28) X-Date: 2008-09-29 10:13:29 X-Connected-IP: 192.168.0.10:2823 X-Message-Linecount: 68 X-Body-Linecount: 55 X-Message-Size: 2404 X-Body-Size: 1668 X-Received-Count: 1 X-Recipient-Count: 2 X-Local-Recipient-Count: 2 X-Local-Recipient-Defer-Count: 0 X-Local-Recipient-Fail-Count: 0 Cc: 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: Mon, 29 Sep 2008 08:13:31 -0000 Ben Kelly wrote: > On Sep 26, 2008, at 4:43 AM, Bartosz Stec wrote: >> Jeremy Chadwick wrote: >>> >>> 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" >>> >> Yesterday I've added 512 MB memory to box (sum 1,5GB), and set >> vm.kmem_size and vm.kmem_size to "1024M". With pieces of 1024MB, >> 512MB, 256MB, 256MB available and 3 memory slots it is hard to have >> 2GB RAM ;) >> Until now it survived world cleaning/building/installing/bonnie++ >> benchmarkink/fs scrubing and general usage. Memory usage seems >> stable. If unfortunately kmem exhaustion will happen again I will >> experiment with ARC settings. >> IMHO you've explained gently a lot of zfs tuning concerns in this >> thread and they should be added to tuning guide - espacially >> explanation of ARC and prefetch settings. Thanks again! > > Did you increase KVA_PAGES in your kernel config as well? > > The default of 256 only allows 1GB of kernel memory total. Setting > KVA_PAGES to 384 would probably be good for a kmem_size of 1GB. This > would give leave you with 512MB of space for other things in the > kernel. In your kernel config: > > options KVA_PAGES=384 > > Sorry if you already knew this. I know its in the zfs tuning guide. > I just hadn't seen it mentioned in the thread yet and wanted to make > sure it wasn't missed. > > Hope that helps. > > - Ben > Indeed I know that. options KVA_PAGES=512 is included in my kernel config. Until now: # uptime 10:12 up 3 days, 10:32, 1 user, load averages: 0,00 0,03 0,00 Thanks :) -- Bartosz Stec