1

Can prstat or something similar tell me how many reads/writes a process is doing similar to how Task Manager on Windows can show I/O Reads, I/O Writes and many other I/O columns per process?

I'm using SunOS 5.10, but feel free to post other Unix flavours too.

bahamat
  • 6,263
  • 24
  • 28

2 Answers2

3

For a modern Linux utility check out iotop. Unfortunately it requires Python >= 2.4 and Linux >= 2.6.20 so it won't be much help to you on Sun OS.

For SunOS 5.10 you can use DTrace. There's some scripts on this Top Ten DTrace Scripts page that are an example of what you can do. Of course you can tune them to your liking. I don't know of anything that will give you a nice out-of-the box utility though.

Kamil Kisiel
  • 12,184
  • 7
  • 48
  • 69
  • Download the DTrace Toolkit (http://www.brendangregg.com/dtrace.html#DTraceToolkit). it contains a number of DTrace scripts relating to IO - iotop, iohog, iosnoop etc. That should get you going in the right direction. – Shaun Dewberry May 24 '11 at 14:36
2

You should take a look at sar and see if it does what you're looking for.

alanc
  • 1,500
  • 9
  • 12
Dennis Williamson
  • 62,149
  • 16
  • 116
  • 151