Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp486309ybg; Tue, 9 Jun 2020 05:55:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrefKlaELxE2ubgyiyUkNgB/3tu7ecDrVnQJiiH/ewCVK9ArkouS6dqRLJQ+x+N+z/8GlV X-Received: by 2002:a17:906:6d4b:: with SMTP id a11mr26573702ejt.108.1591707332648; Tue, 09 Jun 2020 05:55:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591707332; cv=none; d=google.com; s=arc-20160816; b=g3DPCF6vrP78H3rpI9kBst3naxLH0Tkguo9acPcr2CyWc3Ms0kGkh02sDH2rrBTq+0 Uzxr7DKW7k9KcH4pR79tmjeWvQwM6RpwvdUo3pdBfFbGPe8dJY+VNtW4hVr0eREM5TWQ bT7PCSVrxO/CY6ueDWxDE9MONah16FebtqEkZNIBJ2AIs7hpTv4B8mWfcSlztbuUr9a0 D41lPm4lyHDji9EzIkbt8MvQYZLyLQNtPJeAMFHp3gAJY5OFqiNxZ4RftWtWOOuIhA4J BaWyj+L5fkgYfA1yRq54IfuaHMozT3N1NX+w1nzqqpMm4GIZKcjyRagwwj0D4Fw5ZWtc FOOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=t3GQNmWtf4ksIggwptv0txsHLVgsuiaz0p09us+yUC0=; b=RsuWd4xKVFHZeqZcbf0J+4uybTbBL8PsmaVgyfchAaj4ojlQ8e9oHuZFO9swdE1CmZ U1QeR+UDP9ROPGLbPVplBW02BJ/WfsHHQEsYO4Z7fk7jznU3DxPdv4ujkcxdr4ZM9bwi X5OEVFX/5Qdz8jXBIGF0k8tOAIlFIRGx/S3+arEOrv69jehvPZ6LFM5ulclQOVlVstAV y3PJXt9m/HB0bHB4kYTxQDWX/4KvmP0ngTKjJRO5Afa9XhAlh1IgU64OFx8nsWQd0CZT Oz5qrfgUDdEG6OvzAYVdSAV9MDC6t+TvRjfHlNEPyE060gqgVZ8pG9pgqbE/doL72mjQ 5lWQ== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q25si10549537ejn.347.2020.06.09.05.55.09; Tue, 09 Jun 2020 05:55:32 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728571AbgFIMnu (ORCPT + 99 others); Tue, 9 Jun 2020 08:43:50 -0400 Received: from mail-ej1-f65.google.com ([209.85.218.65]:35051 "EHLO mail-ej1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727773AbgFIMnt (ORCPT ); Tue, 9 Jun 2020 08:43:49 -0400 Received: by mail-ej1-f65.google.com with SMTP id y13so22208145eju.2 for ; Tue, 09 Jun 2020 05:43:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=t3GQNmWtf4ksIggwptv0txsHLVgsuiaz0p09us+yUC0=; b=VLKbjyYmXUhnirRmmILwmD/D7qCwWO1kEQC32a5ZixGYqmudDS7cKxQc2gjhXs0wC2 n1hH7Ijd0vZreNNCRseFQginn4+J7BA/o9Wsg9dPpM5I6lsTyllZSAcqOr1DTrr/GCe3 y728RjVnRmIyUuGNsHegpNqWEyjKvPsX1N9ROftzIUmRgTlHjWlhCkIjerWykdb6CoSF C3m7QGHcRX2vWI1hbluRRSYuZLbMtzHva1PR9He0Jy1nOpAagQD4ujqE8Oqg2vUss2ZK IHw9Qy5lFErgyiN+RyChXwrX5BKUpGV4jqN9DGk8JCOaW8GY+cwCuz+uLSSxO8llm2LO B3vg== X-Gm-Message-State: AOAM533whjg0sxtn0Z6vT5k0iTOWbdQ9eM1yXJIfSaGIypysmdSiPY2M xIxlVz+0u4eFJWthryu2U28= X-Received: by 2002:a17:906:7c5a:: with SMTP id g26mr25499817ejp.200.1591706626955; Tue, 09 Jun 2020 05:43:46 -0700 (PDT) Received: from localhost (ip-37-188-174-195.eurotel.cz. [37.188.174.195]) by smtp.gmail.com with ESMTPSA id k23sm954411ejk.114.2020.06.09.05.43.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jun 2020 05:43:45 -0700 (PDT) Date: Tue, 9 Jun 2020 14:43:44 +0200 From: Michal Hocko To: js1304@gmail.com Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@lge.com, Vlastimil Babka , Christoph Hellwig , Roman Gushchin , Mike Kravetz , Naoya Horiguchi , Joonsoo Kim Subject: Re: [PATCH v2 01/12] mm/page_isolation: prefer the node of the source page Message-ID: <20200609124344.GC22623@dhcp22.suse.cz> References: <1590561903-13186-1-git-send-email-iamjoonsoo.kim@lge.com> <1590561903-13186-2-git-send-email-iamjoonsoo.kim@lge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1590561903-13186-2-git-send-email-iamjoonsoo.kim@lge.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 27-05-20 15:44:52, Joonsoo Kim wrote: > From: Joonsoo Kim > > For locality, it's better to migrate the page to the same node > rather than the node of the current caller's cpu. > > Acked-by: Roman Gushchin > Signed-off-by: Joonsoo Kim Acked-by: Michal Hocko > --- > mm/page_isolation.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/mm/page_isolation.c b/mm/page_isolation.c > index 2c11a38..7df89bd 100644 > --- a/mm/page_isolation.c > +++ b/mm/page_isolation.c > @@ -300,5 +300,7 @@ int test_pages_isolated(unsigned long start_pfn, unsigned long end_pfn, > > struct page *alloc_migrate_target(struct page *page, unsigned long private) > { > - return new_page_nodemask(page, numa_node_id(), &node_states[N_MEMORY]); > + int nid = page_to_nid(page); > + > + return new_page_nodemask(page, nid, &node_states[N_MEMORY]); > } > -- > 2.7.4 -- Michal Hocko SUSE Labs