oracle中WAIT TIME 和 CPU TIME
(原創)
DB time =DB wait time +DB CPU time
DB Time
Tuning is not just about reducing waits. Its goal is to improve end-user response time and/or minimize the average resources used by each individual request. Sometimes these
go together, and in other cases there is a trade-off (for example, parallel query). In general,we can say that tuning is the avoidance of consuming or holding resources in a wasteful manner.
Any request to the database is composed of two distinct segments: a wait time (DB waittime) and a service time (DB CPU time). The wait time is the sum of all the waits for various resources. The CPU time is the sum of the time that is spent actually working on the request or waiting on the OS run queue. These times are not necessarily composed of one wait and one block of CPU time.
Tuning consists of reducing or eliminating the wait time and reducing the CPU time.
This definition applies to any application type: online transaction processing (OLTP) or
data warehouse (DW).
Note: A very busy system shows longer DB CPU time due to waits on the run queue.
An overloaded system causes processes
DB time =DB wait time +DB CPU time
DB Time
Tuning is not just about reducing waits. Its goal is to improve end-user response time and/or minimize the average resources used by each individual request. Sometimes these
go together, and in other cases there is a trade-off (for example, parallel query). In general,we can say that tuning is the avoidance of consuming or holding resources in a wasteful manner.
Any request to the database is composed of two distinct segments: a wait time (DB waittime) and a service time (DB CPU time). The wait time is the sum of all the waits for various resources. The CPU time is the sum of the time that is spent actually working on the request or waiting on the OS run queue. These times are not necessarily composed of one wait and one block of CPU time.
Tuning consists of reducing or eliminating the wait time and reducing the CPU time.
This definition applies to any application type: online transaction processing (OLTP) or
data warehouse (DW).
Note: A very busy system shows longer DB CPU time due to waits on the run queue.
An overloaded system causes processes
以上是ORACLE 文件上給出的概念
以前經常在AWRRPT中看到CPU TIME 排在TOP5 EVENT的第一位,一直都不太清楚準確意思。這裡給出了,CPU TIME就是實際執行或者等待作業系統執行佇列所需要的時間,這裡作業系統執行佇列應該就是等待CPU時間片佇列吧。但是還不準確,大概就可以理解是做實際操作需要的時間(比如進行SQL分析,執行,取回)。。
然後說了最佳化的目的,就是減少等待時間,比如減少ENQ鎖等待,減少執行時間,比如減少邏輯讀啊,遊標共享啊。當然在OLTP和OLAP的最佳化不一樣,OLAP一般瓶頸在大量的讀,這個時候使用繫結變數視乎效果不好。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7728585/viewspace-680729/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- session檢視中wait_timeSessionAI
- 調整time_waitAI
- TCP漫談之keepalive和time_waitTCPAI
- TCP連線的TIME_WAIT和CLOSE_WAIT 狀態解說TCPAI
- 大量time-wait的處理方法AI
- socket close和shutdown的區別,TIME_WAIT和CLOSE_WAIT,SO_REUSEADDRAI
- Oracle Cluster Time ManagementOracle
- TCP TIME_WAIT狀態最佳化TCPAI
- [20230317]關於TIME_WAIT問題.txtAI
- oracle time_zone(zt)Oracle
- Python中time, strftime和strptimePython
- 【YashanDB知識庫】YAS-02024 lock wait timeout, wait time 0 millisecondsAI
- Oracle Respones-Time Analysis ReportsOracle
- [20200304]測試網路狀態TIME_WAIT.txtAI
- [20200310]測試網路狀態TIME_WAIT(windows).txtAIWindows
- time time_t tm用法
- Oracle的時區問題Time ZoneOracle
- Flink Time和Watermark的理解
- Go Time包中的NewTimer()和After()函式Go函式
- DREAM TIME
- 20 compliments that needs to be said to my girl from time to timeAI
- 解決Tengine健康檢查引起的TIME_WAIT堆積問題AI
- Aheadof Time Compilation(AOT) vs (JIT)Just In Time compilation approachAPP
- python parse timePython
- Time Series DatabasesDatabase
- jenkins trigger by timeJenkins
- 為什麼tcp的TIME_WAIT狀態要維持2MSLTCPAI
- 終於搞懂了伺服器為啥產生大量的TIME_WAIT!伺服器AI
- 【PARAMETER】Oracle引數:MAX_IDLE_BLOCKER_TIME 解釋OracleBloC
- python時間模組time和datetimePython
- 【PROFILE】PASSWORD_REUSE_TIME和PASSWORD_REUSE_MAX引數在Oracle不同版本中的差別Oracle
- GORM 自定義time.time日期時間輸出格式GoORM
- python中time.mktime()的轉換Python
- 雲伺服器資料庫出現大量TIME_WAIT解決辦法伺服器資料庫AI
- [LeetCode] Employee Free TimeLeetCode
- HTML <time> 標籤HTML
- golang的time使用Golang
- set_time_limitMIT
- Go package time 用法GoPackage