From owner-freebsd-arch@FreeBSD.ORG Thu Apr 23 00:52:04 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 F1489BE3 for ; Thu, 23 Apr 2015 00:52:04 +0000 (UTC) Received: from mail-ig0-x230.google.com (mail-ig0-x230.google.com [IPv6:2607:f8b0:4001:c05::230]) (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 BBE811E67 for ; Thu, 23 Apr 2015 00:52:04 +0000 (UTC) Received: by igbyr2 with SMTP id yr2so11819249igb.0 for ; Wed, 22 Apr 2015 17:52:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=/e+eac/P4aSITWkT6uSi7ovfQA0Syu4bqFCNYivTmLI=; b=uxJ3gd46nWsrOUf2vfHmq+gv8MANvTByZ0IiEbO7jUrtOPTMofwSljzocV0DhhagOF fIiteqzdBzpdcd9mnDSdDz3rH/zNYXVbB+tZx+LaagwTjIb1OVelFYwQVYFuez02diMO AxqfCxO48vCEspP7cWnfhEb5xgFgm/aYWeKuRDXESLbzwHyU6mXjdQ8VHpIBrP8JMLFO yovXpfTTQXg2CHchDclqMiFFs1wxzs54kODgwvLNmXHoZ6ZeeI6qDnQbWpDAQC1eKORq Zvi8zldlEjEc4O679Dye6OZa4hL1e3st6qYPZ0L01CZE/4XzfxVIYKBiEnAZylQNKWNV ZBhQ== MIME-Version: 1.0 X-Received: by 10.42.20.197 with SMTP id h5mr847583icb.22.1429750324099; Wed, 22 Apr 2015 17:52:04 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Wed, 22 Apr 2015 17:52:04 -0700 (PDT) In-Reply-To: References: Date: Wed, 22 Apr 2015 17:52:04 -0700 X-Google-Sender-Auth: 8XhKYjuj1kEGTErFWT4wzo6n1p4 Message-ID: Subject: Re: RFT: numa policy branch From: Adrian Chadd To: "freebsd-arch@freebsd.org" Content-Type: text/plain; charset=UTF-8 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 00:52:05 -0000 On 21 April 2015 at 20:03, Adrian Chadd wrote: > OH, and the branch: > > https://github.com/erikarn/freebsd/tree/local/adrian_numa_policy Hi! Update: * the whole setup/copy process for thread and proc domain policies is slightly less dirty now; * the phys layer now checks domain policy in this order:: thread -> proc -> default; so now setting a proc policy will take action for all threads in that proc that don't have a more specific domain policy; * numactl is slightly less terrible to use. Todo: * for correctness, I should call the free methods on the domain policy whenever a thread/proc is destroyed. * .. write manpages for all of this. * Test on AMD NUMA systems - who has one I can poke at? -adrian