Message ID | 1622706274-4533-1-git-send-email-js07.lee@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=W4zG=K5=kvack.org=owner-linux-mm@kernel.org> 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=-19.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT 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 6956AC47082 for <linux-mm@archiver.kernel.org>; Thu, 3 Jun 2021 07:47:45 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 01186613D7 for <linux-mm@archiver.kernel.org>; Thu, 3 Jun 2021 07:47:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 01186613D7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 95D4A6B006C; Thu, 3 Jun 2021 03:47:44 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 933B36B006E; Thu, 3 Jun 2021 03:47:44 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7AE056B0070; Thu, 3 Jun 2021 03:47:44 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0055.hostedemail.com [216.40.44.55]) by kanga.kvack.org (Postfix) with ESMTP id 4A37B6B006C for <linux-mm@kvack.org>; Thu, 3 Jun 2021 03:47:44 -0400 (EDT) Received: from smtpin02.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id D8761181AC9C6 for <linux-mm@kvack.org>; Thu, 3 Jun 2021 07:47:43 +0000 (UTC) X-FDA: 78211633206.02.A2CAFA8 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by imf29.hostedemail.com (Postfix) with ESMTP id 13AAA544 for <linux-mm@kvack.org>; Thu, 3 Jun 2021 07:47:24 +0000 (UTC) Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20210603074739epoutp03f0f0c48b886daf41836a5bd70ff7da87~FAu1QfMOH0775507755epoutp03h for <linux-mm@kvack.org>; Thu, 3 Jun 2021 07:47:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20210603074739epoutp03f0f0c48b886daf41836a5bd70ff7da87~FAu1QfMOH0775507755epoutp03h DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1622706459; bh=a4ac+4M78wqsm+nnuN+UzpsShE5xrjHPpltpyIZazLQ=; h=From:To:Cc:Subject:Date:References:From; b=e3s/ftzdMArxr5Uty3B63DZm9e25aAkiR0+HW/JOkgVH2OQx3Ehn0s1oEwygNTVPC gS6S0t0ZII6T9TDZR6orwyTKn2MTraDUnFMOw6IPZHjNYaTKhIJ8unbdhqRtkPEQjp lXxPZpm7DB43iQJxqw7TdDYpyjYoYXU+bFkd7siw= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20210603074738epcas1p2ac10db6ddb98942288bd9ed8c3b474b4~FAu00Sbtf2276122761epcas1p2D; Thu, 3 Jun 2021 07:47:38 +0000 (GMT) Received: from epsmges1p2.samsung.com (unknown [182.195.40.162]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4FwdKP3mWNz4x9Pv; Thu, 3 Jun 2021 07:47:37 +0000 (GMT) Received: from epcas1p3.samsung.com ( [182.195.41.47]) by epsmges1p2.samsung.com (Symantec Messaging Gateway) with SMTP id D6.E2.09701.91988B06; Thu, 3 Jun 2021 16:47:37 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p4.samsung.com (KnoxPortal) with ESMTPA id 20210603074737epcas1p4578329b14ee6d5cec7fbb002e014f7c2~FAuzf-WzC0485104851epcas1p4t; Thu, 3 Jun 2021 07:47:37 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20210603074737epsmtrp1dccbdb4027364345aad64eb867b09c90~FAuzfVicx1750517505epsmtrp1s; Thu, 3 Jun 2021 07:47:37 +0000 (GMT) X-AuditID: b6c32a36-631ff700000025e5-b0-60b88919d488 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 2D.FB.08163.81988B06; Thu, 3 Jun 2021 16:47:37 +0900 (KST) Received: from VDBS1328.vd.sec.samsung.net (unknown [168.219.243.40]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20210603074736epsmtip27bb5251ea28a9b15a0dc66fb0b433135~FAuzTSANL1715617156epsmtip2x; Thu, 3 Jun 2021 07:47:36 +0000 (GMT) From: Jungseung Lee <js07.lee@samsung.com> To: Andrew Morton <akpm@linux-foundation.org>, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Jungseung Lee <js07.lee@samsung.com> Subject: [PATCH] mm : Report which part of mem is being freed on initmem case Date: Thu, 3 Jun 2021 16:44:34 +0900 Message-Id: <1622706274-4533-1-git-send-email-js07.lee@samsung.com> X-Mailer: git-send-email 2.7.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrLKsWRmVeSWpSXmKPExsWy7bCmvq5k544Eg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Cp5QUuHtXPujZlBq6qPOW8aVJ 6cXe1+LmnvC0V2Ipzkg01GIuKk4EAI/ojOnQAwAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrFJMWRmVeSWpSXmKPExsWy7bCSvK5k544Eg2szmSzmrF/DZvHo5m9W i8u75rBZ3Fvzn9WBxWPTp0nsHidm/Gbx6NuyitHj8ya5AJYoLpuU1JzMstQifbsEroyFO9+z FBxnq/g78zRbA+NK1i5GTg4JAROJ2TeOsHQxcnEICexglDg9v4sJIiEh8WjnF6AEB5AtLHH4 cDFEzQ9GiakvG8Ca2QS0JG783gRmiwgkS6x5sIkRxGYW0JD4feAmC4gtLOArMf3WIrCZLAKq EhtOTQWzeQWcJZb/+MUMsUtO4ua5TuYJjDwLGBlWMUqmFhTnpucWGxYY5aWW6xUn5haX5qXr JefnbmIEB4eW1g7GPas+6B1iZOJgPMQowcGsJMK7R21HghBvSmJlVWpRfnxRaU5q8SFGaQ4W JXHeC10n44UE0hNLUrNTUwtSi2CyTBycUg1MO9N7PKziH9y8orvlXJritQ1Z1St5tq9daOsh WeHHM2XezWR7V4s11a84Xl760MojJuH5klNeWtw/8YtUGIujbjnnietGqk9FVMsjg78KvEhR 4H4bebXcT+jk45mabx1izkpsLw69M3Ot25tTz26ETez5+yCwuaHRUULpn/uyfTqTRCY4VXAq ze/i+b9CZfUL5c4VtazsOd4rK3d/PLZ8yY1ZWo73Y28taBG7KXr2XsZ/0wMMq84pSR002Ou2 /Ln7xK0Ppq+y2fX6n/zTXW6ei7hrdv55+lrIqfaERP9ET4VvJ3ZzX2/zux5YFON+6LW4t2dY uc32WzvzK3ZMfmx+8pNePceJI8t3xjxPfeOwT4mlOCPRUIu5qDgRABBBArx9AgAA X-CMS-MailID: 20210603074737epcas1p4578329b14ee6d5cec7fbb002e014f7c2 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210603074737epcas1p4578329b14ee6d5cec7fbb002e014f7c2 References: <CGME20210603074737epcas1p4578329b14ee6d5cec7fbb002e014f7c2@epcas1p4.samsung.com> Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=samsung.com header.s=mail20170921 header.b="e3s/ftzd"; dmarc=pass (policy=none) header.from=samsung.com; spf=pass (imf29.hostedemail.com: domain of js07.lee@samsung.com designates 203.254.224.33 as permitted sender) smtp.mailfrom=js07.lee@samsung.com X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 13AAA544 X-Stat-Signature: 9we1rxnruxwacpdqyh6uqawzt5uzwhn7 X-HE-Tag: 1622706444-134672 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: <linux-mm.kvack.org> |
Series |
mm : Report which part of mem is being freed on initmem case
|
expand
|
diff --git a/include/linux/mm.h b/include/linux/mm.h index 8631ddf..62f0901 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -2426,7 +2426,7 @@ static inline unsigned long free_initmem_default(int poison) extern char __init_begin[], __init_end[]; return free_reserved_area(&__init_begin, &__init_end, - poison, "unused kernel"); + poison, "unused kernel image (initmem)"); } static inline unsigned long get_num_physpages(void)
Add the details for figuring out which parts of the kernel image is being freed on initmem case. Before: Freeing unused kernel memory: 1024K After: Freeing unused kernel image (initmem) memory: 1024K Signed-off-by: Jungseung Lee <js07.lee@samsung.com> --- include/linux/mm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)