From owner-freebsd-dtrace@freebsd.org Sat May 20 09:15:48 2017 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 188EAD7571D for ; Sat, 20 May 2017 09:15:48 +0000 (UTC) (envelope-from zaphod@berentweb.com) Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (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 ACE55186A for ; Sat, 20 May 2017 09:15:47 +0000 (UTC) (envelope-from zaphod@berentweb.com) Received: by mail-wm0-x22a.google.com with SMTP id 7so19074352wmo.1 for ; Sat, 20 May 2017 02:15:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=berentweb-com.20150623.gappssmtp.com; s=20150623; h=sender:date:from:to:subject:message-id:mime-version :content-transfer-encoding; bh=+GUwoS3iqtX65Hf6elv52BjBbM+9+m5eLxJE1t0Vlt0=; b=tT0rx5haVs1lwEeN2Tuovwn5LC7ahbgraHAUC7/azgsYac8lvk4YQYa4jq6Mq0rSLR qaGj+bwgUFEEbrN4T/Tr3OIwGeYAu0voVE3QZGm7rToeA3awDPAlMSrayVJTK1jy2HTR KaPApd6gSNhNTGoltkN8rnDqOa61VYKYpv8DF+P/uvi+uyEtR/KDMD+YEqDXKjhBCZlU alr0P8OU9OOqYXbLLPS9bWa76inhjoVmbfkYE3jU5LbmUmqc1sUzMWmbzpR4rfd6RdAQ dGI+WIS8cDQpM4X5+JIfNPaVoihSnT/iptBNm3ungGN8nNnDwlyLsO/pdoFG6JJ0xXLs vKwA== 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:subject:message-id :mime-version:content-transfer-encoding; bh=+GUwoS3iqtX65Hf6elv52BjBbM+9+m5eLxJE1t0Vlt0=; b=oT0DGyI/EqbDgGTdlaZQNJP4Bi4Xq+nf2l4FFtlrbBqMUOUFxzSci5tVZlcUZXGlqt 78QlOpYI/fRBcXxbi52dQ4I1LKEdsh2uiLBTdDJVfZdbua2IqwGNfkRKWarztumBiwCY +8KmkYf4J7Kyz7bUmVoxOhT6YUfENoZ4Sl7T1dHcgDdfidXJZlkg1vRcVMANkj/g+7Do 4GAuRydBXbBo7vsaqXnrnaAyfPao/e7sT8FHluOZVA/rwVs8oiOti+YCm6R54zDUIaBx pvWZVTTrP3XGauPwWhfT3ZBPo3Bg+jmnQj59w8g3vCTYm5JUyORni3eGXYu6g0D/Dq7h zXWA== X-Gm-Message-State: AODbwcDl8AMBQunJurN05abunzqypiNOo9WiFlT/SJ0CKe+/BRFTgowg yylrzh1v4l9KEPoamjo= X-Received: by 10.28.26.71 with SMTP id a68mr19710841wma.75.1495271745678; Sat, 20 May 2017 02:15:45 -0700 (PDT) Received: from rsbsd ([24.133.238.42]) by smtp.gmail.com with ESMTPSA id f70sm17567659wmd.25.2017.05.20.02.15.43 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 20 May 2017 02:15:44 -0700 (PDT) Sender: "Raif S. Berent" Date: Sat, 20 May 2017 12:10:29 +0300 From: Beeblebrox To: freebsd-dtrace@freebsd.org Subject: dtrace noob: How is it used? Message-ID: <20170520121029.708bc827@rsbsd> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 May 2017 09:15:48 -0000 Hello, simple noob question. Trying to use dtrace on my drm-next kernel that leaks memory to the extent that all swap space gets filled. easy enogh: kldload dtraceall But which parameters and exactly how am I supposed to capture afterwards? I assume most useful info would be a) memory leaks per minute and b) source of leak. Wiki page was not much help for understanding usage: https://wiki.freebsd.org/DTrace/One-Liners * /usr/share/dtrace has scirpts, are those sufficient for the problem or should I add sysutils/DTraceToolkit? * Which script(s) would provide adequate info for this problem and how could I log a per minute (or perhaps per event) output from the probes? Thanks --=20 FreeBSD_amd64_12-Current_RadeonKMS Please CC my email when responding, mail from list is not delivered.