????7. ?????Щ???????????????????
????1?????????????????????г???“????????”???????
?????????????????????????????????????????????“777”?????????????????
????2??????ú??LoadRunner?п????????????????б????
???????????????????????С??????????м??????????????磺?????????г???????CPU???????????0?????????????п??????仯????п????????????????????????????????1??????????????????????μ????????
????3?????????????LoadRunner??????д??????????????????????
????????????????CPU???????????????????????????????÷?????????LoadRunner?????????μ???????????????????????????????????????????
????4???????LoadRunner??????????????????μ???????????
???????п????????????????????????д?rstatd??????????????????′???Σ????????“rpc.rstatd”????????????“rpcinfo-p”????????????????????????rstatd????????
??????????lr??????
??????LR????add measurement????дlinux??????IP??????????unix/linux?????????????cpu???mem???disk??network????????????????
????CPU: ???????????cpu????
????average load :??????1????????????? ????????1????????????????????????
?????????????????CPU???????????????????????CPU; ????????????CPU??????????????5??????????????????????.???????vmstat?????????r?е????runable threads???????е?????
????cpu utilization: cpu????????Percent of time that the CPU is utilized.
????System mode cpu utilization + User mode cpu utilization>80%?? us>sys 2:1
??????棺????????
????paging rate?? ????????????????棬????????????д????????????????????????????????CPU????????????
??????????????????????????????????檔???????????????????????????????????????????????
???????????vmstat?ó???pi??po??????
????pi
????????????潻??????????????
????po
?????????д????潻???????????
????CPU????vhand??swapper???????????????(CPU time to vhand and swapper)
???????????????????????????CPU????????????CPU??????????????????????????????????????vhand??swapper???????????????????CPU?????????????????????????????????????檔
????????????????????vhand??????????
??????????????????С??LOTSFREE???????п????????????pageout?????????????????????????
????lotsfree: based on physical memory (64 MB -> 863) upper bound where paging starts/stops
????desfree: based on physical memory (64 MB -> 215)lower bound where paging starts/stops
????minfree: based on physical memory (64 MB -> 53) threshold where deactivation starts
??????????????????????????????????????????????????????????????????????? CPU ???????????Щ?????λ???????????????衣CPU ???????????????????????
??????滻?????????????????????????????????????????л????
???????裨?????????????п??????????????????????????????
?????? CPU ????????????????????????Щ?????е?????????????????У??????????????????洢?????????????????????????????????????????
????Swap-in rate:????????????????
????Swap-out rate: ??????潻????????????
?????????????swap-in/out =0
????Disk traffic:disk??????Rate of disk transfers.???iostat –d  3  n ?????tps????iostat –x  3 ?е? r/s+w/s
????Tps?????????????????????????????????δ?????????????????? I/O ????
????????100-150???
????collision rate=0
????Network collision rate = Output collision counts / Output packets
???????????????10%????????縺????????????ò?????????????
????Input Packet Error Rate = Ierrs / Ipkts.
???????input error rate???ver 0.25 percent????????????????????hub/switch ??????????????????????????
????CPU: topas ???????%user+%sys >80%?? ??cpu????????
???????10??????cpu??????
????ps aux | sort –rn +2 | head –10
????MEM: topas
????Real MeM: 8192
????Paging space: 9728
????%used 18.1
????%free 81.8
???????%used>70%??????????
???????10??????????????
????ps aux | sort –rn +3 | head –10
?????????????????????????????????Щ?????????
????????????(high pageout rate):HP-UX???????????????????????????£??????е?????????????????????y?????????С???в??????????????????Щ?????????????д???????????????????????????????????????????
???????????????(process deactivation activity):?????????????????С??MINFREE???????????????????????????any deactivation activity represents a condition in which normal paging is inadequate to handle the memory demands.
??????????????????С???????????????????(very small free memory and large active virtual memory)
?????????????д????????????(high disk activity on swap devices)
?????????????CPU??????(high global system CPU utilization):
????????????н?????У???CPU????????????(large run queue with idle CPU)
??????治??????(out of memory errors)
????CPU????vhand??swapper???????????????(CPU time to vhand and swapper)
???????????????????????????CPU????????????CPU??????????????????????????????????????vhand??swapper???????????????????CPU?????????????????????????????????????檔
????IO
????Iostat??????IO????
???????%iowait>25%?? %tm_act%>70%?? ??io?????
????Topas
????Busy%==%tm_act%
????%tm_act????%busy > 80
????%iowait????? CPU ???????????δ??????? I/O ??????????????
????NETWORK:
????Topas: kBps??????????
??????????????????10Mbps=1250kBps
?????????????????????С??50%