From owner-freebsd-fs@FreeBSD.ORG Mon Oct 13 12:38:26 2008 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 4E8661065696 for ; Mon, 13 Oct 2008 12:38:26 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA09.westchester.pa.mail.comcast.net (qmta09.westchester.pa.mail.comcast.net [76.96.62.96]) by mx1.freebsd.org (Postfix) with ESMTP id ED1B38FC17 for ; Mon, 13 Oct 2008 12:38:25 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA13.westchester.pa.mail.comcast.net ([76.96.62.52]) by QMTA09.westchester.pa.mail.comcast.net with comcast id SBm21a00217dt5G59CeQct; Mon, 13 Oct 2008 12:38:24 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA13.westchester.pa.mail.comcast.net with comcast id SCeP1a0072P6wsM3ZCePGV; Mon, 13 Oct 2008 12:38:24 +0000 X-Authority-Analysis: v=1.0 c=1 a=uLa3tYrcrR8A:10 a=6I5d2MoRAAAA:8 a=QycZ5dHgAAAA:8 a=68AR_x4ShNVt--3BVtUA:9 a=gNV3tk284n14kU-pGjs7tL7zzz8A:4 a=I1Jhw5_g8joA:10 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 60764C9419; Mon, 13 Oct 2008 05:38:23 -0700 (PDT) Date: Mon, 13 Oct 2008 05:38:23 -0700 From: Jeremy Chadwick To: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <20081013123823.GA18738@icarus.home.lan> References: <48F334A0.3080005@quip.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48F334A0.3080005@quip.cz> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-fs@freebsd.org Subject: Re: ZFS on backup fileserver - RAM usage 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, 13 Oct 2008 12:38:26 -0000 On Mon, Oct 13, 2008 at 01:44:32PM +0200, Miroslav Lachman wrote: > I am planning to install new server for backups with 4x 1TB SATA II > drives in RAIDZ. There will be about 20 separated filesystems from one > zpool, few jails with ssh (scp/sftp), rsync and maybe FTP daemons, no > other services with huge RAM utilization. As FreeBSD 7.1(-BETA) amd64 > still have some limits of kernel space memory, are there any benefits to > put more then 2GB or 3GB in this server? Will it be more stabel or > faster with for example 6GB of RAM? (I can buy it, RAM is really cheap > in these days, but will it have some sense or is it vaste?) Adding more RAM will work just fine for userland programs, meaning they will be able to make use of the additional RAM. The kernel, with regards to kmap and kmem, however, will not. If you need that functionality, you'll have to run CURRENT. > I am using this tuning on testing machine (with 2GB RAM): > vm.kmem_size="1024M" > vm.kmem_size_max="1024M" > vfs.zfs.prefetch_disable="1" > vfs.zfs.arc_min="16M" > vfs.zfs.arc_max="64M" > kern.maxvnodes="400000" > > (recommendations from http://wiki.freebsd.org/ZFSTuningGuide) > > Have somebody better results with another values? The values look fine, but keep in mind that you still may encounter crashing with that kind of load (you're sticking a lot of stuff on one single box, all of which utilises ZFS heavily). You'll simply need to tune these as those situations arise. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |