Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp671405ybt; Wed, 1 Jul 2020 07:27:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXpG4KxSQKzElBYvbZT62CYcfPXHpTClMNpF1xHCvTxQ2jmzArUA+Ldt+XgcOo6xW4NNr5 X-Received: by 2002:a50:b2c2:: with SMTP id p60mr28630140edd.374.1593613635913; Wed, 01 Jul 2020 07:27:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593613635; cv=none; d=google.com; s=arc-20160816; b=slB0Vsf6waEZykuvgSOlrp48/q6ZpMyUcEbP6ArDEVuf1c+g45d6n4qf1tIqW9/PrY FQXf8QDa60excfWPBItARXrEtLhwZYUYdIUKUwkkRIryTtGrbVYSGZy5mNbRwvKvUhBB fuvhjgDVuMMPImAGAILF9fIQy80H4oj7BgyB0kvTDt3aHfnU+5NLwGMO8E+FTt7jhQI8 YIRd8F7SMV7wueRhVWquDhssWfHoiHZ3CxUYHBx/Zg//VqMODHUEDHYyCqT9JfJ5xkcg csLKvdMgnMAUkU0QaOhSNKZFcoo1pnW8KvnW7zYacVNLVn9Fu98GyztpoDLsr66wF/5a RjTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=PKq0CC2DX1XXl1/wiF69VNRwdmFx70S5e4iigtdY8Lc=; b=pBpa3BxlSEdqMHo5nkwFM6zxggqUARTg8zX2cZlXU6oNFUIa29kUFa9VNctDWsGX+t 2Ewc0ZUkzcHBKtmGqvbFG+Ln2a+Uw6+by378BeG5WbZerJoV8kw2Z7v8gvmliV7eQftM luJfUkl/Z+Un1u/6/a9noa/aRPe/lP0lyovbvSkhTEiJAg03znwlHLAG0qSX2lbMhCQ1 6KhdP/HNN4z5pxafF9WpHgVGQjjuUGI0BQ8Iw2Cw8kVsv/r62dNuLb1MArhNnIpaVp2l SMR1aww/HYVJfVqpW7bF2w8AbEAjA5c7YTlB0CvMNSd+wP3HqUhYahBLAQCbG5eyHjIo JhPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=JPETlvwL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n26si4036277ejs.214.2020.07.01.07.26.52; Wed, 01 Jul 2020 07:27:15 -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; dkim=pass header.i=@nvidia.com header.s=n1 header.b=JPETlvwL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731315AbgGAOYm (ORCPT + 99 others); Wed, 1 Jul 2020 10:24:42 -0400 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:15076 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730852AbgGAOYl (ORCPT ); Wed, 1 Jul 2020 10:24:41 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Wed, 01 Jul 2020 07:24:28 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Wed, 01 Jul 2020 07:24:41 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Wed, 01 Jul 2020 07:24:41 -0700 Received: from [10.2.167.170] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 1 Jul 2020 14:24:36 +0000 From: Zi Yan To: Dave Hansen CC: Shakeel Butt , Dave Hansen , LKML , Linux MM , Yang Shi , David Rientjes , Huang Ying , Dan Williams Subject: Re: [RFC] [PATCH 0/8] Migrate Pages in lieu of discard Date: Wed, 1 Jul 2020 10:24:33 -0400 X-Mailer: MailMate (1.13.1r5690) Message-ID: <8927EC7B-76F2-4DFC-9AD8-EC2F15E3CEF9@nvidia.com> In-Reply-To: References: <20200629234503.749E5340@viggo.jf.intel.com> <654d785f-3fe5-d8bd-86bf-bf7431527184@intel.com> MIME-Version: 1.0 X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: multipart/signed; boundary="=_MailMate_ED97B0CF-ABF2-4CF2-859F-B952D1167A95_="; micalg=pgp-sha512; protocol="application/pgp-signature" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1593613468; bh=PKq0CC2DX1XXl1/wiF69VNRwdmFx70S5e4iigtdY8Lc=; h=X-PGP-Universal:From:To:CC:Subject:Date:X-Mailer:Message-ID: In-Reply-To:References:MIME-Version:X-Originating-IP: X-ClientProxiedBy:Content-Type; b=JPETlvwLsCvM1mqX48qKvUsrXYVLpTyoDi7bWBgatxUweLvhxAEoiP6s0ntJFAo8a SRXKwmf5bkihwgVYGb5mpBIByWoj0cRIMnZ79OGt6o88YqwoVnWqy2QFz6n2rDmczn 1j/bxgQmpZIsv6KlDL3r5dqK4rs8dgH9cKEeQqzoyj3lQjRpJDIjUkBs9bk84xqvR+ vO1RmJXPIkxH7vBmIXOGpsxIZ5eESMynoQbdHKDg46DgLyGA52ZGvYqZfuPEsI2CN4 VjrGTm/WMYNr5niARtTFvS1zMpdhvmdy7amFZJN45ww2M98LnpKh6LyeEU3Mzei/Zu mfJUyQmJUw+xA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=_MailMate_ED97B0CF-ABF2-4CF2-859F-B952D1167A95_= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On 30 Jun 2020, at 15:31, Dave Hansen wrote: > > >> BTW is this proposal only for systems having multi-tiers of memory? >> Can a multi-node DRAM-only system take advantage of this proposal? For= >> example I have a system with two DRAM nodes running two jobs >> hardwalled to each node. For each job the other node is kind of >> low-tier memory. If I can describe the per-job demotion paths then >> these jobs can take advantage of this proposal during occasional >> peaks. > > I don't see any reason it could not work there. There would just need > to be a way to set up a different demotion path policy that what was > done here. We might need a different threshold (or GFP flag) for allocating new page= s in remote node for demotion. Otherwise, we could see scenarios like: two nodes in a system are almost full and Node A is trying to demote some pages to Node B, which triggers page demotion from Node B to Node A. Then, we might be able to avoid a demotion cycle by not= allowing Node A to demote pages again but swapping pages to disk when Nod= e B is demoting its pages to Node A, but this still leads to a long reclaim p= ath compared to making Node A swapping to disk directly. In such cases, Node = A should just swap pages to disk without bothering Node B at all. Maybe something like GFP_DEMOTION flag for allocating pages for demotion = and the flag requires more free pages available in the destination node to avoid the situation above? =E2=80=94 Best Regards, Yan Zi --=_MailMate_ED97B0CF-ABF2-4CF2-859F-B952D1167A95_= Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJDBAEBCgAtFiEEh7yFAW3gwjwQ4C9anbJR82th+ooFAl78nKEPHHppeUBudmlk aWEuY29tAAoJEJ2yUfNrYfqKE1AQAIVa+5JqVcHM2uFniFUSGzVgzIka+D1JSM6W p5gxj3U6mRrFNrSbimOhZUP6qsZEiYlPIR0CCwxAZdkx68CUOFnQvC1pmCljm50/ 9rjmttuqcEjeW+vh7CWgmln/gVm250hyIKj726i8C8xnNueMxl52++Z9KNtUBuHy PFnnpkuWbL2e0XqpwJYmCQpvAchnzGFRhk9xiqz73HirnzOaSgGfzhQJFRs7u1uz gvIy2rOGX/4n/Ia+4LHdFgp3FwHP4gXzN6v3uoW5tOGtv1qXER99RRly3oIGG2jw BfQK3rYvfGT7h5sLsuQ16HMXpOrDsy/myHJVzCyO6pnczD6gUzsFHWBGI5YcVzKQ vxDpJsl3Iz+x5ue3Ppm/hI/Tud5BmDHCS7p4XyXbn3cP7ijDB4eGj+F4j5rDiVTC Xi6VBAn7gKpAOF+Iwr2DFUAjkwleUn8tpGK4Tuuf2niWu/yQ5A0oskcuJkKoHP9W 5yLgjWnv7KYn0J1zyKw5g76oopU3WzpYHN7iVve7EYz8YmKKRlv3R1gpQi/pwo6x bgtvVk/MyIcwkMl75EA0elFe98i8M/y65G4ZZ22Ak8wxR/2v7FciSoOkrSbiXVSm Rqyh6fuwlJ8jG7YeDpvNCVgYpQDubDHAyyTwDrNi1pc+z2VaghbgbJUKHAyJe0tY AnJGE+T4 =hhli -----END PGP SIGNATURE----- --=_MailMate_ED97B0CF-ABF2-4CF2-859F-B952D1167A95_=--