Quote:
Originally Posted by
Marc G
Sadly, prstat only gives most of it's data 'per process' where I need amalgamated data for the entire box.(as top gives)
You might want to use "top -Z" which gives some statistics per zone.
Quote:
When I investigated getting the CPU and memory data from vmstat, I could find no method of getting the values for "iowait" or "swap".
That's no surprise.
- "iowait" ceased to be reported by Solaris many years ago being quite confusing, meaningless and commonly misinterpreted.
- There is no "swap" CPU state so it should always display 0% here.
Quote:
As for memory, the only values I see in vmstat are Swap and Free. Nothing about Physical memory, free or otherwise.
vmstat "free" column is definitely about physical memory. the "swap" column is not that much related to what top reports. "swap" means here available virtual memory. What top reports is the swap area usage which you can get with "swap -l" on Solaris.
Quote:
I am looking into my options, which are broadening as I look at things like "kstat", which i do not know how to use
Most of the statistic gathering commands (eg. vmstat, iostat, mpstat, netstat, ...) are using the kstat interface to get part or all of their input data. The kstat command allows to get the low level data from which they build a more readable representation.
Quote:
But this also does not get me a complete set of the data that top does.
No command will. "top" is gathering data from different sources (mostly kstat and /proc) and consolidating them its way.
Quote:
On the basis that this is just a box following instructions, I am assuming there is another way to get what top does from a Solaris box and I am hoping that someone here can give me some direction in getting it?
That's a wrong assumption if you expect a single alternative tool that provides the same set of statistics. If you want top just use it and fix whatever doesn't work in the way you call it. Otherwise, you'll have to aggregate data from different commands or process kstat output, if you are not interested in process specific information.