Operating System - HP-UX
1832401 Members
3128 Online
110041 Solutions
New Discussion

Performance Monitoring Processes doing reading and writing

 
BEN WRIGHT
Advisor

Performance Monitoring Processes doing reading and writing

Hello there
Are there any commands which actually allow me to find what processes are reading from or writing to a disk/s?
For example I can use sar -d to see that the disks are busy, and I can use lsof to see what processes have open files on those disks (the way the file system is set up).
But how can I find out what is actually reading or writing?
Your help is appreciated.
Best regards
Ben
5 REPLIES 5
Paula J Frazer-Campbell
Honored Contributor

Re: Performance Monitoring Processes doing reading and writing

Ben

Fuser may do what you require, you must be root to run it.

see man fuser.

Paula
If you can spell SysAdmin then you is one - anon
Christopher McCray_1
Honored Contributor

Re: Performance Monitoring Processes doing reading and writing

Hello,

If you have it, you can use the Measureware product to extract process data using the PROC_DISK_LOGL_READ_RATE, PROC_DISK_LOGL_WRITE_RATE, and so on and tie them to the metric PROC_APP_ID.

Hope this helps

Chris
It wasn't me!!!!
BEN WRIGHT
Advisor

Re: Performance Monitoring Processes doing reading and writing

Sorry I was looking for more than this, but there you go.

Best regards

Ben
harry d brown jr
Honored Contributor

Re: Performance Monitoring Processes doing reading and writing

Ben,

The real answer is NO, because processes can switch back and forth between processors so fast that measuring that grainularity is insane and more likely a waste of resources.

You could PRETEND that processes don't switch between processors and capture a ps -ef when you are doing a sar -d, and then match the IO activity up to the processes and then extract the CPU number.

live free or die
harry
Live Free or Die
Ravi_8
Honored Contributor

Re: Performance Monitoring Processes doing reading and writing

Hi Ben

as for as i know, there are no any commands.
never give up