Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp706429lqb; Fri, 24 May 2024 10:33:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWFPFQFmz9OOdhOnhHLhmXYVePkwdLZWWRTV3xbdVdXNKn6qPF7FoNJwodlpn9v8iq2zX4XUh7VZSnui54Cx0+RL/+H0rRZNXH22nibKA== X-Google-Smtp-Source: AGHT+IE56BNZB5VWJ1cAGw13ZAjMV+GBzxYvQJ/+RI+6aB+vGYD2q3Z+TG6g77UNMgN/FXs/ow1f X-Received: by 2002:a17:906:3043:b0:a5a:88e8:4229 with SMTP id a640c23a62f3a-a62641ce50bmr187948366b.25.1716572039572; Fri, 24 May 2024 10:33:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716572039; cv=pass; d=google.com; s=arc-20160816; b=CrwHJ2NytSeMepIhzTXiYZS9G2t9IkMcztkkFsY5F45vNYPBpvzYP9iBlLwW3cR8Rx Q8I8k2+dBfFYf7dBmDZ604Re9Y9KYd1sCFRyB2B4AGZYTGZKfLS/KaPYYwWx+34W/Lm0 emeiqsi41x4f2ZBIgtnsN4FhQRagUmgXqb2SEJQpLYmOs9cfzHYlLNlKxgowZAq61GXq QqMdkabwkTcWXYoqsOhTZNbMj7puwY/17SCmKQd0M+yG8YQ3wPX5dKTuZa33focem/Xr KUSENOGXay4XMzGhj6G3kFHq5e0a9/lsBZCjpXiMnSufnjihPpQy8E46hQ5DYAtEqC92 jmOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=XR+IKKz42LKq9lWpJcypoWgZXpelFVN2Adc6x9cCqQk=; fh=/usWbtUbHkfWwvkkALEOf3TLMNmZB6nEHlYoatRcUpo=; b=a3DLwyquEnmhlG1vaB2agq60soNvMPlBgTTb+to1Z6lA1v7WK2oZ0OsBykKrEvK9OR Uoy80gPdVeaiagdajCma7qU+py/oq03eDpWAqueC1XMw7m9tr5lrtpEMHwx3/+5/TKbH kV5F73LR8Pc7zGMUFmQpOhquqzunw2TTjrU+B4Fcg9LfqfozyiO+nzbIh+cF9mGK80GZ sX4uB5BUaY/stzXhSALsWZ228Xlx5aRgg3au54hYNm+OwY1BlR9+Kld8WnmC6gMVeqyB BELxjV7JHHv6LYXap5miPXEjQxMTJvKW/YMkWXX6ko1UV99ZxVnvI1mYUIg2wS6Qg9k0 stJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nthbiQOp; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-188978-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188978-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cc632a9si105017266b.489.2024.05.24.10.33.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 10:33:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188978-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nthbiQOp; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-188978-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188978-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4E1171F214B7 for ; Fri, 24 May 2024 17:33:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D5D9939FE5; Fri, 24 May 2024 17:33:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nthbiQOp" Received: from mail-il1-f171.google.com (mail-il1-f171.google.com [209.85.166.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F17A381C6 for ; Fri, 24 May 2024 17:33:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716572022; cv=none; b=Zm2ABsx4nCUCHHjg7oa07C9VfMWT8Mk9booqnS2mFtzAOtqva0E3bco8AVyoTNgDCgaH3ShwnEOVJ5cSBQtXOYyvU54USJn6VccV06QrO2ePuSOTSOm0ouiCc6eKegFSa0b2nCMYZRNJFRIDjmQNJJkJwHjhq4Bw2byLD4ea/NM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716572022; c=relaxed/simple; bh=jJcY+vQzlxik7/cT2niBTDxIgH0RjBJZeGIM/Z7JKrk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=r6pepNzODN+QvCNwPmvfd4Kh/W1RlRS2xYhwFCYXRdUFa5XEYTROQyZWfAE+VQ/A0NwYuROhJ6T5vHffIXNRlQ/pyKCiHemVDiarlT7mAH3LTg2uCD5SQDKdDzCzCTrtkyVJNeWS0jRp2V4hlNLrnG0oyBo/Y7ILZjA8QrIdPXg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=nthbiQOp; arc=none smtp.client-ip=209.85.166.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-il1-f171.google.com with SMTP id e9e14a558f8ab-3737b3c56d7so4571775ab.2 for ; Fri, 24 May 2024 10:33:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716572019; x=1717176819; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=XR+IKKz42LKq9lWpJcypoWgZXpelFVN2Adc6x9cCqQk=; b=nthbiQOp8YJGAD1RTNxJp2g6ww5abLRKB64O7L/KeyHuquwMEoriMqkU0e63Rt4s8+ gF29yM9rFcyHCUs0w2Lor9U2aTWcstcQRvpRtYrOY7Df/GhnkHhIckyL7wZsSjy5Q3ax UNVqxwrMU3GOHt0P84hxoDHmQIg4kmSk7zdO6m7rrWLEW1t1cwFSah2z58J17ilwiLeC IUH9IsWJKWYv9XcTHA9nryP4kis5eXxNleS2low657uFSI16qr8IOO2Yib2as818r0Wf fQpr80GeHFZSL2znbg9pqibuXxWyQ9MfsyL4Shjxvme3hIgBTZtg/PTV9vBqaWZgfut/ nfog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716572019; x=1717176819; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XR+IKKz42LKq9lWpJcypoWgZXpelFVN2Adc6x9cCqQk=; b=YIT6bi1xkNbBdhBVreiDb9e7lRW8sYT6BlBmBFpvJy/PkCQdYPLOgVix7WCdUYa6pn dkgA1F41X/xDq5v4zDm8H3N35rmoEo5aUR813fjDAEeiWwR6pPPzuoEjX9wrxMJ2JiH8 AGzEAnslWxgXGloMZHFlakJ92tX+rWZEc/ebKJmyOuGxf992sZnxdJlpBnPJFOWIyRvg RJnXrSMsSQFWrzyosNzs9ZnHhAiF/0iaHXaB/kjntd1mpOxQZ789z2kMvByj03RcCdh/ M6e1MDihG1amOobxrshfj/trI9HgDRk1ucdQIE0lQ3tHHsnNu1BVT4jQcqGNZ7fJ4dCB VohQ== X-Forwarded-Encrypted: i=1; AJvYcCXvjKzVbTd77OHT1Otf9jo3qQVvrs11jgPf07/ghAfChQJ3CvonXAr5heFN0dxf/fgFEpBemqJkvxc7ikDXp7X1xI1yUAGi51CNE5CN X-Gm-Message-State: AOJu0Yx2RMC5EqUzUq6en4J/GhLKFCkh5/q2eM3Q/aZ0+uccwQ7pTIRs IPTBw5Ag7gV08sprqqj8oTdyyysTXnGffy1J+vVPyQ5+X5EOvygiYvVXLszcQOy8eSJaqduee6F Hqo47NrQaDtQyhyF9SQgtShQ/+hY= X-Received: by 2002:a92:c249:0:b0:36b:26df:ccec with SMTP id e9e14a558f8ab-3737b3251b2mr32120885ab.16.1716572018648; Fri, 24 May 2024 10:33:38 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240521023957.2587005-1-jaewon31.kim@samsung.com> <20240521025329epcms1p6ce11064c0f0608a0156d82fda7ef285c@epcms1p6> <20240521101753epcms1p50443f6b88adea211dd9bbb417dd57cb1@epcms1p5> In-Reply-To: From: Pintu Agarwal Date: Fri, 24 May 2024 23:03:26 +0530 Message-ID: Subject: Re: (2) [RESEND PATCH 00/10] memblock: introduce memsize showing reserved memory To: Mike Rapoport Cc: Jaewon Kim , "vbabka@suse.cz" , "akpm@linux-foundation.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "jaewon31.kim@gmail.com" , "tkjos@google.com" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 23 May 2024 at 20:06, Mike Rapoport wrote: > > On Tue, May 21, 2024 at 07:17:53PM +0900, Jaewon Kim wrote: > > >On Tue, May 21, 2024 at 11:53:29AM +0900, Jaewon Kim wrote: > > >> >--------- Original Message --------- > > >> >Sender : =EA=B9=80=EC=9E=AC=EC=9B=90 Syst= em Performance Lab.(MX)/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90 > > >> >Date : 2024-05-21 11:40 (GMT+9) > > >> >Title : [RESEND PATCH 00/10] memblock: introduce memsize showing r= eserved memory > > >> >? > > >> >Some of memory regions can be reserved for a specific purpose. They= are > > >> >usually defined through reserved-memory in device tree. If only siz= e > > >> >without address is specified in device tree, the address of the reg= ion > > >> >will be determined at boot time. > > >> > > > >> >We may find the address of the memory regions through booting log, = but > > >> >it does not show all. And it could be hard to catch the very beginn= ing > > >> >log. The memblock_dump_all shows all memblock status but it does no= t > > >> >show region name and its information is difficult to summarize. Something similar, we have already proposed almost 10 years ago for membloc= k. That time I realised some of these reserved memory break-up becomes useful and handy when we are gathering reserved memory stats on a small embedded device where every bit of memory reserved is important and being questioned. You can get some information about Kernel reserved from dmesg | grep -i Memory (including the kernel init, text, data) and the cma-reserved as well. Here the cma-reserved was added by me. You can also get these Kernel reserved size info from vmlinux. size -t vmlinux