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 96574C4707F for ; Thu, 27 May 2021 09:22:58 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 2B753613DA for ; Thu, 27 May 2021 09:22:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2B753613DA 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 B17DC6B0036; Thu, 27 May 2021 05:22:57 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AC7C86B006E; Thu, 27 May 2021 05:22:57 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 966ED6B0070; Thu, 27 May 2021 05:22:57 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0158.hostedemail.com [216.40.44.158]) by kanga.kvack.org (Postfix) with ESMTP id 643EA6B0036 for ; Thu, 27 May 2021 05:22:57 -0400 (EDT) Received: from smtpin37.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id E81C2180ACEF3 for ; Thu, 27 May 2021 09:22:56 +0000 (UTC) X-FDA: 78186471552.37.4155FDF Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf16.hostedemail.com (Postfix) with ESMTP id 2D1208019118 for ; Thu, 27 May 2021 09:22:49 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id F205861157; Thu, 27 May 2021 09:22:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622107375; bh=FfMsuYGbruaDMI0eq1vmOaVxLf7W6U73kaeDIIL0Je8=; h=Subject:To:Cc:From:Date:In-Reply-To:From; b=Ved5+5h0tCZb6k/L4bCE9YOXEuuBkmQxcMz9SbGbEuLGK+FmMIACKCbtEqSQJCTLw GJGjt1xdg57WvqSK7CpuDlWLHbC0Mw40pnC5iXC/yBhamNruZBycA9YRyMOA3dCZIT MU2m8MVojwpOR1YwmQC9HIirxE8tbZqdu1dZVCNo= Subject: Patch "mm, vmstat: drop zone->lock in /proc/pagetypeinfo" has been added to the 4.4-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:22:53 +0200 In-Reply-To: <20210526174613.339990-1-stephen.s.brennan@oracle.com> Message-ID: <16221073737158@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 X-stable: commit X-Patchwork-Hint: ignore Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=linuxfoundation.org header.s=korg header.b=Ved5+5h0; dmarc=pass (policy=none) header.from=linuxfoundation.org; spf=pass (imf16.hostedemail.com: domain of gregkh@linuxfoundation.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org X-Stat-Signature: ozqdohde6qdqn3stwbk5wsbqq4wk7a6x X-Rspamd-Queue-Id: 2D1208019118 X-Rspamd-Server: rspam02 X-HE-Tag: 1622107369-890104 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.4-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.4 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 @@ -973,6 +973,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.4/mm-vmstat-drop-zone-lock-in-proc-pagetypeinfo.patch