Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Jun 2011 23:18:49 +0200
From:      Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no>
To:        freebsd-stable@freebsd.org
Subject:   Re: Fileserver panic - FreeBSD 8.1-stable and zfs
Message-ID:  <20110603231849.02fe4317.torfinn.ingolfsen@broadpark.no>
In-Reply-To: <20110602230921.GA57825@icarus.home.lan>
References:  <20110602213116.425400b6.torfinn.ingolfsen@broadpark.no> <20110602195026.GA54023@icarus.home.lan> <20110603003940.d0b3821b.torfinn.ingolfsen@broadpark.no> <20110602230921.GA57825@icarus.home.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
Update:

On Thu, 02 Jun 2011 16:09:21 -0700
Jeremy Chadwick <freebsd@jdc.parodius.com> wrote:

> Anyway, your system has 4GB of RAM installed in it, so on 8.1-STABLE I'd
> recommend you try these settings:
> 
> vm.kmem_size="3584M"
> vm.kmem_size_max="3584M"
> vfs.zfs.arc_max="2048M"
> 
> Now, these are all chosen by me off the top of my head with absolutely
> ZERO knowledge of what the memory usage on this system is like
> **without** ZFS in the picture.  I'm making a lot of assumptions, and
> I'm assuming worst-case scenarios.  For example, if this machine also
> runs mysqld and its tuned to take up a lot of memory, I would advocate
> dropping vfs.zfs.arc_max to 1536M or 1024M.  Please don't drop it "too
> much"; ZFS performs best when it has lots of ARC.
> 
> Since you mentioned going to 8.2-STABLE, all you need to tune on that
> version is one single tunable:
> 
> vfs.zfs.arc_max

The machine now runs 8.2-stable:
root@kg-f2# uname -a
FreeBSD kg-f2.kg4.no 8.2-STABLE FreeBSD 8.2-STABLE #5: Fri Jun  3 17:20:39 CEST 2011     root@kg-f2.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64
And I have added the following to /boot/loader.conf:
vfs.zfs.arc_max="2048M"
Hopefully, this will keep the machine rock solid (unitil something else happens, at least).

Oh, and thanks for your advice - really helpful.
-- 
Torfinn




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110603231849.02fe4317.torfinn.ingolfsen>