linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* computing drop-able caches
@ 2016-01-28 23:42 Daniel Walker
  2016-01-28 23:58 ` Johannes Weiner
  2016-02-12 18:06 ` Dave Hansen
  0 siblings, 2 replies; 21+ messages in thread
From: Daniel Walker @ 2016-01-28 23:42 UTC (permalink / raw)
  To: Alexander Viro, Johannes Weiner, Michal Hocko, Andrew Morton,
	linux-fsdevel, linux-kernel, linux-mm, Khalid Mughal (khalidm),
	xe-kernel@external.cisco.com

Hi,

My colleague Khalid and I are working on a patch which will provide a 
/proc file to output the size of the drop-able page cache.
One way to implement this is to use the current drop_caches /proc 
routine, but instead of actually droping the caches just add
up the amount.

Here's a quote Khalid,

"Currently there is no way to figure out the droppable pagecache size
from the meminfo output. The MemFree size can shrink during normal
system operation, when some of the memory pages get cached and is
reflected in "Cached" field. Similarly for file operations some of
the buffer memory gets cached and it is reflected in "Buffers" field.
The kernel automatically reclaims all this cached & buffered memory,
when it is needed elsewhere on the system. The only way to manually
reclaim this memory is by writing 1 to /proc/sys/vm/drop_caches. "

So my impression is that the drop-able cache is spread over two fields 
in meminfo.

Alright, the question is does this info live someplace else that we 
don't know about? Or someplace in the kernel where it could be
added to meminfo trivially ?

The point of the whole exercise is to get a better idea of free memory 
for our employer. Does it make sense to do this for computing free memory?

Any comments welcome..

Daniel

--
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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2016-02-12 22:15 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-28 23:42 computing drop-able caches Daniel Walker
2016-01-28 23:58 ` Johannes Weiner
2016-01-29  1:03   ` Daniel Walker
2016-01-29  1:29     ` Daniel Walker
2016-01-29  1:55       ` Johannes Weiner
2016-01-29 21:21         ` Daniel Walker
2016-01-29 22:33           ` Johannes Weiner
2016-01-29 22:41         ` Rik van Riel
2016-02-08 20:57           ` Khalid Mughal (khalidm)
2016-02-10 18:04             ` Daniel Walker
2016-02-10 18:13               ` Dave Hansen
2016-02-10 19:11                 ` Daniel Walker
2016-02-11 22:11                   ` Rik van Riel
2016-02-12 18:01                     ` Khalid Mughal (khalidm)
2016-02-12 21:46                       ` Dave Hansen
2016-02-12 22:15                         ` Johannes Weiner
2016-02-12 18:06 ` Dave Hansen
2016-02-12 18:15   ` Daniel Walker
2016-02-12 18:18     ` Dave Hansen
2016-02-12 18:25       ` Daniel Walker
2016-02-12 20:15       ` Daniel Walker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).