From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx106.postini.com [74.125.245.106]) by kanga.kvack.org (Postfix) with SMTP id 20ABA6B0005 for ; Fri, 1 Mar 2013 21:22:01 -0500 (EST) Received: by mail-oa0-f50.google.com with SMTP id l20so6642066oag.23 for ; Fri, 01 Mar 2013 18:22:00 -0800 (PST) Message-ID: <51316242.1010206@gmail.com> Date: Sat, 02 Mar 2013 10:21:54 +0800 From: Simon Jeons MIME-Version: 1.0 Subject: Re: [Bug 53501] New: Duplicated MemTotal with different values References: <20130212165107.32be0c33.akpm@linux-foundation.org> <20130212195929.7cd2e597.akpm@linux-foundation.org> <511C61AD.2010702@gmail.com> <51245D48.4030102@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: David Rientjes Cc: Jiang Liu , Andrew Morton , sworddragon2@aol.com, bugzilla-daemon@bugzilla.kernel.org, linux-mm@kvack.org On 02/20/2013 03:09 PM, David Rientjes wrote: > 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 Do you mean /proc/vmstat is not used by applications. sar -B 1 pgpgin/s pgpgout/s fault/s majflt/s pgfree/s pgscank/s pgscand/s pgsteal/s %vmeff I think they are read from /proc/vmstat > 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