Re: [zones-discuss] [networking-discuss] is the zoneid signed or unsigned?

2009-09-18 Thread Peter Memishian
> > Do a "man snoop" and search for the word "zone". > > My argument wasn't that there were zero bugs in the OS. That keyword > seems to me to be pretty clearly a defect in snoop. (And apparently a > recent one; less than a year old.) ... and indeed, there's a CR open to allow snoop to ac

Re: [zones-discuss] [networking-discuss] is the zoneid signed or unsigned?

2009-09-18 Thread James Carlson
John Leser wrote: > Darren Reed wrote: >> Do a "man snoop" and search for the word "zone". >> > > Oh, that was a bit of a let-down... > > Anyway, this seems to pose an interesting challenge to programs like > snoop that want to encode zone ID information in output files. The zone > ID numbers ar

Re: [zones-discuss] [networking-discuss] is the zoneid signed or unsigned?

2009-09-18 Thread James Carlson
Darren Reed wrote: > On 18/09/09 10:44 AM, James Carlson wrote: >> Darren Reed wrote: >>> As an unsigned integer for all values, except -1, or as a signed integer? >>> >> >> I still think it's properly "neither." Users can't reasonably do >> anything with those ephemeral numbers, so printing

Re: [zones-discuss] [networking-discuss] is the zoneid signed or unsigned?

2009-09-18 Thread James Carlson
Darren Reed wrote: > James Carlson wrote: >> What kind of confusion are you expecting? >> > > If it is an opaque type, then how does it get printed? You have to use one of the look-up functions to convert it to a string for printing. Zones are named, not numbered, even in the kernel. This wa

Re: [zones-discuss] Per-zone CPU Usage Reporting?

2009-09-18 Thread Hernan Saltiel
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 proc

Re: [zones-discuss] Per-zone CPU Usage Reporting?

2009-09-18 Thread Jeff Victor
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

Re: [zones-discuss] Per-zone CPU Usage Reporting?

2009-09-18 Thread Mike Gerdts
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/zonest

Re: [zones-discuss] Per-zone CPU Usage Reporting?

2009-09-18 Thread Hernan Saltiel
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

Re: [zones-discuss] Per-zone CPU Usage Reporting?

2009-09-18 Thread Mads Toftum
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] Per-zone CPU Usage Reporting?

2009-09-18 Thread Jeff Victor
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

Re: [zones-discuss] [networking-discuss] is the zoneid signed or unsigned?

2009-09-18 Thread James Carlson
Darren Reed wrote: > Guys, In most parts of the source code, the zoneid is unsigned, > except for where we use ALL_ZONES. Then in some places, > we assign or expect -1 to be the zoneid, for example in what > psh prints and expects to see. > > It would seem that we want the zoneid to be unsigned ex