资源描述:
《solaris 5.x系统日常巡检》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、Solaris5.X系统日常管理CPU占用情况和IO等待情况1、命令:sar-u15(所有CPU均值)结果:11:32:17%usr%sys%wio%idle11:32:180109911:32:191209711:32:200109911:32:211109811:32:2211098Average11098说明:Average为平均值,%idle为CPU空闲百分比,一般小于25%则可判断为CPU占用过高;%wio为IO等待百分比,大于30%就说明IO比较高了2、命令:mpstat(每个CPU占用情况)结果:CPUminfmjfxcalintrithrcswicswmigrsmtxsrwsy
2、sclusrsyswtidl0978450373300238376017165061048042说明:CPU为cpu号,是单cpu就为0,idl为CPU空闲百分比,一般该值小于30左右及说明CPU负荷过高;wt为IO等待数,正常情况都为0,有数代表较繁忙;sys为系统时间使用率;usr为用户时间使用率;查看僵死进程命令:ps-elf-os-oargs结果:SCOMMANDTschedS/sbin/initSpageoutSfsflushS/usr/lib/sysevent/syseventd……说明:Z为僵死进程,如果没有为Z的就说明目前没有将死进程内存占用情况命令:/usr/sbin/prt
3、conf
4、grep"Memorysize:"&&vmstat或vmstat结果:$/usr/sbin/prtconf
5、grep"Memorysize:"&&vmstatMemorysize:512Megabyteskthrmemorypagediskfaultscpurbwswapfreeremfpipofrdesrcdcdf0s0insycsussyid00087845641247228108550002090003217363151693$vmstatkthrmemorypagediskfaultscpurbwswapfreeremfpipofrdesrcdcdf0s0insycsussy
6、id00087872841235227104530001980003217063051594说明:free的值为当前物理内存空闲值,与物理内存总数比,如小于20%就说明内存占用过高内存配置命令:/usr/sbin/prtdiag–v结果:Systemclockfrequency:1012MHzMemorysize:131072Megabytes====================================CPUs====================================CPUCPURunL2$CPUCPULSBChipIDMHzMBImpl.Mask----------
7、-----------------------------------------------------0000,1,2,3,4,5,6,724005.071450018,9,10,11,12,13,14,1524005.0714500216,17,18,19,20,21,22,2324005.0714500324,25,26,27,28,29,30,3124005.0714501032,33,34,35,36,37,38,3924005.0714501140,41,42,43,44,45,46,4724005.0714501248,49,50,51,52,53,54,5524005.071
8、4501356,57,58,59,60,61,62,6324005.07145============================MemoryConfiguration============================MemoryAvailableMemoryDIMM#ofMirrorInterleaveLSBGroupSizeStatusSizeDIMMsModeFactor--------------------------------------------------------------00A32768MBokay2048MB16no8-way00B32768MBokay
9、2048MB16no8-way01A32768MBokay2048MB16no8-way01B32768MBokay2048MB16no8-way=========================IODevices=========================IOLane/FrqLSBTypeLPIDRvID,DvID,VnIDBDFStateAct,MaxNameModel---------