Hi,<br><br>Please find my reply inlined.<br>
<br><br><div class="gmail_quote">On Wed, Aug 10, 2011 at 1:04 PM, Prateek Sharma <span dir="ltr"><<a href="mailto:prateek3.14@gmail.com">prateek3.14@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br><br><div class="gmail_quote"><div class="im">On Wed, Aug 10, 2011 at 12:56 PM, Mulyadi Santosa <span dir="ltr"><<a href="mailto:mulyadi.santosa@gmail.com" target="_blank">mulyadi.santosa@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi///<br>
<div><br>
On 09/08/2011, =/_00/\/\ <<a href="mailto:z0032oom@gmail.com" target="_blank">z0032oom@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
</div><div>> Thanks for replying<br>
> Here is one observation worth mentioning.<br>
> On boot system it shows Mapped < Cached (In fact much less)<br>
<br>
</div>quite predictable.... during booting phase, your system read() much by<br>
doesn't mmap() that much....<br>
<div><br>
> After using system for some time following commands are executed.<br>
> # sync and echo 3 > /proc/sys/vm/drop_cache<br>
><br>
> Whenever above command is executed I can see Mapped > Cached.<br>
<br>
</div>by echoing "3" to drop_cache, you flush the content of page cache as<br>
much as possible ...<br>
<div><br></div></blockquote><div> </div></div><div>Here is my understanding of what drop_page_cache does:</div><div>All page-cache pages are 'dropped' except the following:</div><div>1. Dirty pages. (they are *not* synced)</div>
<div>2. Mapped pages (pages 'in use' , mapped by rmap )</div><div>(There are a few more exceptions i dont recall now.)</div></div></blockquote><div><br>But even in this case Cached (/proc/meminfo) should be always greater than Mapped(/proc/meminfo) (As it will contain mapped + Unmapped pages)<br>
I also saw that Cached (/proc/meminfo) does not include Buffer Cache.<br><br>========= fs/proc/meminfo.c ========<br>cached = global_page_state(NR_FILE_PAGES) -<br> total_swapcache_pages - i.bufferram;<br>
==============================<br><br>Even if drop_cache is not done is it ever possible to get Cached < Mapped ?<br><br></div><br></div><br clear="all">Regards,<br> ~/<br>