From owner-freebsd-stable@freebsd.org Sat Aug 4 17:02:02 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 AEA2B1070D35 for ; Sat, 4 Aug 2018 17:02:02 +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 4695580080 for ; Sat, 4 Aug 2018 17:02:02 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 0B5B41070D34; Sat, 4 Aug 2018 17:02:02 +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 DDB681070D33 for ; Sat, 4 Aug 2018 17:02:01 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) (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 666C38007E for ; Sat, 4 Aug 2018 17:02:01 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-pf1-x42c.google.com with SMTP id j8-v6so4826175pff.6 for ; Sat, 04 Aug 2018 10:02:01 -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=l76n25KT70ElNJn3EJfgcvNba7KkmTYcYVBaAGyD58M=; b=CeK8X6PETG4JuJ2ZGDrL54dln/PJ7ErgQQGhM1wtn7Ic+VRcdNh5yfn/VPknAlAKyl yyDq/Ofu5KAMCkgGUX72SonVWhZ9bcGvmxe/+SfOqWW7Zh8f0dI3JI64SGGoFJ7ZrTxq QyAu5gGyyEoNQKLJvOiqkMzOhNR7T0OJBbeW7fHudp2nYOMaAyIoLvRJDTA94cU1gtGJ gcSP5k9Uj4ZUDbr0qnTJC57alSYgu/a4KPZwI/4h/DdtEuOJ0tgnZOvloMalEgCXedw3 DPu9eUaiCE7i1MK4hwsrsov8Du2tBThO/rlqc5eWWYdu/XZocOoE/e3u+6cghZlIdD1N rGkw== 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=l76n25KT70ElNJn3EJfgcvNba7KkmTYcYVBaAGyD58M=; b=YSZ3mlS+e8K0kg8AOtkRACc2vshqeOo9a/XjKBJDf8ELwor/V7zrAaWZTaJ3i3Y/+0 G5vWF4WJMPgun2JuPUPyxZdiryNGVkyBXSAoMwv2bae3g8SDnipAQ6kvWPtZYJqeCcT+ 8uSqTIsVa4d5h2BplJR32Rx3rBOq0/4FasgnIb+doSrmF9Kg3ub2qx1lWMzaNV0hwe7q ZV3GL4TTmT14hEx/pW/uFnBCPnEZ8ZwH7laYQRXRIxJ5o22J476LJNbra+f+uzzbc0Y7 I/gFRytCQDY5VtVReptM4qX207s2vioU2cLMafYg28Jchb8sChQcT3oQKuFGg/CpZPGH BXTA== X-Gm-Message-State: AOUpUlGrj2m3yi6CvMq2SqBD9qrVCSR9GVAl1fiJ92xZdVaJkJZOJ8aj C43ShHPqDNanCgF2meNixy4= X-Google-Smtp-Source: AAOMgpdZ/6ChoiEt0r2bE+VqrxfA2UTRuglVwSaAx1/fn1PzUIumEP/x+GdY1o+yq8fPMmIeu7QHoA== X-Received: by 2002:a65:5245:: with SMTP id q5-v6mr8161026pgp.67.1533402120176; Sat, 04 Aug 2018 10:02:00 -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 16-v6sm13679579pfo.164.2018.08.04.10.01.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Aug 2018 10:01:59 -0700 (PDT) Sender: Mark Johnston Date: Sat, 4 Aug 2018 13:01:54 -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: <20180804170154.GA12146@raichu> References: <1a039af7758679ba1085934b4fb81b57@ijs.si> <3e56e4de076111c04c2595068ba71eec@ijs.si> <20180731220948.GA97237@raichu> <2ec91ebeaba54fda5e9437f868d4d590@ijs.si> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 17:02:02 -0000 On Fri, Aug 03, 2018 at 09:11:42PM +0200, Mark Martinec wrote: > More attempts at tracking this down. The suggested dtrace command does > usually abort with: > > Assertion failed: (buf->dtbd_timestamp >= first_timestamp), > file > /usr/src/cddl/contrib/opensolaris/lib/libdtrace/common/dt_consume.c, > line 3330. Hrmm. As a workaround you can add "-x temporal=off" to the dtrace(1) invocation. > but with some luck soon after each machine reboot I can leave the dtrace > running for about 10 or 20 seconds (max) before terminating it with a > ^C, > and succeed in collecting the report. If I miss the opportunity to > leave > dtrace running just long enough to collect useful info, but not long > enough for it to hit the assertion check, then any further attempt > to run the dtrace script hits the assertion fault immediately. > > Btw, (just in case) I have recompiled kernel from source > (base/release/11.2.0) > with debugging symbols, although the behaviour has not changed: > > FreeBSD floki.ijs.si 11.2-RELEASE FreeBSD 11.2-RELEASE #0 r337238: > Fri Aug 3 17:29:42 CEST 2018 > mark@xxx.ijs.si:/usr/obj/usr/src/sys/FLOKI amd64 > > > Anyway, after several attempts I was able to collect a useful dtrace > output from the suggested dtrace stript: > > # dtrace -n 'dtmalloc::solaris:malloc {@allocs[stack(), args[3]] = > count()} dtmalloc::solaris:free {@frees[stack(), args[3]] = count()}' > > while running "zpool list" repeatedly in another terminal screen: I think running "zpool list" is adding a lot of noise to the output. Could you retry without doing that?