kern/146528: [zfs] Severe memory leak in ZFS on i386
Jeremy Chadwick
freebsd at jdc.parodius.com
Wed Jan 25 11:59:15 UTC 2012
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 at parodius.com |
| Parodius Networking http://www.parodius.com/ |
| UNIX Systems Administrator Mountain View, CA, US |
| Making life hard for others since 1977. PGP 4BD6C0CB |
More information about the freebsd-fs
mailing list