Re: [perf-discuss] CPU data per project and/or zone?

2005-11-04 Thread Mike Gerdts
On 11/4/05, Andrei Dorofeev <[EMAIL PROTECTED]> wrote: > Another approach is to have exacct write final accounting records and > periodically use getacct(2) system call and take live snapshots for > tasks and aggregate them by projects. I've prototyped a tool called > 'taskstat' some > time ago th

Re: [perf-discuss] CPU data per project and/or zone?

2005-11-04 Thread Jonathan Adams
On Thu, Nov 03, 2005 at 11:02:01PM -0600, Mike Gerdts wrote: > - As the process is exiting (wow, exiting is a lot of work!) it adds > its children's usr and sys time to its own usr and sys time. > > http://cvs.opensolaris.org/source/xref/on/usr/src/uts/common/os/exit.c#1172 > >1124 void >

Re: [perf-discuss] Counting memory usage

2005-11-04 Thread Bart Smaalders
Andrei Dorofeev wrote: So, unfortunately, the current situation with memory accounting is not perfect *and* there's very little room for improvements. The good news is that Memory Sets and Swap Sets projects will solve two other problems you've identified :-) The problem is essentially this

Re: [perf-discuss] Counting memory usage

2005-11-04 Thread Peter Tribble
On Fri, 2005-11-04 at 15:37, Andrei Dorofeev wrote: > On 11/4/05, Peter Tribble <[EMAIL PROTECTED]> wrote: > > However, there is one case in which prstat could be improved. While > > the prstat -a output simply adds the memory of each process, if you > > use prstat -aL it simply adds things up by L

Re: [perf-discuss] Counting memory usage

2005-11-04 Thread Andrei Dorofeev
On 11/4/05, Peter Tribble <[EMAIL PROTECTED]> wrote: > However, there is one case in which prstat could be improved. While > the prstat -a output simply adds the memory of each process, if you > use prstat -aL it simply adds things up by LWP so the memory usage > gets multiplied by the number of LW

Re: [perf-discuss] CPU data per project and/or zone?

2005-11-04 Thread Gavin Maltby
On 11/04/05 08:11, Andrei Dorofeev wrote: BEGIN { ncpu = 2; /* XXX Can DTrace give us ncpus? */ } Yes `ncpus will give you access to the kernel variable ncpus. Qualify with a module name if necessary, as in unix`ncpus. Cheers Gavin ___ perf

Re: [perf-discuss] Counting memory usage

2005-11-04 Thread Peter Tribble
On Fri, 2005-11-04 at 08:35, Andrei Dorofeev wrote: > Hi Mike, > > > processes are counted multiple times. In an extreme example of a busy > > 15k domain with hundreds of gigabytes of physical RAM and less than 50 > > GB swap, "prstat -a" will report that many terabytes of memory are in > > the r

Re: [perf-discuss] Counting memory usage

2005-11-04 Thread Andrei Dorofeev
Hi Mike, > processes are counted multiple times. In an extreme example of a busy > 15k domain with hundreds of gigabytes of physical RAM and less than 50 > GB swap, "prstat -a" will report that many terabytes of memory are in > the resident set for the oracle user. This is impossible. About the

Re: [perf-discuss] CPU data per project and/or zone?

2005-11-04 Thread Andrei Dorofeev
On 11/2/05, Mike Gerdts <[EMAIL PROTECTED]> wrote: > The best solution that I have come up with is to write extended > accounting records (task) every few minutes, then to process the > exacct file afterwards. Writing the code to write exacct records > periodically and make sense of them later is