引用:
原帖由 林肯 于 2006-3-26 21:46 发表
HP VA7400是1G后端,VA7410是2G后端,你应该都弄过,你实施或者看过他们实施发现他们性能差多大呢?
一个数据库常用数据库block IO是8k byte,如果这个世界上有没有这么个单应用能跑到cache miss的5w个IOPS(也 ...
林肯:
你的回复貌似有道理,但经不起推敲.数据库的整体优化涉及到
◆ 应用程序设计的优化
◆ 指定类型SQL语句的优化
◆ 内存使用的优化
◆ 数据存储、物理存储和逻辑存储的优化
◆ 网络通信量的优化.
我们在这只谈第四点------I/O优化的目的是解决I/O瓶颈问题,I/O的优化必须在内存优化之后进行,可以通过减少磁盘争用、有效分配数据块空间和避免动态空间管理三个方面来优化I/O。具体又涉及到:(1)存放重做日志文件(2)存放档案日志文件(3)存放数据代码文件(4)减少非Oracle文件的I/O(5)优化DBWR进程争用(6)表数据存放策 略(7)指定表空间和表大小(8)清除其它的磁盘I/O .这些都和磁盘的性能密切相关,怎么能够单单凭一个cache的命中率随意得得出数据库性能和后端磁盘关联不大.我们再来仔细分析林肯拿来支持自己论点的cache hit 和cache miss.
真实的计算公式应该是(你可以去问问你们ocm的同事)
hit ratio =
1 - ( physical reads - (physical reads direct + physical reads direct (lob)) )
--------------------------------------------------------------------------
( db block gets + consistent gets - (physical reads direct + physical reads direct (lob))
Miss ratio = 100% - Hit Ratio (expressed as a percentage)
而不是林总假设的:
hit ratio = 1 - ( physical reads )
-----------------------------------
( consistent gets + db block gets )
physical reads direct:Number of reads directly from disk, bypassing the buffer cache. For example, in high bandwidth, data-intensive operations such as parallel query, reads of disk blocks bypass the buffer cache to maximize transfer rates and to prevent the premature aging of shared data blocks resident in the buffer cache.
明眼人一看就会知道parallel query这样的访问,对后端磁盘带宽的要求了.