문서의 이전 판입니다!
root@soafdb2 /var/opt/perf$ kmtune | grep dbc kmtune is a wrapper script which exists for compatibility reasons only. The underlying command used is 'kctune'. New or modified scripts or procedures should use kctune directly. About to execute: kctune dbc_max_pct 4 4 Immed dbc_min_pct 4 4 Immed
root@soafdb2 /var/opt/perf$ swapinfo -ta Kb Kb Kb PCT START/ Kb TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME dev 16384000 0 16384000 0% 0 - 1 /dev/vg00/lvol2 dev 25378816 0 25378816 0% 0 - 1 /dev/vg00/lvol5 reserve - 10441640 -10441640 total 41762816 10441640 31321176 25% - 0 -
GlancePlus C.04.50.00 20:28:18 soafdb1 ia64 Current Avg High -------------------------------------------------------------------------------- CPU Util SSUU | 6% 7% 8% Disk Util F F | 11% 9% 11% Mem Util S SU UBB | 67% 67% 67% Networkil R R | 26% 26% 26% -------------------------------------------------------------------------------- INTERESTING PROCESS THRESHOLD OPTIONS Display processes with resource usage: Current Thresholds: CPU Utilization > (1.0 % ) Disk I/O Rate > (1.0 IOs/sec) Resident Set Size > (20 Mbytes ) Virtual Set Size > (500 Mbytes ) User name = (all ) Program name = (all ) TTY path name = (all ) Use match logic (and/or) : (or ) Sort key (name/cpu/disk/rss): (cpu ) <-- ""여기"" GlancePlus started or last reset: 08/06/2007 20:28:12
root@soafdb2 /var/opt/perf/datafiles$ date Mon Aug 6 20:37:40 KST 2007 root@soafdb2 /var/opt/perf/datafiles$ ls -al log* -rw-r--r-- 1 root root 16460528 Aug 6 20:35 logappl -rw-r--r-- 1 root root 17854008 Aug 6 20:35 logdev -rw-r--r-- 1 root root 16662640 Aug 6 20:35 logglob -rw-r--r-- 1 root root 10104 Aug 6 17:23 logindx -rw-r--r-- 1 root root 27547224 Aug 6 20:37 logproc -rw-r--r-- 1 root root 9834768 Aug 6 20:35 logtran
root@soafdb2 /var/opt/perf/datafiles$ /opt/perf/bin/mwa restart all
root@soafdb2 /var/opt/perf$ cp /var/opt/perf/reptall /var/opt/perf/rept.hpk
root@soafdb2 /var/opt/perf$ vi rept.hpk ... **................................ Global Record Identification Metrics * BLANK * RECORD_TYPE DATE <--- DATE 항목 추출 TIME <--- TIME 항목 추출 * YEAR ... **................................ Global CPU Metrics * GBL_ACTIVE_CPU GBL_CPU_TOTAL_UTIL <--- CPU 사용량 추출 * GBL_CPU_TOTAL_TIME ... **................................ Global Disk Metrics ... * GBL_DISK_HISTOGRAM GBL_DISK_UTIL_PEAK <--- DISK 사용량 추출 * GBL_DISK_TIME_PEAK ... **................................ Global Memory Metrics GBL_MEM_UTIL <--- MEMORY 사용량 추출 * GBL_MEM_USER_UTIL GBL_SWAP_SPACE_UTIL <--- SWAP SPACE 사용량 추출 * GBL_MEM_PAGE_REQUEST_RATE ...
root@soafdb2 /var/opt/perf$ cat extract.hpk if [ -e rept.out ] ; then echo "delete rept.out" rm -f rept.out fi # date format "mm/dd/yy" extract -xp -v -p -r /var/opt/perf/rept.hpk -f /var/opt/perf/rept.out -b 07/31/07 -e today echo "##################################################" echo " date : 2007-07-31 ~ today " echo " logfile : rept.out " echo "##################################################"
-gapkdzcntuyGADZNTUY Selects types of data to extract/export g = global detail a = application detail p = process detail k = process (killed records only) d = disk device detail z = logical volume detail c = configuration detail n = netif detail t = transaction detail (Not in Tru64 UNIX) u = CPU detail y = filesystem detail G = global summary (Export only) A = application summary (Export only) D = disk device summary (Export only) Z = logical volume summary (Export only) N = netif summary (Export only) T = transaction summary (Export only) (Not in Tru64 UNIX) U = CPU summary (Export only)
root@soafdb2 /var/opt/perf$ vi rept.out # vi /tmp/report.txt ======================================================== | | | Peak |Memory| | Date |Time |CPU % |Disk %| % |Swap %| 02/07/02|10:16| 38.36| 24.89| 73.89| 33.00| 02/07/02|10:20| 14.55| 2.39| 78.42| 37.00| 02/07/02|10:25| 7.74| 1.83| 79.00| 37.00| ... ========================================================
root@soafdb2 /var/opt/perf$ cat rept.hpk ... REPORT "OVPA Export !DATE !TIME Logfile: !LOGFILE !COLLECTOR !SYSTEM_ID" FORMAT ASCII HEADINGS ON SEPARATOR="|" SUMMARY=60 MISSING=0 DATA TYPE GLOBAL DATA TYPE APPLICATION DATA TYPE PROCESS DATE TIME YEAR PROC_PROC_NAME PROC_USER_NAME PROC_CPU_TOTAL_UTIL PROC_MEM_RES DATA TYPE TRANSACTION DATA TYPE DISK_SPACE DATA TYPE DISK DATA TYPE LVOLUME DATA TYPE NETIF DATA TYPE CPU DATA TYPE FILESYSTEM DATA TYPE CONFIGURATION DATA TYPE GLOBAL_SUMMARY DATA TYPE APPLICATION_SUMMARY DATA TYPE TRANSACTION_SUMMARY DATA TYPE DISK_SUMMARY DATA TYPE LVOLUME_SUMMARY DATA TYPE NETIF_SUMMARY DATA TYPE CPU_SUMMARY DATA TYPE FILESYSTEM_SUMMARY ...
root@soafdb2 /var/opt/perf$ cat rept.out | | | Process | User | | Res | Date |Time |Year| Name | Name | CPU % | Mem | 08/06/2007|17:23|2007|vxfsd |root | 5.08| 27008| 08/06/2007|17:23|2007|ora_lgwr_SOAF2 |oracle | 0.02| 43008| 08/06/2007|17:23|2007|coda |root | 0.00| 24728| 08/06/2007|17:23|2007|oracleSOAF2 |oracle | 10.06| 31292| ...