From owner-freebsd-current@FreeBSD.ORG Thu Apr 23 06:38:23 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5B8A5E1A; Thu, 23 Apr 2015 06:38:23 +0000 (UTC) Received: from mail-ie0-x233.google.com (mail-ie0-x233.google.com [IPv6:2607:f8b0:4001:c03::233]) (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 283151FFF; Thu, 23 Apr 2015 06:38:23 +0000 (UTC) Received: by iedfl3 with SMTP id fl3so61077885ied.1; Wed, 22 Apr 2015 23:38:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=L0c+XTabjEjeV5H3tQ9ZAUEkFJCSRkU+J2u56xSBlSY=; b=AN9ldd3geq6w+a472mnISrkQ/TVOl+xDw7erspFglTUB9+0zLpaN8ouO4hdo2+HrRl J5P77ouU54zkBHJv6KRD5yE1j0VhjgwquW6JygEaAhhFhYM+kOI21kFDHypXwgWl30g0 EkrY5+NlAZku8s26JO4aL3a5535iJz609a4ni3TlY06/SDfiygnVl0DKU4nax7izQCst 7vpu4ua6jD6WiXjb0hVjG/ssNldcLuQiITXRdWlNwtk0u5Sbcu4gJyAaQ1jWvjJx4uRy rEKvkZ/uiIjvUGDd2Axk2v5DqQLDWYUoenKYJjsFHEf/maZrJzkBeJ63ANpT1qUpKOXU LJ1w== MIME-Version: 1.0 X-Received: by 10.107.155.13 with SMTP id d13mr1666838ioe.29.1429771102395; Wed, 22 Apr 2015 23:38:22 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Wed, 22 Apr 2015 23:38:22 -0700 (PDT) Date: Wed, 22 Apr 2015 23:38:22 -0700 X-Google-Sender-Auth: qxH_SXhU5_oShWVXOneeDKWlJc0 Message-ID: Subject: help with sandybridge/ivybridge hwpmc NUMA DRAM counters From: Adrian Chadd To: "freebsd-arch@freebsd.org" , freebsd-current Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Apr 2015 06:38:23 -0000 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: 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