Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp952976iob; Fri, 13 May 2022 17:33:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykpgoLmOvjDYPTDssAhsK+YQG72SvD5ojp8wSUpDqQjs8Art8HNHx00/UkMxEuiZ7DkAZs X-Received: by 2002:a1c:7919:0:b0:392:a630:286c with SMTP id l25-20020a1c7919000000b00392a630286cmr6679173wme.72.1652488427654; Fri, 13 May 2022 17:33:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652488427; cv=none; d=google.com; s=arc-20160816; b=vBpZnPQijqeeB/zjrJl41lJiLNCojEwdd/v165gET7cWHwDvH2/CTnDQVxWXoryggn 8+uCjG7Esul8EpQslFSCvm9UwVprwk6NvyO4UDLEkztMJIlzJsIGTXzikie0tELZDVgg l7CFRZNtFcpTXDY+jNnQjhNybCHmE/IPmRS1QHF3cCOhPXZovV5s4S95mTGA0v1oo61/ CRpa9EKyq+XgCVWscvJVlg3cLMMlkoZ1aZvOU9WGjgQ8NZ1A3VXc75omXGcZvqDHe5SZ iy0KWfvOVeXXTXwPFcLmr3/moeac80hFmTRfU40DcApB4hA9iLYaYpfiB7l114mKuor6 1dKg== 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; bh=lCrOvqytON4sWFsVIG+msGo95PyjtNkv2EdVFztd7Js=; b=ovLoClObeP5RgQmsJm2LaJ7miMvsuIKNRtqNegRRlDaGmOxmXI97D6RCfDYvIKtOCq xkpZp9dOzb5vyJp+l1UiRU3pUgQjFPuII/99sr3WhmNY7feKBC3jaImfxcPNiattRo2V Xq+lzGXcgQ17dd52LrqXw2zNxk6xCArRid12x9AlbmcgwiNsVYA64UtE6yj+/gv5QWNk v3Qb+b0afycbn41b/pWwdV3i/ZmkmYy+wQro72JBzHr2hjWdXlw5HBWX50wZho4OKqUp V25OefXiWx8cHharUCo2HHdJnfvj6qlzbT46647mKdiEb/ySJ+/Bdg4/JVqu9cqf4yxx IJGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i67-20020a1c3b46000000b003942fb526a6si3413728wma.93.2022.05.13.17.33.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 17:33:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 678BF32DE8F; Fri, 13 May 2022 16:25:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354937AbiEMOXn (ORCPT + 99 others); Fri, 13 May 2022 10:23:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245426AbiEMOXh (ORCPT ); Fri, 13 May 2022 10:23:37 -0400 Received: from outbound-smtp37.blacknight.com (outbound-smtp37.blacknight.com [46.22.139.220]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AE75B9 for ; Fri, 13 May 2022 07:23:34 -0700 (PDT) Received: from mail.blacknight.com (pemlinmail03.blacknight.ie [81.17.254.16]) by outbound-smtp37.blacknight.com (Postfix) with ESMTPS id 920C63691 for ; Fri, 13 May 2022 15:23:32 +0100 (IST) Received: (qmail 16087 invoked from network); 13 May 2022 14:23:32 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.198.246]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 13 May 2022 14:23:32 -0000 Date: Fri, 13 May 2022 15:23:30 +0100 From: Mel Gorman To: Andrew Morton Cc: Nicolas Saenz Julienne , Marcelo Tosatti , Vlastimil Babka , Michal Hocko , LKML , Linux-MM Subject: Re: [PATCH 0/6] Drain remote per-cpu directly v3 Message-ID: <20220513142330.GI3441@techsingularity.net> References: <20220512085043.5234-1-mgorman@techsingularity.net> <20220512124325.751781bb88ceef5c37ca653e@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20220512124325.751781bb88ceef5c37ca653e@linux-foundation.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 12, 2022 at 12:43:25PM -0700, Andrew Morton wrote: > On Thu, 12 May 2022 09:50:37 +0100 Mel Gorman wrote: > > > Changelog since v2 > > o More conversions from page->lru to page->[pcp_list|buddy_list] > > o Additional test results in changelogs > > > > Changelog since v1 > > o Fix unsafe RT locking scheme > > o Use spin_trylock on UP PREEMPT_RT > > > > This series has the same intent as Nicolas' series "mm/page_alloc: Remote > > per-cpu lists drain support" -- avoid interference of a high priority > > task due to a workqueue item draining per-cpu page lists. While many > > workloads can tolerate a brief interruption, it may be cause a real-time > > s/may be/may/ > > > task runnning on a NOHZ_FULL CPU to miss a deadline and at minimum, > > s/nnn/nn/ > Correct. > > the draining in non-deterministic. > > s/n/s/;) > Think that one is ok. At least spell check did not complain. > > Currently an IRQ-safe local_lock protects the page allocator per-cpu lists. > > The local_lock on its own prevents migration and the IRQ disabling protects > > from corruption due to an interrupt arriving while a page allocation is > > in progress. The locking is inherently unsafe for remote access unless > > the CPU is hot-removed. > > I don't understand the final sentence here. Which CPU and why does > hot-removing it make the locking safe? > The sentence can be dropped because it adds little and is potentially confusing. The PCP being safe to access remotely is specific to the context of the CPU being hot-removed and there are other special corner cases like zone_pcp_disable that modifies a per-cpu structure remotely but not in a way that causes corruption. -- Mel Gorman SUSE Labs