From owner-freebsd-arch@FreeBSD.ORG Thu Apr 23 06:50:10 2015 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B1C3C254; Thu, 23 Apr 2015 06:50:10 +0000 (UTC) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6BDC61107; Thu, 23 Apr 2015 06:50:10 +0000 (UTC) Received: from slw by zxy.spb.ru with local (Exim 4.84 (FreeBSD)) (envelope-from ) id 1YlAxb-000PNf-1J; Thu, 23 Apr 2015 09:50:07 +0300 Date: Thu, 23 Apr 2015 09:50:06 +0300 From: Slawa Olhovchenkov To: Adrian Chadd Cc: "freebsd-arch@freebsd.org" , freebsd-current Subject: Re: help with sandybridge/ivybridge hwpmc NUMA DRAM counters Message-ID: <20150423065006.GV1394@zxy.spb.ru> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Apr 2015 06:50:10 -0000 On Wed, Apr 22, 2015 at 11:38:22PM -0700, Adrian Chadd wrote: > hi all, > > I'm having a spot of problem trying to get the local/remote dram > counters working on the NUMA sandybridge and ivybridge systems here. > > Things work fine using intel-pcm, but those same counters don't work with hwpmc. > > Sandybridge - there's apparently an MSR that needs to be fiddled if > the counters are active. > > Ivybridge - the v1 and v2 chips have different local/remote dram > counters, and on my v2 setup there's actually /two/ LOCAL_DRAM: # pmccontrol -L | grep DRAM MEM_LOAD_UOPS_LLC_MISS_RETIRED.LOCAL_DRAM MEM_LOAD_UOPS_LLC_MISS_RETIRED.REMOTE_DRAM CPU: Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz (2600.05-MHz K8-class CPU) > adrian@testbox1:~/git/github/erikarn/freebsd/sys/dev/hwpmc % > pmccontrol -L | grep DRAM > MEM_LOAD_UOPS_LLC_MISS_RETIRED.LOCAL_DRAM > MEM_LOAD_UOPS_LLC_MISS_RETIRED.LOCAL_DRAM > MEM_LOAD_UOPS_LLC_MISS_RETIRED.REMOTE_DRAM > > Now, i may be able to get to figuring this out at some point in the > distant future, but I'd really appreciate any help I can get now. I'm > now at the point with the NUMA affinity API stuff where I'm now > chasing down when things are correctly working with local/remote RAM, > and I'd really like to use hwpmc in sampling mode to work on it. > > Thanks for any help! > > > > -adrian > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"