Re: Analyzing the filesystem cache

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

 



Hi...

> How can i see which programs and files the filesystem cache is using?

Let me elaborate, you mean "given a page in page cache, i want to know 
(a)which task is currently accessing the page and (b)which file is 
mapped in this cache"?

For point (b), please study the address_space structure defined in 
include/linux/fs.h. It provides the mapping between inode and buffer 
(in the page cache).

For point (a), perhaps you find the information by searching the 
corelation between opened file descriptor and its inode....thus 
eventually might point out the page (in page cache) that is used.

Somebody CMIIW

regards

Mulyadi



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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