From owner-freebsd-stable@freebsd.org Fri Aug 17 13:37:01 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 49396106F198 for ; Fri, 17 Aug 2018 13:37:01 +0000 (UTC) (envelope-from Mark.Martinec+freebsd@ijs.si) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id D8AAF7DD2E for ; Fri, 17 Aug 2018 13:37:00 +0000 (UTC) (envelope-from Mark.Martinec+freebsd@ijs.si) Received: by mailman.ysv.freebsd.org (Postfix) id 9D07D106F197; Fri, 17 Aug 2018 13:37:00 +0000 (UTC) Delivered-To: stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8BBFB106F196 for ; Fri, 17 Aug 2018 13:37:00 +0000 (UTC) (envelope-from Mark.Martinec+freebsd@ijs.si) Received: from mail.ijs.si (mail.ijs.si [IPv6:2001:1470:ff80::25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1429C7DD29; Fri, 17 Aug 2018 13:37:00 +0000 (UTC) (envelope-from Mark.Martinec+freebsd@ijs.si) Received: from amavis-ori.ijs.si (localhost [IPv6:::1]) by mail.ijs.si (Postfix) with ESMTP id 41sPPl0fVCz7X0; Fri, 17 Aug 2018 15:36:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ijs.si; h= user-agent:message-id:references:in-reply-to:organization :subject:subject:from:from:date:date:content-transfer-encoding :content-type:content-type:mime-version:received:received :received:received; s=jakla4; t=1534513006; x=1537105007; bh=4AI GAx7gqEGzcv/6UCZGOoXFkPOXmjbzLF8EjTHvtbk=; b=LrBC0lCuJygGAAtji+K TLCV3vPyWpjpMSCsw+GNztKGWA7nI2Iqbh+aIUMlDfmBd+FZaJWr+tD6s0ShVmdt kbWp444GG3HuTtJtz2v/Gdg9hdtgOGM4+0Uy8+eaAlShlyFNXE1CeUBF6r1755sk sLI8m7haET8riOhEwTEvDvvI= X-Virus-Scanned: amavisd-new at ijs.si Received: from mail.ijs.si ([IPv6:::1]) by amavis-ori.ijs.si (mail.ijs.si [IPv6:::1]) (amavisd-new, port 10026) with LMTP id Yhckenv-Zcs3; Fri, 17 Aug 2018 15:36:46 +0200 (CEST) Received: from mildred.ijs.si (mailbox.ijs.si [IPv6:2001:1470:ff80::143:1]) by mail.ijs.si (Postfix) with ESMTP id 41sPPV3zGLz7Wv; Fri, 17 Aug 2018 15:36:46 +0200 (CEST) Received: from nabiralnik.ijs.si (nabiralnik.ijs.si [IPv6:2001:1470:ff80::80:16]) by mildred.ijs.si (Postfix) with ESMTP id 41sPPV3gzsz14d; Fri, 17 Aug 2018 15:36:46 +0200 (CEST) Received: from neli.ijs.si (2001:1470:ff80:88:21c:c0ff:feb1:8c91) by nabiralnik.ijs.si with HTTP (HTTP/1.1 POST); Fri, 17 Aug 2018 15:36:46 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Fri, 17 Aug 2018 15:36:46 +0200 From: Mark Martinec To: stable@freebsd.org Cc: Andriy Gapon , Alan Somers , Mark Johnston Subject: Re: All the memory eaten away by ZFS 'solaris' malloc - on 11.1-R amd64 Organization: Jozef Stefan Institute In-Reply-To: <34871f1f-b890-a129-7ead-ed15d8e2e22e@FreeBSD.org> References: <1a039af7758679ba1085934b4fb81b57@ijs.si> <3e56e4de076111c04c2595068ba71eec@ijs.si> <20180731220948.GA97237@raichu> <2ec91ebeaba54fda5e9437f868d4d590@ijs.si> <20180804170154.GA12146@raichu> <87f6a55cc2ee3d754ddb89475bbfbab8@ijs.si> <20180804194757.GD12146@raichu> <34871f1f-b890-a129-7ead-ed15d8e2e22e@FreeBSD.org> Message-ID: <150d7a0097ff03b4bea20bf2096a8d09@ijs.si> X-Sender: Mark.Martinec+freebsd@ijs.si User-Agent: Roundcube Webmail/1.3.1 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Aug 2018 13:37:01 -0000 > On 07/08/2018 15:58, Mark Martinec wrote: >> Collected, here it is: >>   https://www.ijs.si/usr/mark/tmp/dtrace-cmd.out.bz2 2018-08-14 11:18, Andriy Gapon wrote: > 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). Superb, thanks!!! I have opened a bug report now: Bug 230704: All the memory eaten away by ZFS 'solaris' malloc https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230704 Mark