Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp953438ima; Wed, 6 Feb 2019 11:05:26 -0800 (PST) X-Google-Smtp-Source: AHgI3IafvaQZEx2vqu7AWS/cULElxz1QYGof75WHbJvKyw+76vpvbN+2qjSzljfheUAXYZPvArC6 X-Received: by 2002:a63:c01:: with SMTP id b1mr11172318pgl.182.1549479926540; Wed, 06 Feb 2019 11:05:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549479926; cv=none; d=google.com; s=arc-20160816; b=FU6gsd/GAxG4JsPiI4r+kGPbL/HT+jNrFpt7fTC/1Q5UY0Z5nmT+LXV4U0ulbn40Pn DmX3CPWSLJ39oRxb8vm9pmZMqmSP/NyYZ0iENpwv/te0IPHs0q0BTCoKHn9Km4dCVNg0 PtTFjLfb17kIShVD8wYUHXqavfhq38/ARWuFhuYX6WyGUJcLi3EuFYss7QB8s+zt/Sdz yY0Gzz6lBKVF+y828cvR/jhDbUkiLAcZGHwK8SCtADi1B+0iIRLH5TA/TeCyetFLh0bJ 7KdtbVpGZBh7Ev8eDNmQ+bT79mveN7rDIlkY6t8IeHlORpaVAZi3aRnBKK5RHs98lCvH 4ATw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:mime-version:user-agent :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature; bh=vrZE7jlxhDQlqPgSkY9sCVBYabm2RWMiKM07ns+SLJE=; b=av05gxL/ksTA/MTQ4/bqL+Z0NCQRBG817sDhcKVn5P0WK3LqZyJiuDhSd45pVhwSe0 +8GREWDUYJeF4fzfGWlA98g7q/gFFMjsaZRoZgvkjvhA+Ub+H1QUsR0Peuk3MAAHD/hh Ja08Qinys14ouyYgQ6ANlxp7Lzb2y5aUBaLxcVPj24OwqP5+Z99sDqLwJvZQI91xHiOd hNm/GrjrSNWUgjzjRXOOhqKQ80f34PY7chBTOEtqffZPf+IF7bZnPWoiUx0XcOso9A8a Itm864oplGn0wx5F5T8KV+xBhU5msA465oiu0DdEy3qcfyv3+czo3PelT7TohEPeEgi5 zwTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=FnIJiLll; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c6si6770110plo.270.2019.02.06.11.05.08; Wed, 06 Feb 2019 11:05:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=FnIJiLll; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726864AbfBFTDu (ORCPT + 99 others); Wed, 6 Feb 2019 14:03:50 -0500 Received: from a9-30.smtp-out.amazonses.com ([54.240.9.30]:46080 "EHLO a9-30.smtp-out.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726270AbfBFTDt (ORCPT ); Wed, 6 Feb 2019 14:03:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1549479828; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:MIME-Version:Content-Type:Feedback-ID; bh=xYi6pCyDA9ZOQcYAxtOfItk+QwdU/COFlue4KVWz1Sk=; b=FnIJiLll8xQfoA9hfRIsqHXFv7JymnplP5wZ7DxNoHDvrUAPoo8SzG6tfvRnypj/ V+jSIAlK+w1UOD/3q+ki7ZhfpMVhSqg9WuawKegLwHSdhj0/3my9z6+m5MYoCqyR8FV v8flXD841rz/28n7k4eaOm8F1TKxqtgAlY7molh0= Date: Wed, 6 Feb 2019 19:03:48 +0000 From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: "Aneesh Kumar K.V" cc: Michal Hocko , lsf-pc@lists.linux-foundation.org, linux-mm@kvack.org, LKML , linux-nvme@lists.infradead.org Subject: Re: [LSF/MM ATTEND ] memory reclaim with NUMA rebalancing In-Reply-To: <87h8dpnwxg.fsf@linux.ibm.com> Message-ID: <01000168c431dbc5-65c68c0c-e853-4dda-9eef-8a9346834e59-000000@email.amazonses.com> References: <20190130174847.GD18811@dhcp22.suse.cz> <87h8dpnwxg.fsf@linux.ibm.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SES-Outgoing: 2019.02.06-54.240.9.30 Feedback-ID: 1.us-east-1.fQZZZ0Xtj2+TD7V5apTT/NrT6QKuPgzCT/IC7XYgDKI=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 31 Jan 2019, Aneesh Kumar K.V wrote: > I would be interested in this topic too. I would like to > understand the API and how it can help exploit the different type of > devices we have on OpenCAPI. So am I. We may want to rethink the whole NUMA API and the way we handle different types of memory with their divergent performance characteristics. We need some way to allow a better selection of memory from the kernel without creating too much complexity. We have new characteristics to cover: 1. Persistence (NVRAM) or generally a storage device that allows access to the medium via a RAM like interface. 2. Coprocessor memory that can be shuffled back and forth to a device (HMM). 3. On Device memory (important since PCIe limitations are currently a problem and Intel is stuck on PCIe3 and devices start to bypass the processor to gain performance) 4. High Density RAM (GDDR f.e.) with different caching behavior and/or different cacheline sizes. 5. Modifying access characteristics by reserving slice of a cache (f.e. L3) for a specific memory region. 6. SRAM support (high speed memory on the processor itself or by using the processor cache to persist a cacheline) And then the old NUMA stuff where only the latency to memory varies. But that was a particular solution targeted at scaling SMP system through interconnects. This was a mostly symmetric approach. The use of accellerators etc etc and the above characteristics lead to more complex assymmetric memory approaches that may be difficult to manage and use from kernel space.