Determine Files or Blocks in Page Cache
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
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..