On Wed, Nov 12, 2008 at 2:32 AM, Davide Vanoni <[EMAIL PROTECTED]> wrote: > Andrew wrote: >>Are you aware of prstat -Z ? >>Not quite the same, but maybe it gives you what you need? >> > Thanks for your reply! Unfortunately prstat ignores anything that > happened between samples. I need something that maintains > information about cpu utilization between samples (for short-lived > processes). The problem is to take precisely this kind of > information by zones. Maybe it is possible to do it with dtrace but > I don't know how. Thanks for your suggestions!
With a bit of scripting you can get this data from extended (task) accounting. I have been using this method for a couple years with great success. Unfortunately I can't share the code. :( Some good starting points to understand how to do this are: http://perfcap.blogspot.com/2005/04/writing-accounting-records-at-time.html http://perfcap.blogspot.com/2005/04/sequencing-exacct-logs.html http://perfcap.blogspot.com/2005/04/automated-rotating-exdump.html http://perfcap.blogspot.com/2005/07/extracct-code-posted-on-orcawarecom.html I probably missed a couple as well - you may want to take a closer look Adrian's 2005 postings to catch the rest. I haven't tried out extracct, as I already had my Perl version that uses the Sun::Solaris::Exacct Perl module. If you need to create your own tool, you can certainly do so in C or Perl. I started a discussion of perhaps a better way to collect the data at http://mail.opensolaris.org/pipermail/perf-discuss/2005-November/002048.html. Essentially, this mechanism would give you the number of CPU ticks used on a per user, project, and zone basis through kstat or similar. However, this would involve kernel changes. One of these days I hope to find the time to prototype this to understand the performance implications. If done right, it should be about the same overhead as having a single instance of prstat running. -- Mike Gerdts http://mgerdts.blogspot.com/ _______________________________________________ dtrace-discuss mailing list dtrace-discuss@opensolaris.org