From owner-svn-src-all@freebsd.org Wed Jun 6 05:28:24 2018 Return-Path: Delivered-To: svn-src-all@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 8379BFE221B; Wed, 6 Jun 2018 05:28:24 +0000 (UTC) (envelope-from mmacy@freebsd.org) Received: from smtp.freebsd.org (unknown [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2C0EF844CF; Wed, 6 Jun 2018 05:28:24 +0000 (UTC) (envelope-from mmacy@freebsd.org) Received: from mail-it0-f41.google.com (mail-it0-f41.google.com [209.85.214.41]) (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)) (Authenticated sender: mmacy) by smtp.freebsd.org (Postfix) with ESMTPSA id E4911231C4; Wed, 6 Jun 2018 05:28:23 +0000 (UTC) (envelope-from mmacy@freebsd.org) Received: by mail-it0-f41.google.com with SMTP id m194-v6so6502754itg.2; Tue, 05 Jun 2018 22:28:23 -0700 (PDT) X-Gm-Message-State: APt69E05zxvGMFaT/tW0iNhxkOozOS4sqpOvSjzYR2n4GvKwk6qzoEqd DKC0sysNnhaK5BIbW7QsYQEIhNC9Mp7bdS5dwcE= X-Google-Smtp-Source: ADUXVKL8+OhntP7u8LXkoVLtzgXfVFx8KTsmnx6JfZioSrF6wfcBAljzgySpg0uUrZY6OC3jO786IIqsh0vYZ2pfuPw= X-Received: by 2002:a24:6c8a:: with SMTP id w132-v6mr1091408itb.4.1528262903375; Tue, 05 Jun 2018 22:28:23 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:8cd:0:0:0:0:0 with HTTP; Tue, 5 Jun 2018 22:28:22 -0700 (PDT) In-Reply-To: <201806060514.w565E5Fj079417@slippy.cwsent.com> References: <201806060514.w565E5Fj079417@slippy.cwsent.com> From: Matthew Macy Date: Tue, 5 Jun 2018 22:28:22 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r334701 - in head: lib/libpmc share/examples/hwpmc sys/dev/hwpmc sys/sys usr.sbin/pmc usr.sbin/pmcstat To: Cy Schubert Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2018 05:28:24 -0000 -DNO_CLEAN doesn't work with the file rename. On Tue, Jun 5, 2018 at 10:14 PM, Cy Schubert wrote: > amd64 > > ~cy > > In message il.com> > , Matthew Macy writes: >> Which arch? Universe is passing for me (except for pre-existing >> breakage of i386-LINT-NOINET). >> >> -M >> >> On Tue, Jun 5, 2018 at 8:53 PM, Cy Schubert wrote >> : >> > In message <201806060248.w562m9tB083134@repo.freebsd.org>, Matt Macy >> > writes: >> >> Author: mmacy >> >> Date: Wed Jun 6 02:48:09 2018 >> >> New Revision: 334701 >> >> URL: https://svnweb.freebsd.org/changeset/base/334701 >> >> >> >> Log: >> >> hwpmc: add summary command and further metadata extensions >> >> >> >> metadata changes: >> >> - log pmc sample rate with pmcallocate >> >> - log proc flags with thread / process logging >> >> to identify user vs kernel threads >> >> >> >> fixes: >> >> - use log cpuid to translate event id to event name >> >> >> >> Implement rudimentary summary command to track sample >> >> counts by thread and process name within a pmc log. >> >> >> >> % make -j4 buildkernel >& /dev/null & >> >> % sudo pmcstat -S unhalted_core_cycles -S llc-misses -O foo sleep 15 >> >> % pmc summary foo >> >> cpu_clk_unhalted.thread_p_any: >> >> idle: 138108207162 >> >> clang-6.0: 105336158004 >> >> sh: 72340108510 >> >> make: 8642012963 >> >> kernel: 7754011631 >> >> longest_lat_cache.miss: >> >> clang-6.0: 87502625 >> >> sh: 40901227 >> >> make: 5500165 >> >> kernel: 3300099 >> >> awk: 2000060 >> >> >> >> % pmc summary -f ~/foo >> >> idx: 278 name: cpu_clk_unhalted.thread_p_any rate: 2000003 >> >> idle: 69054 >> >> clang-6.0: 52668 >> >> sh: 36170 >> >> make: 4321 >> >> kernel: 3877 >> >> hwpmc: proc(7445): 3319 >> >> awk: 1289 >> >> xargs: 357 >> >> rand_harvestq: 181 >> >> mtree: 102 >> >> intr: 53 >> >> zfskern: 31 >> >> usb: 7 >> >> pagedaemon: 4 >> >> ntpd: 3 >> >> syslogd: 1 >> >> acpi_thermal: 1 >> >> logger: 1 >> >> syncer: 1 >> >> snmptrapd: 1 >> >> sleep: 1 >> >> idx: 17 name: longest_lat_cache.miss rate: 100003 >> >> clang-6.0: 875 >> >> sh: 409 >> >> make: 55 >> >> kernel: 33 >> >> awk: 20 >> >> hwpmc: proc(7445): 14 >> >> xargs: 9 >> >> idle: 8 >> >> intr: 3 >> >> zfskern: 2 >> > >> > Hi Matt, >> > >> > I'm not sure if this is due to this commit or one of your others but >> > it's broken the build. >> > >> > Sorry I can't do any more analysis but I need to get dinner on the >> > table. >> > >> > >> > >> > >> > -- >> > Cheers, >> > Cy Schubert >> > FreeBSD UNIX: Web: http://www.FreeBSD.org >> > >> > The need of the many outweighs the greed of the few. >> > >> > > > -- > Cheers, > Cy Schubert > FreeBSD UNIX: Web: http://www.FreeBSD.org > > The need of the many outweighs the greed of the few. > >