In addition to Mike's point about short-lived processes, prstat
doesn't tell me how much CPU time a process used during its life.
Solaris Accounting will generate a record for each process, showing
how much CPU time it used, and which zone it was in. If you collect
all of the records, you can sum CPU time for each zone.

They need a tool which uses those records for input and generates a
report for chargeback.


On Fri, Sep 18, 2009 at 9:31 AM, Hernan Saltiel <hsalt...@gmail.com> wrote:
> Hello, Jeff!
> Have you tried "prstat -Z"? Is this not what you are looking for?
> Best regards,
> HeCSa.
> http://www.aosug.com.ar
> On Fri, Sep 18, 2009 at 10:27 AM, Jeff Victor <jeff.j.vic...@gmail.com>
> wrote:
>> Has anyone written a tool to provide per-zone reporting of CPU usage -
>> that can be shared? I know someone who wants to do this.
>> Thanks in advance,
>> --JeffV
>> _______________________________________________
>> zones-discuss mailing list
>> zones-discuss@opensolaris.org
> --
> HeCSa

zones-discuss mailing list

Reply via email to