Re: Tracing page cache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Seongsu Lee wrote:

I want to trace page cache.

OK

The list of unique pages in cache at each moment is needed.

No, that's not needed.  You can reconstruct that afterwards
from the trace.

Could you tell me some starting points of this work?

By tools?
Or by looking and modifying LRU related codes in kernel?

If you want to do the second, look at the functions in
mm/filemap.c that add pages to the LRU list and remove
pages from the LRU list.

You can instrument those functions, and maybe the ones
in mm/vmscan.c and maybe some other files, to get a trace
of exactly what gets added to the page cache and what
gets removed.

Using this trace you can build up a history of what was
in the page cache at which point.

--
Politics is the struggle between those who want to make their country
the best in the world, and those who believe it already is.  Each group
calls the other unpatriotic.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux