All the memory eaten away by ZFS 'solaris' malloc - on 11.1-R amd64

Andriy Gapon avg at FreeBSD.org
Tue Aug 14 09:18:33 UTC 2018


On 07/08/2018 15:58, Mark Martinec wrote:
> Collected, here it is:
> 
>   https://www.ijs.si/usr/mark/tmp/dtrace-cmd.out.bz2


I see one memory leak, not sure if it's the only one.
It looks like vdev_geom_read_config() leaks all parsed vdev nvlist-s but
the last.  The problems seems to come from r316760.  Before that commit
the function would return upon finding the first valid config, but now
it keeps iterating.

The memory leak should not be a problem when vdev-s are probed
sufficiently rarely, but it appears that with an unhealthy pool the
probing can happen much more frequently (e.g., every time pools are listed).

-- 
Andriy Gapon


More information about the freebsd-stable mailing list