TPC-Cãã¼ã¹ã®ãã³ããã¼ã¯ã以ä¸ã®æ¡ä»¶ã®ä¸、4åå®æ½ãã
ã¯ã©ã¤ã¢ã³ãPCãã100ã»ãã·ã§ã³ã§swingbenchãå®è¡
A: HDDã«ãã³ããã¼ã¯ç¨ãã¼ã¿ãæ ¼ç´ã、éåæI/Oããªã(Oracleã®ããã©ã«ãå¤)
B: SSDã«ãã³ããã¼ã¯ç¨ãã¼ã¿ãæ ¼ç´ã、éåæI/Oããªã(Oracleã®ããã©ã«ãå¤)
C: HDDã«ãã³ããã¼ã¯ç¨ãã¼ã¿ãæ ¼ç´ã、éåæI/Oããªã³
D: SSDã«ãã³ããã¼ã¯ç¨ãã¼ã¿ãæ ¼ç´ã、éåæI/Oããªã³
ãã®éã®、swingbenchã®çµæã示ãã¦ã¿ã
HDDã使ç¨ãããã³ããã¼ã¯ã§ã¯、TPMã®çµæãé常ã«ä¸å®å®ã§ãããã¨ãä¸ç®çç¶(A、C)。SSDã使ç¨ãããã³ããã¼ã¯ã§ã¯、ãããªãã«å®å®ãã¦ãããã®ã®(B、D)、éåæI/Oããªã³ã«ãããã³ããã¼ã¯ã群ãæãã¦ã¹ã³ã¢ãé«ã、å®å®æ§ãé«ããã¨ãããã(D)。
ãã®、ç§å¯ã¯ä½ãªã®ã?
ãã®ãã³ããã¼ã¯ã®éã«åå¾ãã¦ãããASH viewerã®çµæãåããã¦è¦ã¦ã¿ããã¨æã。
ã¾ã、éåæI/Oã使ç¨ããªããã³ããã¼ã¯(A、B)ã§ã¯、æç¶çã«commit(詳細ã¯log file sync)ã®å¾ æ©ãçºçãã¦ãã。ã¾ã、åæ§ã«configration(詳細ã¯free buffer waitsã¨log file switch(checkpoint incomplete))ã§å¾ æ©ãã¦ãã。log file syncã¯REDOã¸ã®è² è·ãé«ã¾ã£ã¦ãã。ã¤ã¾ã、REDOã¸æ¸ãåºãã¦ããLGWRãã¹ã ã¼ãºã«æ¸ãè¾¼ãã¦ããªããã¨ã示ãã¦ã。ä¸è¬çã«ã¯REDOãã°ãé ç½®ããã¦ãããã£ã¹ã¯ãé ãå ´åã、é »ç¹ãªã³ãããã«ããshort I/Oãå¼ãéã«ãªããã¨ãå¤ã。
ã¾ã、free buffer waitsã¯、å¿ è¦ãªãããã¯ãBuffer Cacheä¸ããæ¤ç´¢ããã、åå¨ããªãå ´å、ãã£ã¹ã¯ããèªã¿è¾¼ãã§Buffer Cacheä¸ã«ä¹ããå¿ è¦ãã§ã¦ãã。ãã®é、Bufferä¸ããã¼ãã£ãããã¯ã§ä¸æ¯ã ã£ãå ´å、DBWRã«ä¸å、ãã£ã¹ã¯ã«æ¸ãè¾¼ãã§Buffer Cacheããã¬ã¤ã«ãã¦ãã。ã¨ãé¡ãããå¿ è¦ãåºã¦ãã。ãããå¾ ã£ã¦ããã®ãfree buffer waitsã§、log file switch(checkpoint incomplete)ã¯èªãã§åã®å¦ãã ã、REDOãã°ãã¹ã¤ãããããã¨ããã、次ã®REDOãã°ã®ãã§ãã¯ãã¤ã³ããå®äºãã¦ããªãã®ã§å¾ æ©ãã¦ããã¨ãããã¨。両è ã«å ±éãããã¨ã¯、free buffer waitsãlog file switch(checkpoint incomplete)ãDBWRãã¹ã ã¼ãºãªI/Oãã§ããã«、è©°ã¾ã£ã¦ããããã«å¼ãèµ·ãããã¦ããç¾è±¡ã ã¨ãããã¨。
ã¡ãã£ã¨æ´çãã¦ã¿ãã¨、
1. ã©ãã、LGWRã¯ã¹ã ã¼ãºã«I/Oãè¡ãã¦ããªã(log file syncã§å¾ æ©ä¸)
2. ã©ãã、DBWRãã¹ã ã¼ãºã«I/Oãè¡ãã¦ããªã(free buffer waitsã¨log file switch(checkpoint incomplete)ã§å¾ æ©ä¸)
ã¨ãããã¨ã§、æ¸ãè¾¼ã¿è¦æ±ãã¹ã ã¼ãºã«å¦çããã(å¯è½æ§ã®ãã)filesystemã¸ã®éåæI/Oãæå¹ã«ãã¦ã¿ããã¨ã«ãã。(Oracleã®ããã©ã«ãã§ã¯ä½¿ç¨ãããªã)
SQL> alter system set filesytemio_options=asynch scope=spfile;
çµæã¯、ä¸ç®çç¶(C、D)、commit(log file sync)ã¯ç¡ããªã£ã。ããã«ãã、TPCãã³ããã¼ã¯ã®ã¹ã³ã¢ãé«ããªã£ã¦ãã。
ããã、HDDã使ç¨ãããã³ããã¼ã¯ã§ã¯、LGWRãã¹ã ã¼ãºã«I/Oã§ããããã«ãªã£ãå、èªåèªèº«ã®I/Oè¦æ±ãé«ã¾ã(User I/O(db file sequential read))æ´ã«、HDDã®éçå¤ãè¶ ããI/Oã¯å½ç¶ã§ããªãã®ã§、log switchã®çºçã¨å ±ã«、DBWRã®I/Oã飽åç¶æ ã«ãªã、TPCã®ãã³ããã¼ã¯ãä¸éç·ã示ãã¦ãã。
ä¸æ¹、SSDã使ç¨ãããã³ããã¼ã¯(D)ã§ã¯、I/Oã«ä½è£ããããã、LGWRã¨DBWRã®I/Oã¹ã«ã¼ãããåä¸ã、ãã®ã¾ã¾TPCã®ã¹ã³ã¢åä¸ã«å¯ä¸ãã¦ãã。
ããã、ãã®ãã³ããã¼ã¯ãèµ°ãããããã«ãã¦ãã、OS kernelãI/Oé¢é£ã®ã¨ã©ã¼ãåºåããããã«ãªã£ã¦ãã。åå ã¯SSDã¸ã®éåæI/Oã®ããã ã。。。æ´ã«ã¯、filesystemå ¨ä½ãç ´å£ããã¦ãã¾ã£ã¦ãã。。。
確ãã«ããã©ã¼ãã³ã¹åä¸ãé©ãã»ã©ã ã、äºåº¦ã¨èµ·åããªãããã§ã¯。。。
ã¨ãããã¨ã§、ããå°ã詳細ã«èª¿ã¹ããã¨ã«ãã。
ã¯ã©ã¤ã¢ã³ãPCãã100ã»ãã·ã§ã³ã§swingbenchãå®è¡
A: HDDã«ãã³ããã¼ã¯ç¨ãã¼ã¿ãæ ¼ç´ã、éåæI/Oããªã(Oracleã®ããã©ã«ãå¤)
B: SSDã«ãã³ããã¼ã¯ç¨ãã¼ã¿ãæ ¼ç´ã、éåæI/Oããªã(Oracleã®ããã©ã«ãå¤)
C: HDDã«ãã³ããã¼ã¯ç¨ãã¼ã¿ãæ ¼ç´ã、éåæI/Oããªã³
D: SSDã«ãã³ããã¼ã¯ç¨ãã¼ã¿ãæ ¼ç´ã、éåæI/Oããªã³
ãã®éã®、swingbenchã®çµæã示ãã¦ã¿ã
HDDã使ç¨ãããã³ããã¼ã¯ã§ã¯、TPMã®çµæãé常ã«ä¸å®å®ã§ãããã¨ãä¸ç®çç¶(A、C)。SSDã使ç¨ãããã³ããã¼ã¯ã§ã¯、ãããªãã«å®å®ãã¦ãããã®ã®(B、D)、éåæI/Oããªã³ã«ãããã³ããã¼ã¯ã群ãæãã¦ã¹ã³ã¢ãé«ã、å®å®æ§ãé«ããã¨ãããã(D)。
ãã®、ç§å¯ã¯ä½ãªã®ã?
ãã®ãã³ããã¼ã¯ã®éã«åå¾ãã¦ãããASH viewerã®çµæãåããã¦è¦ã¦ã¿ããã¨æã。
ã¾ã、éåæI/Oã使ç¨ããªããã³ããã¼ã¯(A、B)ã§ã¯、æç¶çã«commit(詳細ã¯log file sync)ã®å¾ æ©ãçºçãã¦ãã。ã¾ã、åæ§ã«configration(詳細ã¯free buffer waitsã¨log file switch(checkpoint incomplete))ã§å¾ æ©ãã¦ãã。log file syncã¯REDOã¸ã®è² è·ãé«ã¾ã£ã¦ãã。ã¤ã¾ã、REDOã¸æ¸ãåºãã¦ããLGWRãã¹ã ã¼ãºã«æ¸ãè¾¼ãã¦ããªããã¨ã示ãã¦ã。ä¸è¬çã«ã¯REDOãã°ãé ç½®ããã¦ãããã£ã¹ã¯ãé ãå ´åã、é »ç¹ãªã³ãããã«ããshort I/Oãå¼ãéã«ãªããã¨ãå¤ã。
ã¾ã、free buffer waitsã¯、å¿ è¦ãªãããã¯ãBuffer Cacheä¸ããæ¤ç´¢ããã、åå¨ããªãå ´å、ãã£ã¹ã¯ããèªã¿è¾¼ãã§Buffer Cacheä¸ã«ä¹ããå¿ è¦ãã§ã¦ãã。ãã®é、Bufferä¸ããã¼ãã£ãããã¯ã§ä¸æ¯ã ã£ãå ´å、DBWRã«ä¸å、ãã£ã¹ã¯ã«æ¸ãè¾¼ãã§Buffer Cacheããã¬ã¤ã«ãã¦ãã。ã¨ãé¡ãããå¿ è¦ãåºã¦ãã。ãããå¾ ã£ã¦ããã®ãfree buffer waitsã§、log file switch(checkpoint incomplete)ã¯èªãã§åã®å¦ãã ã、REDOãã°ãã¹ã¤ãããããã¨ããã、次ã®REDOãã°ã®ãã§ãã¯ãã¤ã³ããå®äºãã¦ããªãã®ã§å¾ æ©ãã¦ããã¨ãããã¨。両è ã«å ±éãããã¨ã¯、free buffer waitsãlog file switch(checkpoint incomplete)ãDBWRãã¹ã ã¼ãºãªI/Oãã§ããã«、è©°ã¾ã£ã¦ããããã«å¼ãèµ·ãããã¦ããç¾è±¡ã ã¨ãããã¨。
ã¡ãã£ã¨æ´çãã¦ã¿ãã¨、
1. ã©ãã、LGWRã¯ã¹ã ã¼ãºã«I/Oãè¡ãã¦ããªã(log file syncã§å¾ æ©ä¸)
2. ã©ãã、DBWRãã¹ã ã¼ãºã«I/Oãè¡ãã¦ããªã(free buffer waitsã¨log file switch(checkpoint incomplete)ã§å¾ æ©ä¸)
ã¨ãããã¨ã§、æ¸ãè¾¼ã¿è¦æ±ãã¹ã ã¼ãºã«å¦çããã(å¯è½æ§ã®ãã)filesystemã¸ã®éåæI/Oãæå¹ã«ãã¦ã¿ããã¨ã«ãã。(Oracleã®ããã©ã«ãã§ã¯ä½¿ç¨ãããªã)
SQL> alter system set filesytemio_options=asynch scope=spfile;
çµæã¯、ä¸ç®çç¶(C、D)、commit(log file sync)ã¯ç¡ããªã£ã。ããã«ãã、TPCãã³ããã¼ã¯ã®ã¹ã³ã¢ãé«ããªã£ã¦ãã。
ããã、HDDã使ç¨ãããã³ããã¼ã¯ã§ã¯、LGWRãã¹ã ã¼ãºã«I/Oã§ããããã«ãªã£ãå、èªåèªèº«ã®I/Oè¦æ±ãé«ã¾ã(User I/O(db file sequential read))æ´ã«、HDDã®éçå¤ãè¶ ããI/Oã¯å½ç¶ã§ããªãã®ã§、log switchã®çºçã¨å ±ã«、DBWRã®I/Oã飽åç¶æ ã«ãªã、TPCã®ãã³ããã¼ã¯ãä¸éç·ã示ãã¦ãã。
ä¸æ¹、SSDã使ç¨ãããã³ããã¼ã¯(D)ã§ã¯、I/Oã«ä½è£ããããã、LGWRã¨DBWRã®I/Oã¹ã«ã¼ãããåä¸ã、ãã®ã¾ã¾TPCã®ã¹ã³ã¢åä¸ã«å¯ä¸ãã¦ãã。
ããã、ãã®ãã³ããã¼ã¯ãèµ°ãããããã«ãã¦ãã、OS kernelãI/Oé¢é£ã®ã¨ã©ã¼ãåºåããããã«ãªã£ã¦ãã。åå ã¯SSDã¸ã®éåæI/Oã®ããã ã。。。æ´ã«ã¯、filesystemå ¨ä½ãç ´å£ããã¦ãã¾ã£ã¦ãã。。。
確ãã«ããã©ã¼ãã³ã¹åä¸ãé©ãã»ã©ã ã、äºåº¦ã¨èµ·åããªãããã§ã¯。。。
ã¨ãããã¨ã§、ããå°ã詳細ã«èª¿ã¹ããã¨ã«ãã。
ã³ã¡ã³ã
ã³ã¡ã³ããæ稿