From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx204.postini.com [74.125.245.204]) by kanga.kvack.org (Postfix) with SMTP id AA0A46B0005 for ; Wed, 20 Feb 2013 02:09:49 -0500 (EST) Received: by mail-pa0-f53.google.com with SMTP id bg4so3846121pad.26 for ; Tue, 19 Feb 2013 23:09:48 -0800 (PST) Date: Tue, 19 Feb 2013 23:09:47 -0800 (PST) From: David Rientjes Subject: Re: [Bug 53501] New: Duplicated MemTotal with different values In-Reply-To: <51245D48.4030102@gmail.com> Message-ID: References: <20130212165107.32be0c33.akpm@linux-foundation.org> <20130212195929.7cd2e597.akpm@linux-foundation.org> <511C61AD.2010702@gmail.com> <51245D48.4030102@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Simon Jeons Cc: Jiang Liu , Andrew Morton , sworddragon2@aol.com, bugzilla-daemon@bugzilla.kernel.org, linux-mm@kvack.org On Wed, 20 Feb 2013, Simon Jeons wrote: > What I confuse is why have /proc/meminfo and /proc/vmstat at the same time, > they both use to monitor memory subsystem states. What's the root reason? > This has nothing to do with this thread, but /proc/vmstat actually does not include the MemTotal value being discussed in this thread that /proc/meminfo does. /proc/meminfo is typically the interface used by applications, probably mostly for historical purposes since both are present when procfs is configured and mounted, but also to avoid determining the native page size. There's no implicit userspace API exported by /proc/vmstat. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org