Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp507893ybg; Fri, 18 Oct 2019 03:14:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwR087TbIKkLMkfUpL332qe5X9OSt/eZ60WnM2mJLuIj6KHq2SfrRSTzcDpojbWeia0n6cW X-Received: by 2002:aa7:c38f:: with SMTP id k15mr8924157edq.100.1571393694573; Fri, 18 Oct 2019 03:14:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571393694; cv=none; d=google.com; s=arc-20160816; b=U02/O0zFNcW7F/JXUV9QZx9iIYWh//pGo7fgNmxe9Vmq9v4I+HiuK1TdH03jy7AWwu I9d2e4rt0uii2+H1UaJDCpUOJ2EXckXLsZEPBPA4olfDbQrt9J/L3D2ige13onjU9Wvn r56xNVn20dXsA1CUQXs2sUGiy8lqqL6ya5+wtGV9NnuJiK5FQ0xUiuWE+AnUzaQcqmro FF+bHm9Hlz5J6A13C1Znh0kqrfkNVCUiNTppNq6T9MktP2VnDo30sKGPpWIO+lVl9WsJ CH+vHQJYw2BzJWoKfYVeZm0OWrlcMW5orP5eLb0q+S/fRzgZQCFx4RcfsHFYfgcRwbpl afyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:to:subject; bh=NbT6Nmv8dwFBXjxvfZ4yxqN5Y/mo9qpxj4uYkYRGLTk=; b=VtsCQd3RmTi+oEUhXJ9Kd3IFpBgTZFg0MyhzfDDcmhn4n7+zg42tOH+Xb1md6csfrR umw18stpGPyXk6g6/w1HFnQLLnBEbhRx5iIcXwMqegQO3H51oAkxBF8nYniZ3YjOKGBt Plc2tyPzldQplaVO9TcUYeAtVCL/fRv7KA+hBGYD9PdDQrkrP8iD67/i0yt9k+trCed7 GoxZVaMGkgtlpLzHSevBRlQNGrf1rztgAm76mrXKtJngHw2pzcIbaEhQVk2slN+x7nkJ Y8Fh2N0I99t31Bjj3aIN2g+fKP9BXifWx3GR+403ZAFJPhoyhcl9JtPm851OcplSJJje 3XXg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n8si3127086eju.311.2019.10.18.03.14.31; Fri, 18 Oct 2019 03:14:54 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407979AbfJQIHK (ORCPT + 99 others); Thu, 17 Oct 2019 04:07:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55426 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727791AbfJQIHJ (ORCPT ); Thu, 17 Oct 2019 04:07:09 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 80E9B6907A; Thu, 17 Oct 2019 08:07:09 +0000 (UTC) Received: from [10.36.117.42] (ovpn-117-42.ams2.redhat.com [10.36.117.42]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2699D5D70D; Thu, 17 Oct 2019 08:07:07 +0000 (UTC) Subject: Re: [RFC] Memory Tiering To: Dave Hansen , Linux-MM , LKML , "Williams, Dan J" , "Verma, Vishal L" , Wu Fengguang , Huang Ying References: From: David Hildenbrand Organization: Red Hat GmbH Message-ID: <0679872d-3d03-2fa3-5bd2-80f694357203@redhat.com> Date: Thu, 17 Oct 2019 10:07:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Thu, 17 Oct 2019 08:07:09 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16.10.19 22:05, Dave Hansen wrote: > The memory hierarchy is getting more complicated and the kernel is > playing an increasing role in managing the different tiers. A few > different groups of folks described "migration" optimizations they were > doing in this area at LSF/MM earlier this year. One of the questions > folks asked was why autonuma wasn't being used. > > At Intel, the primary new tier that we're looking at is persistent > memory (PMEM). We'd like to be able to use "persistent memory" > *without* using its persistence properties, treating it as slightly > slower DRAM. Keith Busch has some patches to use NUMA migration to > automatically migrate DRAM->PMEM instead of discarding it near the end > of the reclaim process. Huang Ying has some patches which use a > modified autonuma to migrate frequently-used data *back* from PMEM->DRAM. Very interesting topic. I heard similar demand from HPC folks (especially involving other memory types ("tiers")). There, I think you often want to let the application manage that. But of course, for many applications an automatic management might already be beneficial. Am I correct that you are using PMEM in this area along with ZONE_DEVICE and not by giving PMEM to the buddy (add_memory())? > > We've tried to do this all generically so that it is not tied to > persistent memory and can be applied to any memory types in lots of > topologies. > > We've been running this code in various forms for the past few months, > comparing it to pure DRAM and hardware-based caching. The initial > results are encouraging and we thought others might want to take a look > at the code or run their own experiments. We're expecting to post the > individual patches soon. But, until then, the code is available here: > > https://git.kernel.org/pub/scm/linux/kernel/git/vishal/tiering.git > > and is tagged with "tiering-0.2", aka. d8e31e81b1dca9. > > Note that internally folks have been calling this "hmem" which is > terribly easy to confuse with the existing hmm. There are still some > "hmem"'s in the tree, but I don't expect them to live much longer. > -- Thanks, David / dhildenb