Is there a tool on Ubuntu or Mac to monitor a program's CPU and I/O usage and I/O wait times?

617 Views Asked by At

I want to determine if my application is IO or CPU bounded. Is there such a tool to determine how much of your application's run time is spent on CPU wait/IO wait/running on CPU etc.? I am running my application from terminal. I have heard there is such a tool for linux actually but I don't what is it.

3

There are 3 best solutions below

0
On

I think you can try the nmon.It can be used in most Linux environment.

1
On

You can use a combination of mpstat and iostat (I don't believe the former is available for OS X).

0
On

Here is a list of the top 5 monitoring tools for ubuntu. You can collect quite a bit of info.