转: Documentation/filesystems/proc.txt meminfo zh_cn: Provides information about distribution and utilization of memory. This varies by architecture and compile options. The following is from a 16GB PIII, which has highmem enabled. You may not have all of these fields. MemTotal: 所有可用RAM大小 (即物理内存减去一些预留位和内核的二进制代码大小) MemFree: LowFree与HighFree的总和 ...
by yjh777 - Shell - 2012-01-10 21:34:11 阅读(2126) 回复(3)
/proc/meminfo This is one of the more commonly used files in the /proc/ directory, as it reports a large amount of valuable information about the systems RAM usage. The following sample /proc/meminfo virtual file is from a system with 256 MB of RAM and 512 MB of swap space: MemTotal: 255908 kB MemFree: 69936 kB Buffers: 15812 kB Cached: 115124 kB SwapCached: ...
我在/proc/meminfo下面看到了一些数据。[code]MemTotal: 2034284 kB MemFree: 474328 kB Buffers: 53728 kB Cached: 1178776 kB SwapCached: 460 kB Active: 747908 kB Inactive: 730640 kB Active(anon): 232864 kB Inactive(anon): 81168 kB Active(file): 515044 kB Inactive(file): 649472 kB Unevictable: 0 kB Mlocked: ...
看/proc/meminfo,有个问题不解。 就是MemTotal由/proc/meminfo里的哪些部分组成? 我个人理解,Memtotal=Memfree+buffers+caches+Anonpages+Slab+Pagetables+VMallocused? 但是好多系统往往这个等号不成立,往往等号左边大于右边,而且有的机器相差还很大。 是否某些内存的使用没有统计在meminfo里面? 请高手指点。谢谢!
今天在http://www.linuxsir.org/bbs/showthread.php?t=154274看到的介绍meminfo,记下以备后用! Tips & Tricks Featured Article: /proc/meminfo Explained March 2003 "Free," "buffer," "swap," "dirty." What does it all mean? If you said, "something to do with the Summer of '68", you may need a primer on 'meminfo'. The entries in the /proc/meminfo can help explain what's going on with your memory usage, if...
[color="#295200"]/proc/meminfo Explained "Free," "buffer," "swap," "dirty." What does it all mean? If you said, "something to do with the Summer of '68", you may need a primer on 'meminfo'. The entries in the /proc/meminfo can help explain what's going on with your memory usage, if you know how to read it. Example of "cat /proc/meminfo": [color="#ffff00"]root: total: used: free: shared:...
/proc/meminfo Explained March 2003 "Free," "buffer," "swap," "dirty." What does it all mean? If you said, "something to do with the Summer of '68", you may need a primer on 'meminfo'. The entries in the /proc/meminfo can help explain what's going on with your memory usage, if you know how to read it. Example of "cat /proc/meminfo": root: total: used: free: shared: bu...
上篇文章对meminfo里的信息做出简单的解释了那么内核怎么把meminfo信息动态反应到meminfo文件中呢在内核 linux/fs/proc/proc_misc.c中 static int meminfo_read_proc(char *page, char **start, off_t off, int count, int *eof, void *data) { struct sysinfo i; int len; unsigned long committed; unsigned long allowed; ...
主要参考内核文档和红帽文档对 > cat /proc/meminfo 读出的内核信息进行解释, 下篇文章会简单对读出该信息的代码进行简单的分析。MemTotal: 507480 kB MemFree: 10800 kB Buffers: 34728 kB Cached: 98852 kB SwapCached: 128 kB Active: 304248 kB Inactive: 46192 kB HighTotal: 0 kB HighFree: 0 kB LowTotal: 507480 kB LowFree: ...
Tips & Tricks Featured Article: /proc/meminfo Explained March 2003 "Free," "buffer," "swap," "dirty." What does it all mean? If you said, "something to do with the Summer of '68", you may need a primer on 'meminfo'. The entries in the /proc/meminfo can help explain what's going on with your memory usage, if you know how to read it. Example of "cat /proc/meminfo": root: total: used...
from: http://marc.info/?l=linux-mm&m=104990983211149&w=2 List: linux-mm Subject: meminfo documentation take 2 From: Dave Hansen Date: 2003-04-09 17:35:34 [ Download message RAW ] Arjan pointed me to a lovely RedHat page which goes through some of this as well: http://www.redhat.com/advice/tips/ I integrated some of it, and took Bill Irwin's suggestion about the ReverseMa...