Zonestat 1.4 Now Available
By Jeff Victor-Oracle on Apr 08, 2009
I have posted Zonestat v1.4 at: the Zone Statistics project page (click on "Files" in the left navbar).
Zonestat is a 'dashboard' for Solaris Containers. It shows resource consumption of each Container (aka Zone) and a comparison of consumption against limits you have set.
Changes from v1.3:
- BugFix: various failures if the pools service was not online. V1.4 checks for the existence of the pools packages, and behaves correctly whether they are installed and enabled, or not.
- BugFix: various symptoms if the rcapd service was not online. V1.4 checks for the existence of the rcap packages, and behaves correctly whether they are installed and enabled, or not.
- BugFix: mis-reported shared memory usage
- BugFix: -lP produced human-readable, not machine-parseable output
- Bug/RFE: detect and fail if zone != global or user != root
- RFE: Prepare for S10 update numbers past U6
- RFE: Add option to print entire name of zones with long names
- RFE: Add timestamp to machine-consumable output
- RFE: improve performance and correctness by collecting CPU% with DTrace instead of prstat
Note that the addition of a timestamp to -P output changes the output format for "machine-readable" output.
For most people, the most important change will be the use of DTrace to collect CPU% data. This has two effects. The first effect is improved correctness. The prstat command - used in V1.3 and earlier, can horribly underestimate CPU cycles consumed because it can miss many short-lived processes. The mpstat has its own problems with mis-counting CPU usage. So I expanded on a solution Jim Fiori offered, which uses DTrace to answer the question "which zone is using a CPU right now?"
The other benefit to DTrace is the improvement in performance of Zonestat.
The less popular, but still interesting additions include:
- -N expands the width of the zonename field to the length of the longest zone name. This preserves the entire zone name, for all zones, and also leaves the columns lined up. However, the length of the output lines will exceed 80 characters.
- The new timestamp field in -P output makes it easier for tools like the "System Data Recorder" (SDR) to consume zonestat output. However, this was a change to the output format. If you have written a script which used -P and assumed a specific format for zonestat output, you must change your script to understand the new format.
Please send questions and requests to email@example.com .