Skip to contentSkip to conversation

Determine Files or Blocks in Page Cache

DISCUSSION Chase Douglas 2 participants 2 messages Feb 19, 2006

lore
Share & tools
lore
#0 lore raw

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. If there isn't a way right now, how feasible would it be to hack a module to create an interface for this.

Thank you,
Chase Douglas

#1 lore raw
Quoted 3 lines · Chase Douglas

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