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@xxxxxxxxx. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>