NAUserGuide+v33.docx
《NAUserGuide+v33.docx》由会员分享,可在线阅读,更多相关《NAUserGuide+v33.docx(41页珍藏版)》请在冰豆网上搜索。
NAUserGuide+v33
NMON_AnalyserUserGuideforV3.3
Preface
NMON_AnalyserisdesignedtocomplementNMON(Nigel’sMonitor)inanalysingandreportingperformanceproblems;itproducesgraphsforvirtuallyallsectionsofoutputcreatedusingthe“spreadsheetoutput”modeofNMONaswellasdoingsomeadditionalanalysesforESS,EMCandFAStTsubsystems.Itwillalsoworkwithfilesproducedbytopasoutandwithothertoolsthatproducedatain“NMON”format.ItiswritteninVBAforExcelandwillworkwithExcel2003orlater.
NMONwasoriginallywrittenbyNigelGriffiths(nag@)andisnow(sinceAIX5.3TL09andAIX6.1TL02)partoftopas.NMON_Analyseriswritten/maintainedbyStephenAtkins(steve_atkins@).BothNigelandStephenaremembersoftheSystemsandTechnologyGroupinIBM.
SupportforNMON_Analyserisprovidedonabesteffortsbasis.PleasedirectquestionstotheUserForum(seebelow)ratherthancontacttheauthordirect.
Links:
NMON_Analyserhomepage
UserForum
NewinV3.3
1.SupportfornewfeaturesinNMON12 forPOWER6andAIXV6.1
2.ImprovedsupportfortopasoutandLinux
3.DynamicinvokationofWindowsSORTcommandforlargefiles
4.Automaticsupportforlocalesthatusecommaasadecimalseparator
5.NewfacilitytoallowmergingofNMONfilesfortrendanalysis
6.Automatedcreationofuser-definedPivotChart
7.RemovalofSVCTimesoption(replacedbynewsheetfromNMON12)
8.RemovalofDISKSORToptioninpreparationforAnalyserV4
9.ChangedREPROCoptiontoworkinallmulti-filesituations
10.Newsummaryworkbookformulti-filemode
StephenAtkins,MBCSCITP
ConsultingITSpecialist
IBMSystemsandTechnologyGroup
IBMUK
StephenAtkins/UK/IBMorsteve_atkins@
TableofContents
Preface1
NewinV3.31
TableofContents2
CollectingdatausingNMON4
Collectingdatausingtopas(xmwlm)5
UsingNMON_Analyser5
Analyseroptions6
NationalLanguageSettings7
BatchProcessingOptions7
FormattingOptions7
PivotChart8
PrintingOptions8
WebPublishingOptions8
Interpretingtheoutputsections8
Notesonthe“WeightedAverage”asusedintheAnalyser8
SYS_SUMM9
AAA10
BBBB11
BBBC11
BBBD11
BBBE11
BBBG11
BBBL11
BBBN11
BBBP11
BBBR12
BBBV12
CPUnnn12
CPU_ALL12
CPU_SUMM12
GeneralnotesforDISK,ESS,EMC,FAStandDGsheets12
EMC/PowerPathsubsystems13
FAStTsubsystems13
DGBUSY14
DGREAD14
DGSIZE14
DGWRITE14
DGXFER14
DISKBSIZE14
DISKBUSY14
DISKREAD14
DISKSERV14
DISKWAIT14
DISKWRITE14
DISKXFER15
DISK_SUMM15
DONATE15
EMCBSIZE/FAStBSIZE15
EMCBUSY/FAStBUSY15
EMCREAD/FAStREAD15
EMCWRITE/FAStWRITE15
EMCXFER/FAStXFER15
EMCSERV/FAStSERV15
ERROR15
ESSBSIZE16
ESSBUSY16
ESSREAD16
ESSWRITE16
ESSXFER16
FCREAD16
FCWRITE16
FCXFERIN16
FCXFEROUT16
FILE16
FRCA17
IOADAPT17
IP17
JFSFILE17
JFSINODE17
LAN18
LARGEPAGE18
LPAR18
MEM18
MEMUSE19
MEMNEW20
MEMPAGES4K/64K/16MB/16GB20
MEMREAL20
MEMVIRT20
NET20
NETPACKET20
NETSIZE20
NFSsheets20
PAGE21
POOLS21
PROC22
PROCAIO22
RAWCPUTOTAL,RAWLPAR23
TCPUDP23
TOP23
Interpretingthe%ProcessorbyPIDchart24
UARG25
VM25
WPARsheets25
WLMsheets25
ZZZZ25
ErrorHandling26
Commonproblems26
Knownbugs/problems(V3.3,topas_nmon)26
Howtoreportaproblem27
Excel/VBAResources/Links27
Appendix:
NotesonBatchOperation28
Sample.batfiles28
getcsv.bat28
analyser.bat28
putxls.bat28
Control.txt28
NMONAnalyserBatch.xls28
CollectingdatausingNMON
PleasemakesureyouhavethelatestversionsofbothNMONandNMON_Analyserbeforestartinganewengagement.IfyouwantautomaticnotificationofanewreleaseoftheAnalysersendanotetosteve_atkins@andI’lladdyoutomydistributionlist.NigelmaintainsasimilarlistforNMON.
YouwillneedtohaverootprivilegesinordertogetacompletesetofdataontheBBBPsheet.InordertocollectdatafortheDISKBUSYsheetsyouneedtomakesurethatiostatdatacollectionisenabled:
chdev-lsys0-aiostat=true
Forspreadsheetoutputmode(commaseparatedvalues)usethefollowingflagswheninvokingnmon:
-fspreadsheetoutputformat[note:
default-s300-c288]
Outputfileis_YYYYMMDD_HHMM.nmon
-Fsameas-fbutusersuppliedfilename
-cnumberofsnapshots
-drequestsdiskserviceandwaittimes(DISKSERVandDISKWAIT)
-iIgnoreprocessesusinglessthanthisamountofCPUwhengeneratingTOPsection–usefulforreducingdatavolumes
-gfilecontainingdiskgroupdefinitions
-lnumberofhdiskspersheet-defaultsto150,maximum250.Seenotes
-m
NMONchangestothisdirectorybeforesavingthefile-rgoesintospreadsheetfile[defaulthostname]
-sintervalbetweensnapshots
-xcapacityplanning(15minsfor1day=-fdt-s900-c96)
-tincludetopprocessesintheoutput
-Tas–tplussavescommandlineargumentsinUARGsection
-AincludedataforasyncI/O(PROCAIO)sections
-DpreventsDISKsectionsbeingproduced(usefulwhenDiskGroupsarebeingusedbecausetherearetoomanyhdiskstoprocess)
-EstopsESSsectionsbeingproduced(necessarywhenDiskGroupsarebeingusedbecausetherearetoomanyvpathstoprocess)
-JpreventsJFSsectionsbeingproduced(preventsExcelerrorswhenyouhavemorethan255filesystems)
-LincludesLARGEPAGEsection
-NincludeNFSsections
-SincludeWLMsectionswithsubclasses
-WincludeWLMsectionswithoutsubclasses
-YincludeSUMMARYsection(veryefficientalternativeto–tifPIDleveldataisnotrequired)
example:
nmon_aix51-Fasterix.nmon-rTest1-s6-c12
Notes:
1.The–f(or–F)flagmustappearfirst.
2.Thevalueofthe-lflagcontrolsthenumberofhdiskspersheetontheDISKsheetsandperlineontheBBBDsheet.Therearetwofactorstoconsiderwhenchoosingthisvalue.Excelhasalimitof256columnspersheet;however,bothNMONandNMON_Analyserusesomecolumns,sotheupperlimitisreally250.ThesecondfactoristhatExcelVBAhasanupperlimitof2048bytesforinputlinelength.ThisparticularlyaffectsusersofEMCsystemsthatuselonghdisknames(e.g.hdiskpower123).Thedefaultof150issafeforsuchsystems.Otherusersmaysetthevalueto250inordertoreducethenumberofoutputsheets.
3.Considerthevalueofthe-sflagverycarefully.Theshortertheintervalbetweensnapshots,themorevariablethevaluesforeachresourcewillbe.Ifyouuseanintervalof1second,don’tbesurprisedtoseemanyofyourdiskshitting100%busyforshortperiods.Fornormalmonitoring,10-minuteintervals(-c600)provideagoodbalance.
4.ThegraphsproducedbyNMON_Analyserlookbestwhenthenumberofsnapshots(specifiedbythe-cflag)is300orless.
5.TheTOPsection(producedbyspecifyingthe-tflag)cangeneratelargeamountsofoutputandthesizeoftheoutputcangrowexponentiallyifalargevalueisspecifiedforthe-cflag.IfyouwanttheTOPsectionthenspecifynomorethan250snapshots-ideallyless.
Collectingdatausingtopas(xmwlm)
YouneedAIXV5.3TL5Servicepack4withAPARIY87993orlater.Notethatonlytheoutputusingthe–aflagcanbeanalysed.Inparticular,cross-partitionstatisticscannotbeanalysed;ifyouwishtogetareportfortheentiremachine,collectdatafromeachLPARseparatelyandthenuseNMON_Consolidatortomergethedata.Commandslikethefollowingarerequiredtocollectthedata.
topasout-a/etc/perf/daily/xmwlm.yymmdd
:
cp/etc/perf/daily/xmwlm.yymmdd_01hostname.ddmmyy.topasout.csv
UsingNMON_Analyser
∙FTPtheinputfiletoyourPC–ideallyusingtheASCIorTEXToptionstomakesurethatlinesareterminatedwiththeCRLFcharactersrequiredbyWindowsapplications.
∙OpentheNMON_Analyserspreadsheetandspecifytheoptionsyouwantonthe“Analyser”and“Settings”sheets(seebelow).Savethespreadsheetifyouwanttomaketheseoptionsyourpersonaldefaults.
ŸClickonthe"Analysenmondata"buttonandfind/selectthe.nmonfile(s)tobeprocessed.Youmayselectseveralfilesinthesamedirectory.Ifyouwishtoprocessseveralfilesindifferentdirectoriesyoumaywishtoconsiderusingthe“FILELIST”optiondescribedbelow.
ŸYoumayseethemessageSORTcommandfailedfor“filename”ifthefilehas>65Klinesandthefilename(ordirectoryname)containsblanksorspecialcharacters.Eitherrenamethefile/directoryorjustpre-sortthefilebeforeusingtheAnalyser.
Analyseroptions
GRAPHSThefirstoptioniseitherALLorLIST.IfthevalueisLISTthenonlythosesheetswhichappearintheLISTontheSettingssheetwillhavegraphsdrawnforthem.Thisoptionisparticularlyusefulifthegraphsaretobeprinted/publishedortoreducetheamountofmemory/fonts/diskspacerequiredwhenanalysingfilesfromlargesystems.
ThesecondiseitherCHARTS,PICTURES,PRINTorWEB.Themeaningoftheseareasfollows:
∙CHARTSproduceExcelchartsin-placeontheselectedsheets
∙PICTURESgraphswillbeproducedonaseparate“Charts”sheetsaspictures.Selectingthisoptioncanreducethesizeoftheoutputfilebyupto90%.
∙PRINTimpliesPICTURES.Pictureswillbeprintedtothedesignatedprinter(see“PrintingOptions”below)
∙WEBimpliesPICTURES.Automatedwebpublishing(see“WebPublishing”below)
INTERVALSspecifiesthefirstandlasttimeintervaltobeprocessed.Intervalsoutsidethisrangewillbediscardedafterparsing.Notethatthesearenumbersbetween1-99999andarenottimevalues.Settingavalueof2forthefirs