Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Apr 2015 09:50:06 +0300
From:      Slawa Olhovchenkov <slw@zxy.spb.ru>
To:        Adrian Chadd <adrian@freebsd.org>
Cc:        "freebsd-arch@freebsd.org" <freebsd-arch@freebsd.org>, freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: help with sandybridge/ivybridge hwpmc NUMA DRAM counters
Message-ID:  <20150423065006.GV1394@zxy.spb.ru>
In-Reply-To: <CAJ-VmomZNDFE9%2BQJhZ2H8aRmCbk7RNrk%2BUyUA5_KK2z=yHkiyA@mail.gmail.com>
References:  <CAJ-VmomZNDFE9%2BQJhZ2H8aRmCbk7RNrk%2BUyUA5_KK2z=yHkiyA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150423065006.GV1394>