From owner-freebsd-stable@FreeBSD.ORG Thu Sep 25 15:47:10 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 0D9A91065689 for ; Thu, 25 Sep 2008 15:47:10 +0000 (UTC) (envelope-from gaijin.k@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.27]) by mx1.freebsd.org (Postfix) with ESMTP id B2DAF8FC1E for ; Thu, 25 Sep 2008 15:47:09 +0000 (UTC) (envelope-from gaijin.k@gmail.com) Received: by qw-out-2122.google.com with SMTP id 9so64150qwb.7 for ; Thu, 25 Sep 2008 08:47:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=gHtOcq7JySq9YLwLKn54g9+r4yAcgleTHmrX/9xtCDg=; b=dCFcB1YPul6DfJFiUtKGpdaHgrLuai7+1z/+qcuLO8W9Tb17ijxsykbF0u0olURT3m B55yqsa1UMCWO08bJLeTgmVQJcBSKYVO23hc32SMZzLYdly8rf7nTQKqzJjcD4kBbuOI /QOEo0cgP/IqzqW0g5wIa9LcIgUfIR+YCJJxs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=f6oaI4wMUoz2qN2XFHiYZ92WSy1Fny+XkM70DMp+qvHBpezC4FSBQ0/rT3fExzLWNj I7ytaDbVd5ZlhGGeO8Vx9uU0bIcFG0SLmnYX73nS4Uz56lmpRRaWrMeWSKIC/Eu/mVay fN1i8u5LvzEl88yAAcbA3AzpdhBraeXRoOnjc= Received: by 10.214.149.6 with SMTP id w6mr7038866qad.40.1222357628638; Thu, 25 Sep 2008 08:47:08 -0700 (PDT) Received: from ?10.0.3.231? ( [70.111.10.128]) by mx.google.com with ESMTPS id 4sm884426yxq.9.2008.09.25.08.47.07 (version=SSLv3 cipher=RC4-MD5); Thu, 25 Sep 2008 08:47:08 -0700 (PDT) From: "Alexandre \"Sunny\" Kovalenko" To: Pete French In-Reply-To: References: Content-Type: text/plain; charset=utf-8 Date: Thu, 25 Sep 2008 11:46:41 -0400 Message-Id: <1222357601.978.11.camel@RabbitsDen> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 8bit Cc: koitsu@FreeBSD.org, freebsd-stable@freebsd.org, admin@kkip.pl 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:47:10 -0000 On Thu, 2008-09-25 at 16:10 +0100, Pete French 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" > > > > > 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 ? On my RELENG_7 (circa August 14th) vfs.zfs.arc_min: 16777216 vfs.zfs.arc_max: 402653184 seem to be set by default. Yes, that is "384M". I have vm.kmem_size_max="512M" vm.kmem_size="512M" set in my /boot/loader.conf, and vfs.ufs.dirhash_maxmem=16777216 kern.maxvnodes=100000 set in /etc/sysctl.conf This is amd64 with 3GB of real memory. ZFS pool is used to serve music, digital pictures and video to the rest of household, as well as provide target for the weekly backups from couple of Windows desktops, so use is not that heavy. Machine has been up for 22 days and has shown no ill effects that I can notice. -- Alexandre "Sunny" Kovalenko (Олександр Коваленко)