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=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no 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 00485C433DF for ; Wed, 20 May 2020 05:33:20 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AA8C6206C3 for ; Wed, 20 May 2020 05:33:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AA8C6206C3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vt.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.93) (envelope-from ) id 1jbHLH-0004uy-4e; Wed, 20 May 2020 01:32:35 -0400 Received: from omr2.cc.ipv6.vt.edu ([2607:b400:92:8400:0:33:fb76:806e] helo=omr2.cc.vt.edu) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jbHLF-0004ui-8M for kernelnewbies@kernelnewbies.org; Wed, 20 May 2020 01:32:33 -0400 Received: from mr2.cc.vt.edu (junk.cc.ipv6.vt.edu [IPv6:2607:b400:92:9:0:9d:8fcb:4116]) by omr2.cc.vt.edu (8.14.4/8.14.4) with ESMTP id 04K5WVoD010598 for ; Wed, 20 May 2020 01:32:32 -0400 Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by mr2.cc.vt.edu (8.14.7/8.14.7) with ESMTP id 04K5WQHB031460 for ; Wed, 20 May 2020 01:32:31 -0400 Received: by mail-qv1-f70.google.com with SMTP id n36so2431706qvg.22 for ; Tue, 19 May 2020 22:32:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:content-transfer-encoding:date:message-id; bh=fFQrj1n51UPTcELl5UjgSNeQUZPklcvOUrBLIQ3zOL8=; b=NDFQb2ZsMrITB2MOeBzZt7H/uL1/+HvmfbKjOwfJbCv+rHS3li/P9gwrqNj52dMkwr oTIEVhFrvC50Ldapy3S1xVg64DB+oS6mrKgkxCA5eAsUFid2J5pw40OzguqYSnC36o1N tQweiDjuV0qqximp8RgtwcmrI6EvmJ4sjOLWlZ0FC1whphHQzTNNWUyP7fRCfH34xt7N PP7KbdUSQYI/Iqf8iH0WFVTw3mhJapnY1+ys9RTTYAmSJbGCdKTjK4hfRE0kAjwXHIkA 7niLV5475w1ijTgJxdfLDAeVIetbutOqZImzLjjNZkp/Z/FKBoA5GaFG58/wEjtqsoys 25ug== X-Gm-Message-State: AOAM533+Ev+ngbOhR4p7IeHfK5WWczZuDpsvxa4oq8nMsPWMU955DJuB 7TkAGt4mSu1kreUWWveQO0vU6BChVV0cRVwlb/LbWlLzQM/PuWTLkLsaYRXYqEdbV1nZIv8OJs2 uTlcFmt9+2t+8K3o08g2pH6CTP/hCls7IPYm8Inc= X-Received: by 2002:a37:414f:: with SMTP id o76mr2921928qka.375.1589952746235; Tue, 19 May 2020 22:32:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1ZgLomV4ktjMiAXcWY6pSvkB1ocvQ+J2NT4lv+JmO5BkYYzMQ0RBFyCzDb7pY2lvKST7A4g== X-Received: by 2002:a37:414f:: with SMTP id o76mr2921909qka.375.1589952745930; Tue, 19 May 2020 22:32:25 -0700 (PDT) Received: from turing-police ([2601:5c0:c001:c9e1::359]) by smtp.gmail.com with ESMTPSA id s33sm1608334qtc.95.2020.05.19.22.32.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 May 2020 22:32:24 -0700 (PDT) From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Google-Original-From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Pintu Agarwal Subject: Re: Estimating total memory usage in any Linux system In-Reply-To: References: <21691.1589947282@turing-police> Mime-Version: 1.0 Date: Wed, 20 May 2020 01:32:22 -0400 Message-ID: <25873.1589952742@turing-police> Cc: Kernelnewbies X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============8724765086007087874==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============8724765086007087874== Content-Type: multipart/signed; boundary="==_Exmh_1589952742_6829P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --==_Exmh_1589952742_6829P Content-Type: text/plain; charset=us-ascii On Wed, 20 May 2020 10:26:50 +0530, Pintu Agarwal said: > I know it is weird to manually arrive a MemTotal from the values of meminfo. > But I am actually looking for general formula. You missed the point - the "general formula" has probably changed over the years. > With this I could arrive to some result, but I have some doubts: > * Is Mapped already included in Active/Inactive (file) ? Because > mapped is coming from NR_FILE_MAPPED. And that's the sort of question that can have different answers for 3.18 and 5.7. --==_Exmh_1589952742_6829P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.9.0 11/07/2018 iQIVAwUBXsTA5QdmEQWDXROgAQKNshAAnlkvup2mUnh+jRzWZE3nqJCM34omnKpa 1uQcFetO+BBgRpyc8Er6+BcyL/G1Jbknqp4sd/EJg9ASOX1oJkwG0EbBEwygmK01 h5GS+7PhW+AAgmrFRL3HQekqZp+7ClONxePtR1LQafPhffWSs9yvwHAlcv77BZDB qfhkIBeSTgP2/jpqzfz9/2ei7axh3BFBeG/fgkTkwj05YUsc9NvX4b9og0gtmt3n q4urfmmL+tSq6yA5z6UX02fuGbtAF2shBwcOvb8ZA9e7wgDliKklEr+J7p9SW+en uk0dgZuzON22zlZDcBSS7FQGdfK8gFYo6ZVS+Fs8bmx/xihsPFU+NnLnCrn/DBWi 1nCvDnUdkRW3UKkn3j2ZQLKal/WnkwlnIfI/sR5xN7MSERTnH09XpmAsHtim3M9o NXgvE3hGgIVd3lDEWha5gZqXkZATMaj7zPhb95QRpf35h2LXBpjPpkUEcyOv23Gt jSy8r1hfXbPqLA9L/PeKFgooxxa9Od2oToFbKOgf6fXMjWyLEDuqRWXAtC+BcxY8 +seNqKtgGxkkKN3wJqkLbSY1RL8iZIcVIlqB2RuMEwwOwnKVzu8xFYVSTKjePyAE 5raz+tSbArvj+GD5LQDGGE3UM+lHTGwCCA6E1GRMr4cIGJARuqLYLY8HIV3hst9F K2WZq6SjsJc= =gNcg -----END PGP SIGNATURE----- --==_Exmh_1589952742_6829P-- --===============8724765086007087874== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============8724765086007087874==--