From owner-freebsd-arch@FreeBSD.ORG Thu Feb 19 21:32:14 2015 Return-Path: Delivered-To: freebsd-arch@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 C6ED7606; Thu, 19 Feb 2015 21:32:14 +0000 (UTC) Received: from mail-yk0-x22c.google.com (mail-yk0-x22c.google.com [IPv6:2607:f8b0:4002:c07::22c]) (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 812E3764; Thu, 19 Feb 2015 21:32:14 +0000 (UTC) Received: by mail-yk0-f172.google.com with SMTP id 131so5312785ykp.3; Thu, 19 Feb 2015 13:32:13 -0800 (PST) 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:cc:content-type; bh=By7xfaGP80656gfzFGb2PQpVRAEyVo6h4NQb23wGnfc=; b=GWQwp5Ole68sosGN2maeBWdHLuPFYIdDRJVwgdLCjRV+I5FriOQ086fNSpkrRaoCrD sr7lNH8MLG+pZNcBUHlnkILKjlIDrdshWDYububkaCzGRam42P29LnkdSCrj8JqdbICq lHDL5Wv6/NGjKPZTdHJpGOty/m3sAWF/H4pe6s9DzXiLa4g/QRlzcGeQNiczFSoZBBwq ySgW9P5YPYtwvwVGD4jEUBPSRgJb+0cMln6wkQko5W+Mj80H7E8IzzRIUDbrVk6OfsXC 422R14dYVdaWZTMgcYJBh60coLGQ5a/W5d72/w/pR0cPf8w/ctJJi8hsXJsd2a0lKonq YXRA== MIME-Version: 1.0 X-Received: by 10.236.36.110 with SMTP id v74mr4518107yha.186.1424381533683; Thu, 19 Feb 2015 13:32:13 -0800 (PST) Sender: kmacybsd@gmail.com Received: by 10.170.76.66 with HTTP; Thu, 19 Feb 2015 13:32:13 -0800 (PST) In-Reply-To: <20150219041012.GJ1953@funkthat.com> References: <20150219041012.GJ1953@funkthat.com> Date: Thu, 19 Feb 2015 13:32:13 -0800 X-Google-Sender-Auth: RhjicIFmSaCgRCbGrh8wi8sw_pU Message-ID: Subject: Re: getting NUMA into the tree (userland most interesting for me) From: "K. Macy" To: John-Mark Gurney Content-Type: text/plain; charset=UTF-8 Cc: Alan Cox , Konstantin Belousov , "freebsd-arch@freebsd.org" X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Feb 2015 21:32:14 -0000 On Wed, Feb 18, 2015 at 8:10 PM, John-Mark Gurney wrote: > I would like to help drive getting NUMA into the tree. Specificly, > getting userland allocations to be done from a specified domain. > > I've looked at the projects/numa tree, but it appears that not much was > done to get userland mappings to be NUMA aware. > > How are we going to do this? Do people have code to do this? > > I've looked at how Linux does this, at least from a programming > interface. They use mmap to create the mapping, and then use the call > mbind to tell the kernel where to handle the allocations. Is this > what people are thinking? > > I've checked the wiki status, and the userland section is quite > empty. > I personally don't think the infrastructure is far enough along that this is near to be an interesting value proposition. However, that said, I do believe that maintaining linux compatibility is important. Thus I would be for adding it to the linux compatibility layer and export it on the FreeBSD API side purely as an SPI until consensus is reached. -K