Help debugging filesystem activity?
My hard disk on my server is all the time readding and writing some files (I can see it with dstat). However I would like to know which files exactly are readden or written all the time. I know that each filesystem activity goes by the VFS (virtual filesystem). Is it possible to see all current open files in the VFS?
For example with a command like:
$ cat /proc/fs/vfs/open_files $ cat /proc/fs/vfs/reading_files $ cat /proc/fs/vfs/writing_files
?
Is there a possibility? It should be on the VFS level to be independent of the used filesystem.
Signature · 5 lines
Best regards -- E-Mail sent with anti-spam site TrashMail.net! Free disposable email addresses: http://www.trashmail.net/
Quoted 3 lines · rzryyvzy
$ cat /proc/fs/vfs/reading_files$ cat /proc/fs/vfs/writing_files
You can try:
# echo 1 > /proc/sys/vm/block_dump # dmesg
HTH.
Signature · 1 line
Guillaume
Quoted 4 lines · Guillaume Chazarain
Quoted 2 lines · rzryyvzy
$ cat /proc/fs/vfs/reading_files
Quoted 8 lines
Quoted 2 lines
$ cat /proc/fs/vfs/writing_filesYou can try:
# echo 1 > /proc/sys/vm/block_dump # dmesg
Thanks, it works. This option rocks. I did not know about that. This is what I really like in Linux: Everything is possible.
Signature · 2 lines
Best regards, Mika Lawando