[comp.unix.wizards] tuning tools

stanonik@nprdc.navy.mil (Ron Stanonik) (08/23/89)

Are there any tools for monitoring data and stack size during
execution?  In particular, is there any way to trace virtual
(rather than resident) data and stack sizes.  I gather that
resident sizes (eg, returned by 4.3bsd getrusage) are affected
by load (and maybe priority/nice?); consequently, resident sizes
seem less repeatable/objective for tuning (finding which functions
grow huge stack spaces or alloc huge data spaces).

ps grovels around in the kernel to return virtual sizes (SIZE=data+stack).
Maybe that's the only solution?

Thanks,

Ron Stanonik
stanonik@nprdc.navy.mil