Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1189441rdb; Mon, 19 Feb 2024 07:06:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVlioG3P1eDXavEfKpqslDZ8RPcZ1lEP6AWhMldCGI5Xl1oiyeB9qzoBSmcB1TXlp12Qghh9yNq5uar+WDCeqFH4y2miOjvfFkontzw1Q== X-Google-Smtp-Source: AGHT+IHcAmN/3QdLeK3u6TZKQdCkIegkWs0XcF8gmeujXr4BPGdCVJK3+CQt+2TRu+t7z6ZtF1Vv X-Received: by 2002:a17:906:368a:b0:a3d:bb68:be30 with SMTP id a10-20020a170906368a00b00a3dbb68be30mr7147005ejc.6.1708355203312; Mon, 19 Feb 2024 07:06:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708355203; cv=pass; d=google.com; s=arc-20160816; b=Y9MhKgwPwc6sf36+zCxHwiBiQjfTwkOlavKIrV9f+RTgXZRYv2Vvs4xiOL91VGtqoV /ZheP6m2c2n3X+pbaAB0tHP1z3ZrR9f7rUqBcyrW++R8DatwT3kamjcgDMH9+LswyxEy MetBkCsoaLXBLsyqyhJ+8Vnxl4QliaMq8u1gjsCiTTjtbVjNRUitpQcZHkT/jJFzCkAw HdhkmL4XZ9aKz5jm9Twc2/05imXUKtHijN8vuMqxeSayFfFBH27qQ6L6ao6Nu9pjMLBy NAODP+nhZt5eJSDFzwItqIM61ss5FU/T46UGpcHoigx7uZXhSs+5PFw9kyn2oaprIapp VXkA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=iHnTRavFzccEVzSoX1iUfpV/3djTz6kfAI7fI53+wUc=; fh=uOmlfVp8QCBOD+RYkKSqswXJq4ToUUsDV32JMSB+t5c=; b=Nrwt747Z4UegdkacnjQ/WYxyM/Vhvk/0yOFAjJwPqgO8UNYfD2OFRpaBXJGIu80e+H KmiodxBftqP04zdrL4hMiVqAhjeDT9WmfGeYyM1DvTd/Gru5li1Vj8/gCCMAL1nQuHZ7 V92DGWPwDDR0O3mDvOYoFZbdXUt690hMdI/m8cZBMYnzsN+5YVMDAKVmkX5AZ3ibFJw6 dKwhFky9C8mmOBdm99U9anUszgkRscW7z2mPBMuXM/T+h9cfAwOpmFpHUpuZPIIw+662 PzVrKb9b+X02oel5Bv8dlHECTz8wplHeCGGXJ+GTIs1rY4Hh5qWHRcnnMCUKOvX9UiQx 7rNw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DeopLyq9; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-71540-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71540-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id p5-20020a17090635c500b00a3e5832b368si1552130ejb.975.2024.02.19.07.06.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 07:06:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71540-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DeopLyq9; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-71540-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71540-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id DF9EF1F21C35 for ; Mon, 19 Feb 2024 15:06:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 07BBB381C4; Mon, 19 Feb 2024 15:06:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="DeopLyq9" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 890E31EA80 for ; Mon, 19 Feb 2024 15:06:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708355187; cv=none; b=NuYoZCfiATrTNNLdzSlx6hyk7c73AulBlY836ub3HPBTGvcyiwF6TSaqXjjivJnFRckAxvwuoP8V+DClJqKRXyeLWnHKaTNELN7nq2FpSs3mfc1Nyo1gFSPt/nJnZS6ZaGwdy4fE13EuiINgO3LSecpmFbmif8OkrX6BIupVUW4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708355187; c=relaxed/simple; bh=xujvCyNAGwSt8/pxhQ8N9r2IAcQcDpwpPaKRWKwxogI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XNwTk/zgV7tQP3Nx2Kxs4xY+H12kNjLDDuDeCJc42eItY7rQpBTAL9O+QavWorwhnkWVtV16pCfQigSmgZb7N7eP1U8DJa/cFQveX6yJKheMYT+2o8PqAaH58h2sNFHGyRpSGDJpOw647z02Vdqz57ssxgc3WxAWxyUaaOOaOMY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=DeopLyq9; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1708355184; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=iHnTRavFzccEVzSoX1iUfpV/3djTz6kfAI7fI53+wUc=; b=DeopLyq953Ddatsf4E0xN0/tiRz1UoewgkHOLugVleTH2c/Z/l06rhrePNI90q+Gle7nQv fGa310rUT2bYVsXcH15sFyNy4vox49+6TEJZz+Q45HHzFZQij6a/sGJ6vlgIniHOikYmgA C0RS+5IiJp8/xSTtpqlz88KSO6JXGMQ= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-612-1AJLftrBPSisvJTcIv_9rg-1; Mon, 19 Feb 2024 10:06:20 -0500 X-MC-Unique: 1AJLftrBPSisvJTcIv_9rg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id BAC4E106D112; Mon, 19 Feb 2024 15:06:18 +0000 (UTC) Received: from lorien.usersys.redhat.com (unknown [10.39.195.107]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 83A7340C9444; Mon, 19 Feb 2024 15:06:13 +0000 (UTC) Date: Mon, 19 Feb 2024 10:06:10 -0500 From: Phil Auld To: Byungchul Park Cc: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, kernel_team@skhynix.com, akpm@linux-foundation.org Subject: Re: [PATCH v4] sched/numa, mm: do not try to migrate memory to memoryless nodes Message-ID: <20240219150610.GB184804@lorien.usersys.redhat.com> References: <20240219041920.1183-1-byungchul@sk.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240219041920.1183-1-byungchul@sk.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.2 On Mon, Feb 19, 2024 at 01:19:20PM +0900 Byungchul Park wrote: > Changes from v3: > 1. Rewrite the comment in code and the commit message to make it > more clear. (feedbacked by Oscar Salvador) > 2. Add "Reviewed-by: Oscar Salvador " > > Changes from v2: > 1. Rewrite the comment in code and the commit message becasue it > turns out that this patch is not the real fix for the oops > descriped. The real fix goes in another patch below: > > https://lore.kernel.org/lkml/20240216111502.79759-1-byungchul@sk.com/ > > Changes from v1: > 1. Trim the verbose oops in the commit message. (feedbacked by > Phil Auld) > 2. Rewrite a comment in code. (feedbacked by Phil Auld) > > --->8--- > From 98f5d472c08e3ed5b9b6543290d392a2e50fcf3c Mon Sep 17 00:00:00 2001 > From: Byungchul Park > Date: Mon, 19 Feb 2024 13:10:47 +0900 > Subject: [PATCH v4] sched/numa, mm: do not try to migrate memory to memoryless nodes > > Memoryless nodes do not have any memory to migrate to, so stop trying > it. > > Signed-off-by: Byungchul Park > Reviewed-by: Oscar Salvador > --- > kernel/sched/fair.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index d7a3c63a2171..3e3b44ae72d1 100644 > --- a/kernel/sched/fair.c > +++ b/kernel/sched/fair.c > @@ -1828,6 +1828,12 @@ bool should_numa_migrate_memory(struct task_struct *p, struct folio *folio, > int dst_nid = cpu_to_node(dst_cpu); > int last_cpupid, this_cpupid; > > + /* > + * Cannot migrate to memoryless nodes. > + */ > + if (!node_state(dst_nid, N_MEMORY)) > + return false; > + > /* > * The pages in slow memory node should be migrated according > * to hot/cold instead of private/shared. > -- > 2.17.1 > > Sorry, hadn't gotten far enough to see this version when I replied to v3... Reviewed-by: Phil Auld Cheers, Phil --