Date: Fri, 28 May 2010 06:45:49 -0700 From: Jeremy Chadwick <freebsd@jdc.parodius.com> To: Andriy Gapon <avg@icyb.net.ua> Cc: amd64@freebsd.org, freebsd-fs@freebsd.org Subject: Re: FreeBSD 8.1-Prerelease Panic amd64 w/ZFS.. Message-ID: <20100528134549.GA75411@icarus.home.lan> In-Reply-To: <4BFF894F.4010008@icyb.net.ua> References: <060401cafe37$a411b240$ec3516c0$@net> <4BFF894F.4010008@icyb.net.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 28, 2010 at 12:13:51PM +0300, Andriy Gapon wrote: > on 28/05/2010 10:30 Howard Leadmon said the following: > > I know there used to be some issues with this a while back, but thought > > with the 8.x FBSD servers most of this tuned itself, or then again maybe > > this is something different. > > > > > > > > For the first time I ever recall, I found my FreeBSD 8 server was crashed > > this past morning, with the following error: > > > > > > > > panic:kmem_malloc(131072):kmem_map to small: 1296826368 total allocated > > > > cupid=4 > > O wow, this is an amd64 system (with 4G RAM) and you've got "kmem_map too > small". That's very very strange. It is? On amd64, vm.kmem_size (not vm.kmem_size_max) is what has to be increased. I can point folks to the "official" statement from pjd@ and some others if need be. For a very long time I questioned this because for an even longer amount of time we were being told to increase vm.kmem_size_max. vm.kmem_size_max, by default, is already huge on amd64 (~320GB or something like that). Proof: vm.kmem_size_max: 329853485875 To the OP: you will need to increase vm.kmem_size in /boot/loader.conf and reboot the system. "What value do I pick?" With 4GB, I would recommend you use these two variables: vm.kmem_size="2048M" vfs.zfs.arc_max="1536M" This will increase the available kmem, and also limit the ARC size explicitly to nothing larger than 1.5GB. This should stabilise your system. -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100528134549.GA75411>