The patch titled Subject: /proc/meminfo: exclude shmem from "Cached" has been added to the -mm tree. Its filename is mm-change-meminfo-cached-calculation.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-change-meminfo-cached-calculation.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-change-meminfo-cached-calculation.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: "Wang, Yalin" <Yalin.Wang@xxxxxxxxxxxxxx> Subject: /proc/meminfo: exclude shmem from "Cached" Subtract sharedram (shmem) from "Cached". sharedram can only be swapped into swap partitions so it should be treated as swap pages, not as cached pages. Signed-off-by: Yalin Wang <yalin.wang@xxxxxxxxxxxxxx> Cc: Hugh Dickins <hughd@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/proc/meminfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN fs/proc/meminfo.c~mm-change-meminfo-cached-calculation fs/proc/meminfo.c --- a/fs/proc/meminfo.c~mm-change-meminfo-cached-calculation +++ a/fs/proc/meminfo.c @@ -45,7 +45,7 @@ static int meminfo_proc_show(struct seq_ committed = percpu_counter_read_positive(&vm_committed_as); cached = global_page_state(NR_FILE_PAGES) - - total_swapcache_pages() - i.bufferram; + total_swapcache_pages() - i.bufferram - i.sharedram; if (cached < 0) cached = 0; _ Patches currently in -mm which might be from Yalin.Wang@xxxxxxxxxxxxxx are mm-add-vm_bug_on_page-for-page_mapcount.patch mm-add-kpf_zero_page-flag-for-proc-kpageflags.patch mm-change-meminfo-cached-calculation.patch mm-change-meminfo-cached-calculation-fix.patch linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html