Re: Determine Files or Blocks in Page Cache

From: Arjan van de Ven
Date: Sun Feb 19 2006 - 15:21:08 EST


On Sun, 2006-02-19 at 15:11 -0500, Chase Douglas wrote:
> I'm doing some research with servers and would like to know if there's
> any reasonable way to determine which files or blocks of files are being
> cached at any given time.

which files is hard currently; which blocks of a file you can get by
mmaping the file and then using the mincore() syscall..

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/