From owner-freebsd-stable@freebsd.org Sat Aug 4 19:48:03 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 AB50A1050FAA for ; Sat, 4 Aug 2018 19:48:03 +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 43848856A9 for ; Sat, 4 Aug 2018 19:48:03 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 0428C1050FA8; Sat, 4 Aug 2018 19:48:03 +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 D64BB1050FA7 for ; Sat, 4 Aug 2018 19:48:02 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 59D47856A8 for ; Sat, 4 Aug 2018 19:48:02 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-pf1-x434.google.com with SMTP id e13-v6so4918391pff.7 for ; Sat, 04 Aug 2018 12:48:02 -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=IOOki1FF1TsSL5EqbaQISYK1M4xsrsrQ/wtN/mWGx6M=; b=eXd4UPxnvlniqFxlhqX9i/3ry8kpxf6X+k15TFsdBnpAQbd69oxn6RaUfpWmw784ll qc4DzC3FzqQBTqI8oqeMZEZzsbNZ9R2wsRKwiVUSJzTGw1zKdBG+ZTPyJKDjhO5GLQSv gm1pXr2SERiu8O4eEuGaKfSfiIvLwBKfRdL5CZ49qpXaO7h8w0U5+IMuv4HlbMjpkqlv cuYOQxW0w8QlRdgqK5GANBvHVjPEYs25N7FD+WaY3VBh9AHRmegjuP/Bd47EVSIl+8Ad 2+zcas925tA9wOrcAj/XAjAce0aTiy7lLj+cCdVmLoNL+c0KyiXNZgHceo93jvKc/RrN ICbQ== 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=IOOki1FF1TsSL5EqbaQISYK1M4xsrsrQ/wtN/mWGx6M=; b=oF/PKx0jOApech6MLRnvUaUXxf4MUTyw0Bk/PCGy+2s085kLYZ1PhY7jwis3dWn2BI npgUWreDtDgQa4SDoay58x3q+AqoZOUdftMz5OjQrKpLUavHNLhV5o1uASu7DfywTfPt SOnYvjfz/jZ/OZRLruz0Z+2fDCEIl8cXNfRyNUA8N+f9bTRTXorbhMvufRW2BJdeXSPJ /tHeiYvQj5T4+UREF8Sw9fzYsfqXBAKEaxYMLqS9jyggj3h28c6EXif85TvZmBpfva5V HUutwp64w62ZIDhzpmjHFTN5/RIafDORZkprtdKVO0Q9f2aWQ+KD0VoqtFZ3z50514Rh sZFw== X-Gm-Message-State: AOUpUlFhsbii50qFe22P9RldJ/FfUB/QQ4qq12MSxdgS2g7MoJDYOh8w gpuaYnTCUKkDCmIapnRIRBaTmKo6 X-Google-Smtp-Source: AAOMgpe9axH7oor9ftlJM7E/VcnV8+HELRvDL2ogD/tAk1SNQbh7RuMseDupNb7C4nT/VaIrlTno9g== X-Received: by 2002:a62:201b:: with SMTP id g27-v6mr10191026pfg.253.1533412081398; Sat, 04 Aug 2018 12:48:01 -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 k64-v6sm17796567pfc.160.2018.08.04.12.47.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Aug 2018 12:48:00 -0700 (PDT) Sender: Mark Johnston Date: Sat, 4 Aug 2018 15:47:57 -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: <20180804194757.GD12146@raichu> References: <1a039af7758679ba1085934b4fb81b57@ijs.si> <3e56e4de076111c04c2595068ba71eec@ijs.si> <20180731220948.GA97237@raichu> <2ec91ebeaba54fda5e9437f868d4d590@ijs.si> <20180804170154.GA12146@raichu> <87f6a55cc2ee3d754ddb89475bbfbab8@ijs.si> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87f6a55cc2ee3d754ddb89475bbfbab8@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: Sat, 04 Aug 2018 19:48:03 -0000 On Sat, Aug 04, 2018 at 08:38:04PM +0200, Mark Martinec wrote: > 2018-08-04 19:01, Mark Johnston wrote: > > I think running "zpool list" is adding a lot of noise to the output. > > Could you retry without doing that? > > No, like I said previously, the "zpool list" (with one defunct > zfs pool) *is* the sole culprit of the zfs memory leak. > With each invocation of "zpool list" the "solaris" malloc > jumps up by the same amount, and never ever drops. Without > running it (like repeatedly under 'telegraf' monitoring > of zfs), the machine runs normally and never runs out of > memory, the "solaris" malloc count no longer grows steadily. Sorry, I missed that message. Given that information, it would be useful to see the output of the following script instead: # dtrace -c "zpool list -Hp" -x temporal=off -n ' dtmalloc::solaris:malloc /pid == $target/{@allocs[stack(), args[3]] = count()} dtmalloc::solaris:free /pid == $target/{@frees[stack(), args[3]] = count();}' This will record all allocations and frees from a single instance of "zpool list".