Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp162671pxy; Thu, 6 May 2021 23:47:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzR19l4fyIYSry3zY/EYwNEv/StaJgT0PaoQTrfHPuhAEAcRyy1Ut2SezexxDha+9Bw9Kmi X-Received: by 2002:a17:906:cc8b:: with SMTP id oq11mr8329264ejb.520.1620370049960; Thu, 06 May 2021 23:47:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620370049; cv=none; d=google.com; s=arc-20160816; b=U+P9OsQMs56rkRDIc20TcujQYNt1HyO/CI+p53OdTvtKwYBmzaKH2veLV8PnGFwdC5 26JWoX+lJbUA9Fg3VeZNfoS857CmrJPSOKWMNjhSrMOmFXXMdKF5PtPKpbjxyBaRyalN 6R3asqDQ9A2jZRpSt+tVlrDKXKjMvb9oxyQOb9XLzTXkdPSP2+tbuWvJJwMuGEcMznbq 6t8zmyogu2lkw4nL2EYH92BR4XWARqQFyxvlX9c4mxabA8/NTa5bQZU8C4Jryqu46ewC HgcU8NPGGx16VXKxCN3Ql7+hw1hHPex1+UTlrYe6yaSAgM64WBJtXyFDiRMAuEYT/zdu 6s3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=5wdqQxBw2qcZwoCujTls2iNV0WGCOFAMDwXrbzVmQf4=; b=pPTUPqO38sz/OwvQoIyilbuhGY716t8yj29f7N5TENe+9Bq7wrt9gyIwK85JqO8SKH sAGS6QXdYPQR9zxhBW3Gy0BigWJsQ4AWzqPdJV2nMQ1+q+ToVllgx0DufcIhZ28gWgVG Kjh4LWrWQ5np+MWiO5wy1S2LIImmKqt8gfmsxd3hOBmJmSnXN3rK+nSnxikcq3hxE68i O8xvKyaBRYKz18Skk7vK3lqzPVHmPGZEph6tPwGa8LpWo/UpchryQ1RhyfzpbYVBUjuh UAW36EuR0wBG2G3ou4im/G3AB6v7v77+z253b6ZIO950ouQlZF3Jq+APiyqOHZFABwaD EBng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f16si3346094edy.382.2021.05.06.23.47.05; Thu, 06 May 2021 23:47:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232391AbhEGGPa (ORCPT + 99 others); Fri, 7 May 2021 02:15:30 -0400 Received: from mga04.intel.com ([192.55.52.120]:51286 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230118AbhEGGP3 (ORCPT ); Fri, 7 May 2021 02:15:29 -0400 IronPort-SDR: J2bhH6EhmhAlqySpxjIKXlGu+NhUh74X1gB9zAOBCTcJvn2yzgnNRCtYaw5/GW+tfoWuBexXb2 T4RJc7+sg36g== X-IronPort-AV: E=McAfee;i="6200,9189,9976"; a="196640857" X-IronPort-AV: E=Sophos;i="5.82,279,1613462400"; d="scan'208";a="196640857" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2021 23:14:29 -0700 IronPort-SDR: UBtL/btF+damZ06lGSeBGO6WKVyRXVKQtOjBI2dEJcsxulyeLT4w+LkwdVSXayCfqdgqmHwS6V ++p9ZtrKDSUw== X-IronPort-AV: E=Sophos;i="5.82,279,1613462400"; d="scan'208";a="389914662" Received: from yhuang6-desk1.sh.intel.com (HELO yhuang6-desk1.ccr.corp.intel.com) ([10.239.13.1]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2021 23:14:26 -0700 From: "Huang, Ying" To: Michal Hocko Cc: Dave Hansen , Dave Hansen , linux-mm@kvack.org, linux-kernel@vger.kernel.org, yang.shi@linux.alibaba.com, rientjes@google.com, dan.j.williams@intel.com, david@redhat.com, osalvador@suse.de, weixugc@google.com Subject: Re: [PATCH 00/10] [v7][RESEND] Migrate Pages in lieu of discard References: <20210401183216.443C4443@viggo.jf.intel.com> <9cd0dcde-f257-1b94-17d0-f2e24a3ce979@intel.com> Date: Fri, 07 May 2021 14:14:24 +0800 In-Reply-To: (Michal Hocko's message of "Fri, 16 Apr 2021 17:02:23 +0200") Message-ID: <87y2crnk8v.fsf@yhuang6-desk1.ccr.corp.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=ascii Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Michal, Michal Hocko writes: [...] >> >> > Btw. do you have any numbers from running this with some real work >> > workload? >> >> Yes, quite a bit. Do you have a specific scenario in mind? Folks seem >> to come at this in two different ways: >> >> Some want to know how much DRAM they can replace by buying some PMEM. >> They tend to care about how much adding the (cheaper) PMEM slows them >> down versus (expensive) DRAM. They're making a cost-benefit call >> >> Others want to repurpose some PMEM they already have. They want to know >> how much using PMEM in this way will speed them up. They will basically >> take any speedup they can get. >> >> I ask because as a kernel developer with PMEM in my systems, I find the >> "I'll take what I can get" case more personally appealing. But, the >> business folks are much more keen on the "DRAM replacement" use. Do you >> have any thoughts on what you would like to see? > > I was thinking about typical large in memory processing (e.g. in memory > databases) where the hot part of the working set is only a portion and > spilling over to a slower memory can be still benefitial because IO + > data preprocessing on cold data is much slower. We have tested the patchset with the postgresql and pgbench. On a machine with DRAM and PMEM, the kernel with the patchset can improve the score of pgbench up to 22.1% compared with that of the DRAM only + disk case. This comes from the reduced disk read throughput (which reduces up to 70.8%). Best Regards, Huang, Ying