Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jan 2012 03:59:13 -0800
From:      Jeremy Chadwick <freebsd@jdc.parodius.com>
To:        Michel Le Cocq <miconof80.list@gmail.com>
Cc:        Garrett Cooper <yanegomi@gmail.com>, freebsd-fs@FreeBSD.org
Subject:   Re: kern/146528: [zfs] Severe memory leak in ZFS on i386
Message-ID:  <20120125115913.GA30376@icarus.home.lan>
In-Reply-To: <20120125084040.GA2831@e4310>
References:  <201110091940.p99JeJIc095036@freefall.freebsd.org> <20120125084040.GA2831@e4310>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 25, 2012 at 09:40:50AM +0100, Michel Le Cocq wrote:
> Before upgrade, I must use some mana things in my /boot/loader.conf
> 
> 	vm.kmem_size="330M"
> 	vm.kmem_size_max="330M"
> 	vfs.zfs.arc_max="40M"
> 	vfs.zfs.vdev.cache.size="5M"
> 	
> With this config my server was not so stable.
> 
> Some days it work perfectly, some others it freeze with kmem_malloc
> kmem_map too small. 
> Without this mana it freeze really often.

You should remove the vm.kmem_size and vm.kmem_size_max settings from
loader.conf.  (This is at least the case for amd64, and I'm pretty sure
the same advice applies to i386.  The lack-of need for adjusting either
of these variables has existed for, I think, a year now.)

The other options you have specific to ZFS can stay.

Also, your ARC maximum is extremely low; can you please increase this to
something more reasonable, say, 256MBytes or 384MBytes?  This may
explain the "freeze really often" clause, assuming you mean "the system
suddenly pauses, takes a while, then recovers".  If by "freeze really
often" you mean "locks up hard", that's a different problem.

If the freezing is intermittent (and recovers), are you using dedup or
compression?  If so, please cease.

-- 
| Jeremy Chadwick                                 jdc@parodius.com |
| Parodius Networking                     http://www.parodius.com/ |
| UNIX Systems Administrator                 Mountain View, CA, US |
| 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?20120125115913.GA30376>