Re: kernelnewbies Digest V7 #96

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

 



Date: Tue, 17 Apr 2007 22:29:52 -0400
From: Rik van Riel <riel@xxxxxxxxxxx>
Subject: Re: Tracing page cache

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.

Rik, do you mean accessing the mem_map array and then reconstructing a
list of unique pages ?

Thanks

~psr


> 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.



--
play the game

--
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