Oracle IO鎬ц兘娴嬭瘯

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle IO鎬ц兘娴嬭瘯相关的知识,希望对你有一定的参考价值。

鏍囩锛?a href='http://www.mamicode.com/so/1/%e4%bb%8b%e7%bb%8d' title='浠嬬粛'>浠嬬粛   鑺傜偣   storage   ase   瀹炰緥   宸ュ叿浠嬬粛   鑴氭湰   oracle   media   

 

Oracle IO鎬ц兘娴嬭瘯

鍓嶈█

鏈€杩戝彂鐢熶簡杩佺Щ娴嬭瘯搴撳悗锛堝崟鑺傜偣杩佺ЩRAC锛夊洜涓篒O鎬ц兘闂瀵艰嚧杩佺Щ鍚庢€ц兘闈炲父宸殑闂銆?/p>

鍘熸湰鎯冲湪鍒涘缓ASM纾佺洏缁勪箣鍓嶇敤Orion鍋氭祴璇曪紝浣嗘槸蹇樹簡鍋氬氨娌″仛缁撴灉鍑轰簡杩欐。瀛愪簨鎯呫€?/p>

鍚庤竟鏌ヤ簡璧勬枡鍙戠幇寤哄簱涔嬪悗锛孫racle涔熷彲浠ラ€氳繃calibrate_io鏉ュ仛IOPS鍜屽悶鍚愰噺鐨勬祴璇曘€?/p>

浠ユ垜涓婅竟璇寸殑杩佺Щ娴嬭瘯搴撲负渚嬶紝寰呰縼绉荤殑鍗曡妭鐐瑰簱涓簊ingle-DB锛岃縼绉诲悗鐨勪负RAC-DB1锛圛O涓ラ噸鏈夐棶棰橈級锛岀敱浜庡瓨鍌ㄥ嚭闂锛屽悗缁洿鎹㈠瓨鍌ㄥ湪娴嬭瘯锛屼负RAC-DB2銆?/p>

 

宸ュ叿浠嬬粛

  1. 娴嬭瘯鎵€鐢ㄧ殑鏁版嵁搴撶敤鎴峰繀椤诲叿鏈塻ysdba鏉冮檺銆?/li>
  2. Timed_statistics鍙傛暟蹇呴』璁句负true锛屽紓姝O蹇呴』鎵撳紑銆傦紙ASM榛樿鎵撳紑鐨勶紝鏈湴瀛樺偍榛樿鍏抽棴锛夈€?/li>
  3. 鍙湁涓€涓狪/O鏍″噯鍚屾椂鍦ㄤ竴涓暟鎹簱瀹炰緥杩涜銆?/li>

PS锛氬彲閫氳繃濡備笅鏂瑰紡纭畾鏄惁寮€鍚紓姝O锛?/p>

SELECT d.name,
       i.asynch_io
FROM   v$datafile d,
       v$iostat_file i
WHERE  d.file# = i.file_no
AND    i.filetype_name  = 鈥?/span>Data File鈥?/span>;

濡傛灉寮傛IO鏄叧闂殑锛屽彲浠ラ€氳繃浠ヤ笅鏂瑰紡寮€鍚細

ALTER SYSTEM SET filesystemio_options=setall SCOPE=SPFILE;
SHUTDOWN IMMEDIATE;
STARTUP锛?/span>

 

娴嬭瘯鑴氭湰

SET SERVEROUTPUT ON
DECLARE
  l_latency    PLS_INTEGER;
  l_iops    PLS_INTEGER;
  l_mbps    PLS_INTEGER;
BEGIN
        DBMS_RESOURCE_MANAGER.calibrate_io (num_physical_disks => 1,
            max_latency            => 20,
            max_iops            => l_iops,
            max_mbps            => l_mbps,
            actual_latency        => l_latency);
   DBMS_OUTPUT.put_line(鈥?/span>Max IOPS = 鈥?/span> || l_iops);
   DBMS_OUTPUT.put_line(鈥?/span>Max MBPS = 鈥?/span> || l_mbps);
   DBMS_OUTPUT.put_line(鈥?/span>Latency  = 鈥?/span> || l_latency);
 END;
/

 

缁撴灉杈撳嚭鏍蜂緥

SYS@test1> SET SERVEROUTPUT ON
SYS@test1> DECLARE
  2    l_latency        PLS_INTEGER;
  3    l_iops   PLS_INTEGER;
  4    l_mbps   PLS_INTEGER;
  5  BEGIN
  6             DBMS_RESOURCE_MANAGER.calibrate_io (num_physical_disks => 1,
  7                     max_latency                     => 20,
  8                     max_iops                        => l_iops,
  9                     max_mbps                        => l_mbps,
 10                     actual_latency          => l_latency);
 11     DBMS_OUTPUT.put_line(鈥?/span>Max IOPS = 鈥?/span> || l_iops);
 12     DBMS_OUTPUT.put_line(鈥?/span>Max MBPS = 鈥?/span> || l_mbps);
 13     DBMS_OUTPUT.put_line(鈥?/span>Latency  = 鈥?/span> || l_latency);
 14   END;
 15  /
Max IOPS = 161
Max MBPS = 8
Latency  = 24

PL/SQL procedure successfully completed.

SYS@test1> /
Max IOPS = 107
Max MBPS = 8
Latency  = 18

PL/SQL procedure successfully completed.


SYS@test1> /
Max IOPS = 152
Max MBPS = 8
Latency  = 25

PL/SQL procedure successfully completed.

 

缁熻娴嬭瘯缁撴灉

娴嬭瘯缁撴灉鍦ㄤ笂杈圭粰鍑轰竴缁勶紝灏变笉鍏ㄩ儴鏀惧湪杩欓噷浜嗐€?/p>

缁撴灉浠ヤ笅杈硅〃鏍肩粺璁″彲浠ュ仛瀵规瘮銆?/p>

 

鎸囨爣

single-DB

RAC-DB1

RAC-DB2

鏈€澶OPS 

518

445 469 161 107 152 13290 12587 12937 12811

鏈€澶у悶鍚愰噺

92

96 92 8 8 8 106 108 107 107

骞冲潎寤惰繜

5

6 5 24 18 25 18 18 19 20

 

鍙傝€?/h2>

https://rdcqii.hundsun.com/portal/article/578.html

https://blog.csdn.net/Hehuyi_In/article/details/89469534

https://oracle-base.com/articles/misc/measuring-storage-performance-for-oracle-systems#slob

 

以上是关于Oracle IO鎬ц兘娴嬭瘯的主要内容,如果未能解决你的问题,请参考以下文章

iOS鎬ц兘娴嬭瘯瀹炴垬-instruments

鎬ц兘娴嬭瘯涔嬫柊涓€浠f湇鍔″櫒鎬ц兘娴嬭瘯宸ュ叿Gatling

鎬ц兘娴嬭瘯鐢ㄤ緥璁捐

涓嬪懆涓夛綔鏈嶅姟绔郴缁熸€ц兘娴嬭瘯

銆愮洿鎾€戞暣杞﹂┚涔樻€ц兘娴嬭瘯璇勪环瑙e喅鏂规