Unix Technical Forum

How to monitor which process accessing which file on a busy filesystem?

This is a discussion on How to monitor which process accessing which file on a busy filesystem? within the AIX Operating System forums, part of the Unix Operating Systems category; --> Is there any tool that can be use to monitor which process is accessing which file on a busy ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 12:51 PM
chiangwaiyiu@gmail.com
 
Posts: n/a
Default How to monitor which process accessing which file on a busy filesystem?

Is there any tool that can be use to monitor which process is
accessing which file on a busy filesystem?
By using topas, it can be identified that the most busy physical
volume is hdisk2. There is only one filesystem on hdisk2. There are a
lot of files and different applications are accessing this filesystem.
So it is very hard for me to identify which process and which
application is causing the disk contention.
Thus, what I want to do is want to find a tool that can let me to
monitoring a specific filesystem and see which files are most
frequently access by which process.
By the way, I have already tried to use the filemon from AIX. However,
it is not able provide what i want to. Since it is not able to just
monitor a specific filesystem while it can only narrow down to LV
level and so on. The output are strange though, it return a process
number rather than a inode number on the file report session. That is
why I can't able to identify the most busiest files as well. Here is
part of the output from filemon,

Most Active Files
------------------------------------------------------------------------
#MBs #opns #rds #wrs file volume:inode
------------------------------------------------------------------------
1.8 0 0 28 pid=868424_fd=7
1.8 0 28 0 pid=868424_fd=5
1.1 0 288 0 pid=1380542_fd=5

Any comment and any idea are all welcome. Thanks so much for help.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 12:51 PM
Miguel Sanders
 
Posts: n/a
Default Re: How to monitor which process accessing which file on a busy filesystem?

man fuser

On 1 aug, 10:42, chiangwai...@gmail.com wrote:
> Is there any tool that can be use to monitor which process is
> accessing which file on a busy filesystem?
> By using topas, it can be identified that the most busy physical
> volume is hdisk2. There is only one filesystem on hdisk2. There are a
> lot of files and different applications are accessing this filesystem.
> So it is very hard for me to identify which process and which
> application is causing the disk contention.
> Thus, what I want to do is want to find a tool that can let me to
> monitoring a specific filesystem and see which files are most
> frequently access by which process.
> By the way, I have already tried to use the filemon from AIX. However,
> it is not able provide what i want to. Since it is not able to just
> monitor a specific filesystem while it can only narrow down to LV
> level and so on. The output are strange though, it return a process
> number rather than a inode number on the file report session. That is
> why I can't able to identify the most busiest files as well. Here is
> part of the output from filemon,
>
> Most Active Files
> ------------------------------------------------------------------------
> #MBs #opns #rds #wrs file volume:inode
> ------------------------------------------------------------------------
> 1.8 0 0 28 pid=868424_fd=7
> 1.8 0 28 0 pid=868424_fd=5
> 1.1 0 288 0 pid=1380542_fd=5
>
> Any comment and any idea are all welcome. Thanks so much for help.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 12:51 PM
c00p
 
Posts: n/a
Default Re: How to monitor which process accessing which file on a busy filesystem?

On Aug 1, 4:42 am, chiangwai...@gmail.com wrote:
> Is there any tool that can be use to monitor which process is
> accessing which file on a busy filesystem?
> By using topas, it can be identified that the most busy physical
> volume is hdisk2. There is only one filesystem on hdisk2. There are a
> lot of files and different applications are accessing this filesystem.
> So it is very hard for me to identify which process and which
> application is causing the disk contention.
> Thus, what I want to do is want to find a tool that can let me to
> monitoring a specific filesystem and see which files are most
> frequently access by which process.
> By the way, I have already tried to use the filemon from AIX. However,
> it is not able provide what i want to. Since it is not able to just
> monitor a specific filesystem while it can only narrow down to LV
> level and so on. The output are strange though, it return a process
> number rather than a inode number on the file report session. That is
> why I can't able to identify the most busiest files as well. Here is
> part of the output from filemon,
>
> Most Active Files
> ------------------------------------------------------------------------
> #MBs #opns #rds #wrs file volume:inode
> ------------------------------------------------------------------------
> 1.8 0 0 28 pid=868424_fd=7
> 1.8 0 28 0 pid=868424_fd=5
> 1.1 0 288 0 pid=1380542_fd=5
>
> Any comment and any idea are all welcome. Thanks so much for help.


I prefer lsof to fuser...I find it much more reliable.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:10 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com