performance shell scripts
am 31.10.2007 03:40:03 von vaede.nI AM LOOKING FOR A WEBSITE OR SAMPLE SCRIPTS THAT WILL PROVIDE CPU,
MEMORY, SWAP
PERFOMANCE IN SOLARIS 10. THANKS
I AM LOOKING FOR A WEBSITE OR SAMPLE SCRIPTS THAT WILL PROVIDE CPU,
MEMORY, SWAP
PERFOMANCE IN SOLARIS 10. THANKS
On Oct 30, 7:40 pm, vaed...@gmail.com wrote:
> I AM LOOKING FOR A WEBSITE OR SAMPLE SCRIPTS THAT WILL
> PROVIDE CPU, MEMORY, AND SWAP PERFOMANCE IN SOLARIS10.
> THANKS.
For your general needs, the following is a fine source of
administrative
scripts and tutorials for Solaris:
http://www.sun.com/bigadmin/scripts/
Look through their scripts for system monitoring:
http://www.sun.com/bigadmin/scripts/indexMon.html
.... and maybe even:
"sys_diag.ksh": configuration and performance snapshot, analysis, and
reporting utility
http://www.sun.com/bigadmin/jsp/descFile.jsp?url=descAll/sys _diag__solaris_c
"swap_space_check.ksh": check and report on swap space.
"Sysnoop.ksh": lots of system information.
.... and so on. Many URLs are stale, but may presumable found via
Google.
=Brian
On Oct 30, 9:40 pm, vaed...@gmail.com wrote:
> I AM LOOKING FOR A WEBSITE OR SAMPLE SCRIPTS THAT WILL PROVIDE CPU,
> MEMORY, SWAP
> PERFOMANCE IN SOLARIS 10. THANKS
Definitely check out "sys_diag" .. it will do ALL the heavy lifting
for you,
and give you a single .HTML color coded dashboard atop of a full
system
detailed config and perf analysis report (though what gets done is
selectable via
command line options). :... for usage, type : ./sys_diag -? (or -
h)
It runs from S2.6 through the latest S11 (Solaris Express) builds..
and works the same
on x86 as well as for SPARC. It's great for as-built, certified
configuration snapshots, as
well as for performance anaylsis and benchmarking "snapshots"...
For high level performance analysis, (vmstat, mpstat, iostat, netstat,
etc..), run with "-g"
to "gather" performance data at a specified "interval" such as every
second "-I 1", and/or
include the Total duration for the snapshot in number of seconds such
as for 5mins with "-T 300".
(the defaults for interval and total duration of snapshot are -I 2 ..
2 sec samples, for 5 mins .. -T 300).
So, the following gives you the defaults of high level performance
snapshot and analysis,
creating an .html report with the findings (and all the data and
reports in a single .tar.Z) :
# ./sys_diag -g (gathers high level perf data at 2 second
intervals for 5 mins.. the defaults)
#./sys_diag -g -l (by adding "-l" , you also get a "long"
detailed system configuration report)
# ./sys_diag -g -I 1 -T180 (gathers high level perf data at 1
second intervals for 3 mins)
If you are running S10 and want a "DEEP" performance analysis report
with DTrace and lockstat
deep probing, run with "-G" instead of "-g". And for more verbosity
in the report/output data, add
either -v (basic verbosity) or -V (deep Verbosity). Note that with -
G, you will incur more % of CPU
when DTrace and lockstat, mdb, etc.. are probing the system, so
account for some overhead.
For version 7.04 :
The README is at : http://blogs.sun.com/toddjobson/resource/README_sys_diag.txt
Download it from Either BigAdmin :
http://www.sun.com/bigadmin/jsp/descFile.jsp?url=descAll/sys _diag__solaris_c
OR SunFreeware (packaged) :
http://www.sunfreeware.com/programlistsparc10.html#sys_diag
Version 7.05 will be out in the next week or 2 at : http://blogs.sun.com/toddjobson
and then after final certification testing.. also to SunFreeware.com
and BigAdmin ..
(v.7.05 will add several RFE's.. among them LDOM info for new Sun HW,
an additional
verbosity level [-v|-V, moving the version to the help output], adding/
enhancing cpustat/cputrack
statistics capture, Oracle RAC/CRS cfg and status info, Oracle alert
logs, several error msg fixes,
and the first portion of allowing performance comparative analysis
between snapshots... etc..
Cheers and hope it saves you as much time and effort as it has me !
Todd