top, ps, sar which gives accurate data for CPU utilization
Hi,
I use 3 commands top, sar and ps to monitor the thread wise CPU utilization for a process. Each one gives different data for me. Please let me know which is the accurate one and why? |
Quote:
|
hi
Hi top is the best command where you get lot of details compared to the rest. All of them are accurate.
All the best. |
Quote:
Maybe top does in most cases what YOU want. But that doesn't mean that it's the best of the tools. That's like saying a hammer is better than a screwdriver or pliers. It is if you're in the process of getting nails into wood. For screws & metal the hammer is a poor choice. Cheers, Tink |
Quote:
you can use the 3 commands at the same time as for comparing the values of the CPU. .. all are useful. :) |
Here I am just interested on CPU usage and no other options the tool provides.
I heard that ps, top and sar the way they collect the data are totally different. Are anybody aware of this? can some body point to the docs which talks about internals of these commands rather than usage? |
They give the same info
the problem is knowing how to read and interpret that data I can point you to a book Optimizing Linux® Performance: A Hands-On Guide to Linux® Performance Tools nice book.. |
All times are GMT -5. The time now is 04:45 AM. |