From owner-freebsd-stable@FreeBSD.ORG Mon Feb 27 23:40:46 2012 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 2E271106566B for ; Mon, 27 Feb 2012 23:40:46 +0000 (UTC) (envelope-from spork@bway.net) Received: from xena.bway.net (xena.bway.net [216.220.96.26]) by mx1.freebsd.org (Postfix) with ESMTP id E2F498FC13 for ; Mon, 27 Feb 2012 23:40:45 +0000 (UTC) Received: (qmail 95677 invoked by uid 0); 27 Feb 2012 23:40:45 -0000 Received: from smtp.bway.net (216.220.96.25) by xena.bway.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 27 Feb 2012 23:40:45 -0000 Received: (qmail 95665 invoked by uid 90); 27 Feb 2012 23:40:44 -0000 Received: from unknown (HELO ?10.3.2.40?) (spork@96.57.144.66) by smtp.bway.net with (AES128-SHA encrypted) SMTP; 27 Feb 2012 23:40:44 -0000 Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Charles Sprickman In-Reply-To: Date: Mon, 27 Feb 2012 18:40:43 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4F4B0F83.4090600@norma.perm.ru> <977febd5710ecac8cd9ea374ca0193f4.squirrel@109.169.62.232> To: Freddie Cash X-Mailer: Apple Mail (2.1084) Cc: "freebsd-stable@freebsd.org" , Nenhum_de_Nos Subject: Re: zfs, 1 gig of RAM and periodic weekly 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, 27 Feb 2012 23:40:46 -0000 On Feb 27, 2012, at 5:48 PM, Freddie Cash wrote: > On Mon, Feb 27, 2012 at 11:02 AM, Nenhum_de_Nos > wrote: >> On Mon, February 27, 2012 15:33, Chuck Swiger wrote: >>> On Feb 26, 2012, at 9:07 PM, Eugene M. Zheganin wrote: >>> [ ... ] >>>> all with zfs and one gig of RAM. >>>=20 >>> This isn't a sensible combination; I wouldn't try to run ZFS on = anything less than 4GB... >>=20 >> regardless of the pool size ? >>=20 >> I was planning on making an atom board a file server for my home, and = I have two options: soekris >> net6501 2GB RAM and intel board powered by the 330 atom (says 2GB = limited as well). My plans are >> to use from 4 up to 8 disks, and they should be 2TB at least. >>=20 >> As its for home use, some p2p software and mostly music listening and = sometimes movie streaming. >>=20 >> should 2GB be that bad, that I should drop it and use UFS instead ? >>=20 >> I may run any version of FreeBSD on it, was planning on 9-STABLE or = 9.1. >=20 > You can get away with 2 GB of RAM, if you spend a lot of time manually > tuning things to prevent kmem exhaustion and prevent ZFS ARC from > starving the rest of the system (especially on the network side of > things). >=20 > Definitely go with a 64-bit install. Even with less than 4 GB of RAM, > you'll benefit from the large kmem size and better auto-tuning. >=20 > Do not, under any circumstances, enable dedupe on a system with less > than 16 GB of RAM. :) >=20 > If at all possible, find a motherboard that will let you use more RAM. > 2 GB is usable. But 4 GB is the sweet spot for a simple file server. > And 16 GB is best for a system with over 10 TB of storage in the > pool. >=20 > My home media server is a 32-bit install of FreeBSD 8-STABLE (Dec 2011 > vintage) with only 2 GB of RAM, using 4x 500 GB SATA drives in 2 > mirror vdevs (boot off USB stick). Every couple of weeks it'll lock > up, usually under heavy torrent load. Prior to doing a bunch of "tune > loader.conf; reboot; crash; repeat" cycles, the box was very unstable. > 2 GB is barely enough for ZFS + NFS + Samba + torrents + whatever. Sounds very familiar. Substitute afp for samba and torrents for sabnzbd furiously unpacking things and we're probably doing much the same. 3 = 1TB Samsungs (+1 spare), 2 gmirror'd CF cards for boot. [spork@media ~]$ uptime 6:41PM up 60 days, 8:36, 1 user, load averages: 0.00, 0.02, 0.00 [spork@media ~]$ zpool list NAME SIZE USED AVAIL CAP HEALTH ALTROOT tank1 2.72T 1.89T 850G 69% ONLINE - [spork@media ~]$ grep avail /var/run/dmesg.boot=20 avail memory =3D 2087931904 (1991 MB) [spork@media ~]$ uname -a FreeBSD media..com 8.2-RELEASE FreeBSD 8.2-RELEASE #1: Tue Feb 22 = 04:44:55 EST 2011 spork@media..com:/usr/obj/usr/src/sys/MEDIA i386 Just in case I've hit on some special sauce in the loader.conf, here you go: [spork@media ~]$ cat /boot/loader.conf=20 zfs_load=3D"YES" #vfs.root.mountfrom=3D"zfs:zroot" vm.kmem_size_max=3D"1000M" vm.kmem_size=3D"1000M" vfs.zfs.arc_max=3D"200M" I used to be able to panic it regularly, but I just kept stepping the=20 kmem up and the arc down until it behaved. The uptime would be longer if my power wasn't as flakey. Charles >=20 > --=20 > Freddie Cash > fjwcash@gmail.com > _______________________________________________ > 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"