From owner-freebsd-stable@freebsd.org Tue Jul 31 22:09:58 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 03EF1106665C for ; Tue, 31 Jul 2018 22:09:58 +0000 (UTC) (envelope-from markjdb@gmail.com) 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 86FBA80039 for ; Tue, 31 Jul 2018 22:09:57 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 48304106665B; Tue, 31 Jul 2018 22:09:57 +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 26267106665A for ; Tue, 31 Jul 2018 22:09:57 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6E20B80038 for ; Tue, 31 Jul 2018 22:09:56 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-pg1-x52b.google.com with SMTP id x5-v6so9745136pgp.7 for ; Tue, 31 Jul 2018 15:09:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=6URdo8Y5uQuFRojjhLnLtureVUEr5881DM40vxSHsQk=; b=DsGxf8VtKGiMh5v++T+dz6lu3XpO5DUERQYB3IpifKJQEGEv8Tr+Mv6dDAsShFizsG Djyf9fMTmwnE0K9cgW84eLIbowdi3C1EDHVR8TmauFygCeBW1zGmA0x1U8Zg9ePaiIop eyX0yXdzRBrjYx6QvIndfzShqXJ5OnbFkL1M0bjhOFn39C4gWzonrujK2dzUlPHZR0uQ eZDNzh6YQtjZwxXF3pDldgfUNTKYABK96aZ9WCfi2fMHGWmfxcQyXNiRu+6y3H8AzNqq 1F7gwdQswD6X0/4RIDsHoAU//+PDyRCMxhkDh1HwdCoQYhUTNQBTmVK+Y1/xGEXB2we6 icyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=6URdo8Y5uQuFRojjhLnLtureVUEr5881DM40vxSHsQk=; b=O4eMP1gsPTijf4cGYYDAcGJ2fuKbOVU2WHfQQHjECdMaX5BnxuE/iiiN6NrRb9mVrX 4NsOqUJIuw4yjUzQqbiKQVTEsEZWT9pwmtM9HqQYx18C4sazojUzR79ND+/v0k1miHPL WVSNK4MgTLgVeRl+zBWw+ucMN1l9+rGN9rIJa/rSjJa7ZqlD/I1XghwraYJZPA6E7YG1 cRc0p6gc35UdH/aIa2MoF9gP2TxuWdVt3WnrWR4ijuKpN9OgrTdBHpks3KFebu5qMxwq abNBi7/IRkIw1lb64q0sfUpxWQrMtCAxnaZ21lM6/EvXtsKGR8KgHjFIZ9uhwAdFuggN bG7g== X-Gm-Message-State: AOUpUlGdY1V88NSiBV8VT6GXT5Eg1VbfnNkwwHOTvU1FvXGm7yZNY1T4 6XEQ++c6yNaYkhphj99BqUwtN2Vr X-Google-Smtp-Source: AAOMgpfGqguT2RK89pYL2IDUvBxyVkE3HprCfd0FHiveFzh90/EUvKQXGO5o7oqtImlMz7fZ8ie3/A== X-Received: by 2002:a63:b74a:: with SMTP id w10-v6mr21859056pgt.266.1533074994921; Tue, 31 Jul 2018 15:09:54 -0700 (PDT) Received: from raichu (toroon0560w-lp130-09-70-52-224-239.dsl.bell.ca. [70.52.224.239]) by smtp.gmail.com with ESMTPSA id k26-v6sm42710229pfb.167.2018.07.31.15.09.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jul 2018 15:09:54 -0700 (PDT) Sender: Mark Johnston Date: Tue, 31 Jul 2018 18:09:48 -0400 From: Mark Johnston To: Mark Martinec Cc: stable@freebsd.org Subject: Re: All the memory eaten away by ZFS 'solaris' malloc - on 11.1-R amd64 Message-ID: <20180731220948.GA97237@raichu> References: <1a039af7758679ba1085934b4fb81b57@ijs.si> <3e56e4de076111c04c2595068ba71eec@ijs.si> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3e56e4de076111c04c2595068ba71eec@ijs.si> User-Agent: Mutt/1.10.1 (2018-07-13) 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: Tue, 31 Jul 2018 22:09:58 -0000 On Tue, Jul 31, 2018 at 11:54:29PM +0200, Mark Martinec wrote: > I have now upgraded this host from 11.1-RELEASE-p11 to 11.2-RELEASE > and the situation has not improved. Also turned off all services. > ZFS is still leaking memory about 30 MB per hour, until the host > runs out of memory and swap space and crashes, unless I reboot it > first every four days. > > Any advise before I try to get rid of that faulted disk with a pool > (or downgrade to 10.3, which was stable) ? If you're able to use dtrace, it would be useful to try tracking allocations with the solaris tag: # dtrace -n 'dtmalloc::solaris:malloc {@allocs[stack(), args[3]] = count()} dtmalloc::solaris:free {@frees[stack(), args[3]] = count();}' Try letting that run for one minute, then kill it and paste the output. Ideally the host will be as close to idle as possible while still demonstrating the leak.