From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49210C4707F for ; Thu, 27 May 2021 09:24:06 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C716F613F1 for ; Thu, 27 May 2021 09:24:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C716F613F1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 6A9646B0074; Thu, 27 May 2021 05:24:05 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 633F66B0075; Thu, 27 May 2021 05:24:05 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4ADCE6B0078; Thu, 27 May 2021 05:24:05 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0054.hostedemail.com [216.40.44.54]) by kanga.kvack.org (Postfix) with ESMTP id 163D26B0074 for ; Thu, 27 May 2021 05:24:05 -0400 (EDT) Received: from smtpin06.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id B6EF6180ACEF3 for ; Thu, 27 May 2021 09:24:04 +0000 (UTC) X-FDA: 78186474408.06.C1D0B05 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf05.hostedemail.com (Postfix) with ESMTP id 232FBE000800 for ; Thu, 27 May 2021 09:23:54 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 04A7E613EC; Thu, 27 May 2021 09:24:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622107443; bh=OURk4icIjjUhkJmgwwU5xH+PLI6luwry27mr7I/aiEY=; h=Subject:To:Cc:From:Date:In-Reply-To:From; b=10ZnUyqcUpxlod3lXeoSUWzaVK31HfSo/nKX+B5rxs9G3+0rHxEgOud0Le22NbEUY TwFubxK/WzB0mQHHCJwuXxgKE2sbZLCp9xc0tjZ8mwdvSpVliShWDHf3OELjeMPZ9D 8NnzcXeDDn+oWL6KUx6YRD43AtUJahJYmk3Fu86M= Subject: Patch "mm, vmstat: drop zone->lock in /proc/pagetypeinfo" has been added to the 4.19-stable tree To: akpm@linux-foundation.org,apw@shadowen.org,aruna.ramakrishna@oracle.com,clameter@sgi.com,gregkh@linuxfoundation.org,khalid.aziz@oracle.com,linux-mm@kvack.org,mel@csn.ul.ie,stephen.s.brennan@oracle.com Cc: From: Date: Thu, 27 May 2021 11:24:01 +0200 In-Reply-To: <20210526174613.339990-1-stephen.s.brennan@oracle.com> Message-ID: <16221074419250@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 X-stable: commit X-Patchwork-Hint: ignore Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=linuxfoundation.org header.s=korg header.b=10ZnUyqc; spf=pass (imf05.hostedemail.com: domain of gregkh@linuxfoundation.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org; dmarc=pass (policy=none) header.from=linuxfoundation.org X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 232FBE000800 X-Stat-Signature: ens9e4au4rx9a5uq5s545uoneqcwt4zm X-HE-Tag: 1622107433-731379 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: This is a note to let you know that I've just added the patch titled mm, vmstat: drop zone->lock in /proc/pagetypeinfo to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=3Dlinux/kernel/git/stable/stable-queue.g= it;a=3Dsummary The filename of the patch is: mm-vmstat-drop-zone-lock-in-proc-pagetypeinfo.patch and it can be found in the queue-4.19 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >From foo@baz Thu May 27 11:14:38 AM CEST 2021 From: Stephen Brennan Date: Wed, 26 May 2021 10:46:13 -0700 Subject: mm, vmstat: drop zone->lock in /proc/pagetypeinfo To: stable@vger.kernel.org Cc: Stephen Brennan , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, C= hristoph Lameter , Mel Gorman , Andy Whi= tcroft , Aruna Ramakrishna , Khalid Aziz Message-ID: <20210526174613.339990-1-stephen.s.brennan@oracle.com> From: Stephen Brennan Commit 93b3a674485f6a4b8ffff85d1682d5e8b7c51560 upstream Commit 93b3a674485f ("mm,vmstat: reduce zone->lock holding time by /proc/pagetypeinfo") upstream caps the number of iterations over each free_list at 100,000, and also drops the zone->lock in between each migrate type. Capping the iteration count alters the file contents in some cases, which means this approach may not be suitable for stable backports. However, dropping zone->lock in between migrate types (and, as a result, page orders) will not change the /proc/pagetypeinfo file contents. It can significantly reduce the length of time spent with IRQs disabled, which can prevent missed interrupts or soft lockups which we have observed on systems with particularly large memory. Thus, this commit is a modified version of the upstream one which only drops the lock in between migrate types. Fixes: 467c996c1e19 ("Print out statistics in relation to fragmentation a= voidance to /proc/pagetypeinfo") Signed-off-by: Stephen Brennan Reviewed-by: Aruna Ramakrishna Reviewed-by: Khalid Aziz Signed-off-by: Greg Kroah-Hartman --- mm/vmstat.c | 3 +++ 1 file changed, 3 insertions(+) --- a/mm/vmstat.c +++ b/mm/vmstat.c @@ -1384,6 +1384,9 @@ static void pagetypeinfo_showfree_print( list_for_each(curr, &area->free_list[mtype]) freecount++; seq_printf(m, "%6lu ", freecount); + spin_unlock_irq(&zone->lock); + cond_resched(); + spin_lock_irq(&zone->lock); } seq_putc(m, '\n'); } Patches currently in stable-queue which might be from stephen.s.brennan@o= racle.com are queue-4.19/mm-vmstat-drop-zone-lock-in-proc-pagetypeinfo.patch