Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1245483pxb; Thu, 7 Oct 2021 04:03:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLNwRpmcEymtd7ymmJ3AanKSNedBc0TMuZQsJmJDZ1r/cJJS7PIJko6rfLmUz/IuGaSdl+ X-Received: by 2002:a17:906:3adb:: with SMTP id z27mr4760428ejd.291.1633604631906; Thu, 07 Oct 2021 04:03:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633604631; cv=none; d=google.com; s=arc-20160816; b=e1HiOzhembdpaOldrFbLole4J4xKMdZAykHEqOhVpwX2V35u+gQi3LxwZvtA2Bnmcv 2HBPD3MWWd+4Yhu/JLRWzNzCQerlWDa9mCrOlMPux11p/q3EDQnxkkFRxCML5yYRRyi8 AGG0t2eiNVqcSUna8VIGnLZGUHkFpAmwV+6uELvX42Ju/s7wKNGD5VoMB/RZxkpqfEuW rHFBQWsjl+1FHgjVbqZAr8bk4mBQTMipKN1h9hw+O2OMMtq/2sbQk220GMH3ccHGiXjj bvQc4YqWm9h2KFxyM5xYeM63f/U70jcfUrp1JVSznFsed8Gsk27rrigm4c1yEQMTDOR7 8SZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=bMl2vQKXM/x6+ceqE26rgp1TKwW1WRTeZYtaGsc2hrY=; b=mkQt/A/T1DWvMtDI8m2pw5cK7T77EicI4ut/9/Ng8dsmR0FDWjo8vEJ5DWqU6FuvZG ZWzoydXq/7tBfpTUlY2f5gM7UVRts0TkeD8Y5aEtBH9rxf6rdgWouW83pF0tq9fgPmVi ZmYwDgb448hixXpK/X3xNzR/QttAzTLC+USmD4K+Sh/J8dqffxOFl62GQN5QT5eIHgqU zj229TfLnXN9AHMvnDXR7Jsxcm8VMHE97aOixon+1aJHOmibk5IucCwuCuvRQeoyHee3 CLCqajAJQ+3ENlNwVQfzpTJm41WJRQbZJBrss2AbWtSkRSVyvi2ihJL0entoguawQ7p6 qpOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=hqOu0yU1; dkim=neutral (no key) header.i=@suse.de header.b=ClbAVRla; 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=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n20si7938788ejb.299.2021.10.07.04.03.27; Thu, 07 Oct 2021 04:03:51 -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=@suse.de header.s=susede2_rsa header.b=hqOu0yU1; dkim=neutral (no key) header.i=@suse.de header.b=ClbAVRla; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240867AbhJGK1I (ORCPT + 99 others); Thu, 7 Oct 2021 06:27:08 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:51684 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231825AbhJGK1H (ORCPT ); Thu, 7 Oct 2021 06:27:07 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 9B953203D3; Thu, 7 Oct 2021 10:25:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1633602312; h=from:from:reply-to: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=bMl2vQKXM/x6+ceqE26rgp1TKwW1WRTeZYtaGsc2hrY=; b=hqOu0yU1oXHTKegGNlAhsyW7kjAeVNIy7PZ/g4Ekb5dTYlVdXKDw8xT21FXob6uFeNicPb COdYkpKvoGPIs3dejZJjkYCpPNk+L/xLjW/CDVK8PujNrl2bd0inZYBc6Cj7fZj9Q5Lzdt iRZ3tsMcT9JjDZF8CtO5Do2bxI+laeo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1633602312; h=from:from:reply-to: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=bMl2vQKXM/x6+ceqE26rgp1TKwW1WRTeZYtaGsc2hrY=; b=ClbAVRlaFzDs+umFnUwJ3dhDtrCFq18qtFZTKc6tQuWvrK2YGiifo0QqJdwkQBlCa0ZFWZ 2g608Kv3BAbh5gDg== Received: from suse.de (unknown [10.163.43.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 3F2EAA3B83; Thu, 7 Oct 2021 10:25:12 +0000 (UTC) Date: Thu, 7 Oct 2021 11:25:10 +0100 From: Mel Gorman To: Bharata B Rao Cc: linux-kernel@vger.kernel.org, mingo@redhat.com, peterz@infradead.org Subject: Re: [RFC PATCH 4/4] sched/numa: Don't update mm->numa_next_scan from fault path Message-ID: <20211007102510.GQ3891@suse.de> References: <20211004105706.3669-1-bharata@amd.com> <20211004105706.3669-5-bharata@amd.com> <20211005082335.GN3891@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 05, 2021 at 02:40:15PM +0530, Bharata B Rao wrote: > > > > Updating via cmpxchg would be ok to avoid potential collisions between > > threads updating a shared mm. > > Ok, may be I could just resend with changing the scan period update > to use cmpxchg. > > I also notice that in this case of scan period update, we just return > without resetting the p->numa_faults_locality[]. Do you think if > skipping the reset doesn't matter in this case? > If there is no fault activity or migrations are failing, there is no advantage to clearing numa_faults_locality[]. The information there is still useful even if the scan period is updated. -- Mel Gorman SUSE Labs