From My Brain to Your Browser
Jeff Victor's Blog
Archives
« November 2009
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
     
       
Today
Click me to subscribe
Search

Links
 

Today's Page Hits: 224

« Patching Zones Goes... | Main | What's Pluto? »
Wednesday Apr 08, 2009
Zonestat 1.4 Now Available

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:

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:

Please send questions and requests to zones-discuss@opensolaris.org .

Posted at 09:20AM Apr 08, 2009 by Jeffrey Victor in Solaris 10 Containers  |  Comments[5]

Comments:

Great tool, Jeff.

I am sure that you already know and this is for future releases, but I got:
Illegal division by zero at zonestat.pl line 580
when booting newly installed zone.

Posted by Roman on April 09, 2009 at 09:43 AM EDT #

Thanks for reporting that, Roman.

A fix has been developed. It has also been tested, by myself and by Roman. Version 1.4.1 will be out in a few days.

Posted by Jeff Victor on April 28, 2009 at 10:19 PM EDT #

Thank you for this v. useful tool.

I have a feature request, if it's not already underway. Can zonestat monitor the current number of LWP's, versus the max-lwps cap?

I currently use "rcapstat -z" for this, but it doesn't always show me the number of processes, and it doesn't show the cap limits.

Thanks again.

Posted by Craig Bell on May 28, 2009 at 02:27 PM EDT #

Craig: the number of processes, and/or LWPs, could be added to zonestat easily. The most challenging part is the lack of screen width in the -l format. But process-related info would be useful along with the planned "-p" option.
However, I am a bit confused by your statement about rcapstat. That tool does not display the number of LWPs in use. It only displays the number of processes in use. If the goal is to compare the current value against the max-lwps limit, the value you should be checking is LWPs, which is shown by prstat.

Posted by JeffV on May 28, 2009 at 03:20 PM EDT #

You're right, I wish to see the LWPs -- the same resource that is capped. Sorry for the confusion. Thanks for the info Jeff. -c

Posted by Craig Bell on May 28, 2009 at 04:43 PM EDT #

Post a Comment:
Comments are closed for this entry.