Re: [zones-discuss] Per-zone CPU Usage Reporting?
That's right, there is a key term here, and is "reporting", which involves accounting. Thanks, Jeff! Best regards, HeCSa. On Fri, Sep 18, 2009 at 1:48 PM, Jeff Victor wrote: > Hernan, > > 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. > > --JeffV > > On Fri, Sep 18, 2009 at 9:31 AM, Hernan Saltiel > 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 > > 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 > > > > > > -- > --JeffV > -- HeCSa ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] Per-zone CPU Usage Reporting?
Hernan, 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. --JeffV On Fri, Sep 18, 2009 at 9:31 AM, Hernan Saltiel 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 > 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 > -- --JeffV ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] Per-zone CPU Usage Reporting?
On Fri, Sep 18, 2009 at 8:30 AM, Mads Toftum wrote: > On Fri, Sep 18, 2009 at 09:27:54AM -0400, Jeff Victor 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. >> > There's http://asyd.net/home/projects/zonestats > > vh > > Mads Toftum The approach used there and by prstat -Z will miss all short-running programs. If you don't have many short running processes, this is not a big deal. However, if you have a print server, software builds, and sometimes misbehaving applications, such approaches miss the bulk of the workload. I've solved this, but in code I sadly can't share. All the info needed to recreate it is linked from: http://www.opensolaris.org/jive/thread.jspa?threadID=82217#306092 -- Mike Gerdts http://mgerdts.blogspot.com/ ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] Per-zone CPU Usage Reporting?
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 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 zones-discuss@opensolaris.org
Re: [zones-discuss] Per-zone CPU Usage Reporting?
On Fri, Sep 18, 2009 at 09:27:54AM -0400, Jeff Victor 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. > There's http://asyd.net/home/projects/zonestats vh Mads Toftum -- http://soulfood.dk ___ zones-discuss mailing list zones-discuss@opensolaris.org
[zones-discuss] Per-zone CPU Usage Reporting?
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