Hi all, I am newbie to Dtrace and blogs!!! I am look for suggestions to use Dtrace and its tools for monitioring a Solaris box with Informix DB and has Containers? How to monitor Containers for IO stat/ CPU time/idle time/ Top 10 commmands what is taking maximum CPU resorses and memory Is using Unix commands is better or using Dtace and its tools is better. Please repond me I am anewbieeeee to Dtrace and also blogsssssss!!
Hi,> I am look for suggestions to use Dtrace and its tools for monitioring > a Solaris box with Informix DB and has Containers? > > How to monitor Containers for IO stat/ CPU time/idle time/ Top 10 > commmands what is taking maximum CPU resorses and memorySolaris already have few nice tools to do that, and they work in zones. IO stats - iostat(1M) CPU time/idle time - prstat(1M) Memory consumption - ps(1), vmstat(1M) I''m not sure what "Top 10 commands means". Perhaps top 10 most executed ? That can be done with dtrace $ dtrace -n ''proc:::exec-success{ @[execname]=count() }'' This starts to count newly executed processes. It display results when you press Ctrl+C.> Is using Unix commands is better or using Dtace and > its tools is better.The traditional unix commands are probably more convenient as a start. If you are looking for some specific issue, you might be able to get more detailed information using dtrace. HTH -- Vlad -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 193 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20080520/52cde53d/attachment.bin>
> How to monitor Containers for IO stat/ CPU time/idle > time/ Top 10 commmands > what is taking maximum CPU resorses and memoryiostat mpstat prstat> > Is using Unix commands is better or using Dtace and > its tools is better.It depends, the more specific the question the more useful DTrace. Check out Brendan Gregg''s toolkit at https://www.opensolaris.org/os/community/dtrace/dtracetoolkit/. rick> > Please repond me > > I am anewbieeeee to Dtrace and also blogsssssss!! > > > > > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org-- Rickey C. Weisner Software Development and Performance Specialist Sun Microsystems, INC cell phone: 615-308-1147 email: rick.weisner at sun.com
On Wed, May 21, 2008 at 12:55 AM, madhu mulukutla <madhumulukutla at yahoo.com> wrote:> Hi all, > I am newbie to Dtrace and blogs!!! > I am look for suggestions to use Dtrace and its tools > for monitioring a Solaris box with Informix DB and has > Containers? > > How to monitor Containers for IO stat/ CPU time/idle > time/ Top 10 commmands > what is taking maximum CPU resorses and memory > > Is using Unix commands is better or using Dtace and > its tools is better. >DTraceToolkit is a good starting point to learn dtrace. One approach that I find beneficial is to look at the files in the examples folder. These files have the output & explanation for various scripts provided with the DTraceToolkit. If the information in any particular output is of interest to you, execute the corresponding dtrace script, study it, customize it to suit your needs. -Shiv