|
原帖由 rollingpig 于 2007-12-27 09:14 发表 ![]()
IOPS 看起来很高的原因在于 OS file system cache.
可以这么看:
DB Logical read
||
\/
(Not found in DB cache) ==> 反映为 db hit ratio ,跟db_cache_size相关,本例为12G
DB Physical read ==> 本例中Random IO反应时间(db file sequntial read average wait time )为2ms
||
\/
(Not found in OS cache, or use raw device , direct IO ) ==> 反映为file system cache hit ratio, 跟用作file cache的OS memory相关,本例中高达64G-18G(SGA)-4G(PGA)-2G(系统开销)-0G(看到的free memory)=40G
Storage IO
||
\/
(Not found in Storage cache) ==>反映为 Storage cache hit ratio, 跟Storage cache size有关
Disk IO
||
\/
(Not found in Disk cache)
磁道IO ==> 这个Random IO反应时间通常为大约 7ms (Average seek time + latency time)
所以,从DB看到的接近1W多 IOPS,并没有真正反映到底层Disks上,而是很大一部分被“file system cache hit ”给吃掉了。
这也是为什么很多statspack显示的Random IO反应时间(db file sequntial read average wait time ) 会很明显低于disk io 反应时间 (Average seek time + latency time).
用文件系统的话, 要另当别论了 |
|