From owner-freebsd-stable@FreeBSD.ORG Fri May 10 02:12:53 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id BA5E61C6 for ; Fri, 10 May 2013 02:12:53 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-wg0-x22e.google.com (mail-wg0-x22e.google.com [IPv6:2a00:1450:400c:c00::22e]) by mx1.freebsd.org (Postfix) with ESMTP id 5614B110 for ; Fri, 10 May 2013 02:12:53 +0000 (UTC) Received: by mail-wg0-f46.google.com with SMTP id n12so3507341wgh.1 for ; Thu, 09 May 2013 19:12:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=XKDEGhgGtBxlZ0JVn8gyOLKC7HlQioYarLs2YwpMgNo=; b=qz7jjBRjmZKeQ0JaxpM0FtrirobmFifnrsFCIHSUUKOEjn3QgWSHkf0w1wSztsOXu2 MqvMKuP+zXR3lqs3SCAR/Lb3rnX75+ncLFyVhxe4JpHQ1AKph5sPPR2OKiibGii/asNJ 0hT2NyIQZK/axFkEei7j/AAsH4D1eqAPh0GuKF5BzZJyeG3bWj5QW9e6pivi9NGHxdZ2 2RQgcEmp8rDqwQnU34+Lwn+Sf1pjujx59hGtwoWUCz4p+y2mcgI7QS7/jZsyKkiyhQr+ G2cQf0hwtpWWHxcEV2JnXeDIgXOWb3Eemy6rdNmbHGjQfIAgq2CYxE8EtYMkCbH+Gj+H qH/g== MIME-Version: 1.0 X-Received: by 10.194.92.231 with SMTP id cp7mr21493108wjb.3.1368151972456; Thu, 09 May 2013 19:12:52 -0700 (PDT) Received: by 10.194.119.131 with HTTP; Thu, 9 May 2013 19:12:52 -0700 (PDT) In-Reply-To: <518C51AF.5050609@gmail.com> References: <518BA237.3030700@gmail.com> <518C450B.5070809@ShaneWare.Biz> <518C51AF.5050609@gmail.com> Date: Thu, 9 May 2013 21:12:52 -0500 Message-ID: Subject: Re: recommended memory for zfs From: Adam Vande More To: Benjamin Adams Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-stable@freebsd.org" , Shane Ambler X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 May 2013 02:12:53 -0000 Probably the simplest answer is that you already have sufficient memory to run ZFS. As someone already mentioned you should use AMD64, not i386. If your setup isn't fast enough with tuning, add more if it's the bottleneck. On Thu, May 9, 2013 at 8:47 PM, Benjamin Adams wrote: > On 05/09/2013 08:53 PM, Shane Ambler wrote: >> >> On 09/05/2013 22:48, Benjamin Adams wrote: >>> >>> Hello zfs question about memory. >>> I heard zfs is very ram hungry. >>> Service looking to run: >>> - nginx >>> - postgres >>> - php-fpm >>> - python >>> >>> I have a machine with two quad core cpus but only 4 G Memory >>> >>> I'm looking to buy more ram now. >>> What would be the recommend amount of memory for zfs across 6 drives on >>> this setup? >>> >> >> I believe I heard a calculation of 1GB cache per 1TB of disk. But >> basically zfs will use all free ram available if you access that much data >> from disk. You will want to set vfs.zfs.arc_max to allow enough ram for your >> apps to work in. >> >> If you consider the files for your website and the data you store you may >> find that you would never fill more than 500MB of cache. >> >> If you will be serving large media files that will easily use up the cache >> you could give them their own filesystem that only caches metadata - zfs set >> primarycache=metadata zroot/mediafiles >> >> > Thanks for all the replies Size of DB and HD's are: > > Current DB Size = 23 GB > HD sizes = (6) 500 GB drives > > > > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" -- Adam Vande More