From nobody Fri Dec 19 11:16:17 2025 Received: from mta22.hihonor.com (mta22.honor.com [81.70.192.198]) (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 898FB19E7D1 for ; Sat, 12 Apr 2025 09:27:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=81.70.192.198 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744450049; cv=none; b=JC3sea1BjSOB46L1vDgOhRjEexXEGWi49yDELIiw/b+KJXBCDQIt0TDvlMH9J3i+yMVGX9vRSwwPjQjsUa28j7XmR2Mu0OWTCNMMnhZ2JAg73Lrx9S06/3vZN1E6qSxgfA5hjTC2YaMqgY/p6iBhkgxdd2e8JM0tBxCYROVwn8g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744450049; c=relaxed/simple; bh=aHaxYJw7U3M6z1AeLhbj2tutvSnufIN1DJL5TgdSHWM=; h=From:To:CC:Subject:Date:Message-ID:Content-Type:MIME-Version; b=n/M/uhwX2NkBTQJmDBol6glSY50prGmmCVceHTMuzWIYwxNAM4dy0jBAI/x/rgEs8RcmNn2oO6TmNpejzFE3jLeHYl2qWK0iMRJ0aC+Lz3x9PoEE/rEiU7QhycD5hVLLNGZqYxA0vRrHUrsYT+nZG4gEeJ0vu/t4bJj8O2590Go= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=honor.com; spf=pass smtp.mailfrom=honor.com; arc=none smtp.client-ip=81.70.192.198 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=honor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=honor.com Received: from w002.hihonor.com (unknown [10.68.28.120]) by mta22.hihonor.com (SkyGuard) with ESMTPS id 4ZZSqY69PZzYl82l; Sat, 12 Apr 2025 17:26:49 +0800 (CST) Received: from a004.hihonor.com (10.68.27.131) by w002.hihonor.com (10.68.28.120) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Sat, 12 Apr 2025 17:27:25 +0800 Received: from a007.hihonor.com (10.68.22.31) by a004.hihonor.com (10.68.27.131) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Sat, 12 Apr 2025 17:27:24 +0800 Received: from a007.hihonor.com ([fe80::e866:83ac:f23b:c25c]) by a007.hihonor.com ([fe80::e866:83ac:f23b:c25c%10]) with mapi id 15.02.1544.011; Sat, 12 Apr 2025 17:27:24 +0800 From: gaoxu To: Andrew Morton CC: Mike Rapoport , "surenb@google.com" , Yu Zhao , Barry Song <21cnbao@gmail.com>, "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , yipengxiang , gaoxu Subject: [PATCH] mm: add nr_free_highatomic in show_free_areas Thread-Topic: [PATCH] mm: add nr_free_highatomic in show_free_areas Thread-Index: AdurjPRi5/gMqGJtQ1mzYKHhymGbQw== Date: Sat, 12 Apr 2025 09:27:24 +0000 Message-ID: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The commit c928807f6f6b6("mm/page_alloc: keep track of free highatomic") adds a new variable nr_free_highatomic, which is useful for analyzing low mem issues. add nr_free_highatomic in show_free_areas. Signed-off-by: gao xu Acked-by: David Hildenbrand Reviewed-by: Anshuman Khandual Reviewed-by: Barry Song --- mm/show_mem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/show_mem.c b/mm/show_mem.c index ad373b4b6..03e8d968f 100644 --- a/mm/show_mem.c +++ b/mm/show_mem.c @@ -305,6 +305,7 @@ static void show_free_areas(unsigned int filter, nodema= sk_t *nodemask, int max_z " low:%lukB" " high:%lukB" " reserved_highatomic:%luKB" + " free_highatomic:%luKB" " active_anon:%lukB" " inactive_anon:%lukB" " active_file:%lukB" @@ -326,6 +327,7 @@ static void show_free_areas(unsigned int filter, nodema= sk_t *nodemask, int max_z K(low_wmark_pages(zone)), K(high_wmark_pages(zone)), K(zone->nr_reserved_highatomic), + K(zone->nr_free_highatomic), K(zone_page_state(zone, NR_ZONE_ACTIVE_ANON)), K(zone_page_state(zone, NR_ZONE_INACTIVE_ANON)), K(zone_page_state(zone, NR_ZONE_ACTIVE_FILE)), --=20 2.17.1