Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1095272ybt; Wed, 1 Jul 2020 18:51:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNeAXH8TPWGC/p0tb2eT1RAfEN+jSuKYZYnV0O7LsSDa2PK9aoKEFSSe9X4gHXbyWOggTM X-Received: by 2002:a17:906:8157:: with SMTP id z23mr2514886ejw.349.1593654708478; Wed, 01 Jul 2020 18:51:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593654708; cv=none; d=google.com; s=arc-20160816; b=QEw8l1tChCRa8l96jBY4VSlZdfyUpep14vRvWyzR14yidQRoYf4l0+Jy0KrjpF090x aIlAdsdc1AwK5FgndsUKqQ5w55VjcnY6fx8CKx5FgO5fuOC2nay1XDCPPyTW9IEM4EKz iEvd0Ci6Ln2XRNP4XZxw91MZBilX+8Gx5ZcN60L6M4dIC5nDMLMun6hrmTvJ97FoZYOy eE4el7kEDDH6VZM7LgiATSPLeFBewaBH8XFw+GSxBpX74mRJCvbnt3whQm6DeuTrQH1R B76Y3tSFOfndq0REEl8IhWKejMr1I/YxL7vCNsQCpbH2wWF8ZZdpHLR8RyrPF6m278hF tZ+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:ironport-sdr :ironport-sdr; bh=inc5nTC6BUHGPSL3q8L4SrHMd6JP6Il1OTbWasbFkdY=; b=bmjmJElXt96JJDkkU1cEY7RVFwnGUOo0tNFL7f7nWoAHsLLVweUVFkawsDZnNKJCfb 2V8uYCN0ltm7DJN756c16DCsGeRJdKTQ5uYe3Hen+IaIaRlExosGbWNfKsZkVOCLQzjz luOozm3nnlRoAU0DxlC5tqOcFhFw+nh4Jds+HAaqE6YjQflZHW4SMhpkhw6BJ6Gx4Zg1 xMncM+Rlr4CcjnvdY0ZHNYGi61bn57kMs5FHRmHbwmyqcP9JGuOWqu0oAQOCWmsPIeDa pVNuFsJr5G9zWVlwcz9zFvPHG5dF6aO0/PdKiNWbhHukGw92iZg/TajxQgHHX65UDHwb ws3A== 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 j17si4964089eds.349.2020.07.01.18.51.24; Wed, 01 Jul 2020 18:51:48 -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 S1728014AbgGBBvA (ORCPT + 99 others); Wed, 1 Jul 2020 21:51:00 -0400 Received: from mga01.intel.com ([192.55.52.88]:42368 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727846AbgGBBvA (ORCPT ); Wed, 1 Jul 2020 21:51:00 -0400 IronPort-SDR: 3Pyn5B6GoHPLJCvhPn/N8sNuHQn7CSgAvGajAE5WyOqeNu8GimxCWqw5TBSTmkNxYKmZ2j8mSH NqP96IvgyFKA== X-IronPort-AV: E=McAfee;i="6000,8403,9669"; a="164811782" X-IronPort-AV: E=Sophos;i="5.75,302,1589266800"; d="scan'208";a="164811782" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2020 18:50:53 -0700 IronPort-SDR: 7ngpAIGWRv/c5y+XeTgGVcInhOKwoTmi+67M1QB8Tw3pjutP15zyhmwFOu2rhmUAgVbnAbsJD8 uY9q9DH4/oxQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,302,1589266800"; d="scan'208";a="304071198" Received: from yhuang-dev.sh.intel.com (HELO yhuang-dev) ([10.239.159.23]) by fmsmga004.fm.intel.com with ESMTP; 01 Jul 2020 18:50:52 -0700 From: "Huang\, Ying" To: David Rientjes Cc: Dave Hansen , Yang Shi , Dave Hansen , , , , Subject: Re: [RFC][PATCH 3/8] mm/vmscan: Attempt to migrate page in lieu of discard References: <20200629234503.749E5340@viggo.jf.intel.com> <20200629234509.8F89C4EF@viggo.jf.intel.com> <039a5704-4468-f662-d660-668071842ca3@linux.alibaba.com> <87h7urlioe.fsf@yhuang-dev.intel.com> <8182ede7-88ce-b891-d100-8c036130797e@intel.com> Date: Thu, 02 Jul 2020 09:50:51 +0800 In-Reply-To: (David Rientjes's message of "Wed, 1 Jul 2020 12:50:23 -0700") Message-ID: <87v9j6k7lw.fsf@yhuang-dev.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=ascii Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org David Rientjes writes: > On Wed, 1 Jul 2020, Dave Hansen wrote: > >> Even if they don't allocate directly from PMEM, is it OK for such an app >> to get its cold data migrated to PMEM? That's a much more subtle >> question and I suspect the kernel isn't going to have a single answer >> for it. I suspect we'll need a cpuset-level knob to turn auto-demotion >> on or off. >> > > I think the answer is whether the app's cold data can be reclaimed, > otherwise migration to PMEM is likely better in terms of performance. So > any such app today should just be mlocking its cold data if it can't > handle overhead from reclaim? Yes. That's a way to solve the problem. A cpuset-level knob may be more flexible, because you don't need to change the application source code. Best Regards, Huang, Ying