å½æ°æ®é¡µç»å¸¸ä»ç¼å²æ± ä¸ç§»è¿ç§»åºçæ¶åï¼I/Oåç³»ç»å°±ä¼æ为SQLServeræ§è½é®é¢çå
³é®å ç´ ä¹ä¸ãäºå¡æ¥å¿åtempdbåæ ·ä¹ä¼äº§çé大çI/Oååãå æ¤ï¼ä½ å¿
须确ä¿ä½ çI/Oåç³»ç»è½æç
§é¢æè¿è¡ãå¦åä½ å°ä¼æ为ååºæ¶é´å¢é¿åé¢ç¹è¶
æ¶çå害è
ãå¨è¿ç¯æç« ä¸ï¼å°æè¿°å¦ä½ä½¿ç¨å
置工å
·è¯å«I/Oç¸å
³ç¶é¢ï¼å¹¶æä¾ä¸äºç£çé
ç½®çæ¹æ³ï¼
æ§è½è®¡æ°å¨ï¼Performance Monitorï¼ï¼
å¯ä»¥ä½¿ç¨æ§è½è®¡æ°å¨æ¥æ£æ¥I/Oåç³»ç»çè´è·ãä¸é¢ç计æ°å¨å¯ç¨äºæ£æ¥ç£çæ§è½ï¼
PhysicalDisk Object:Avg.DiskQueue Lengthï¼è®¡ç®ä»ç©çç£çä¸çå¹³å读ååç请æ±éåãè¿é«çå¼ä»£è¡¨ç£çæä½å¤äºçå¾
ç¶æãå½è¿ä¸ªå¼å¨SQLServerå³°å¼æ¶é¿æè¶
è¿2ï¼è¯æéè¦æ³¨æäºãå¦ææå¤ä¸ªç¡¬çï¼å°±éè¦æè¿äºæ°å¼é¤ä»¥2ãæ¯å¦ï¼æ4个硬çï¼ä¸éå为10ï¼é£ä¹å¹³åå¼å°±æ¯10/4=2.5ï¼è½ç¶ä¹è¯æéè¦å
³æ³¨ï¼ä½ä¸è½ä½¿ç¨10è¿ä¸ªå¼ã
Avg.Disk Sec/ReadåAvg.Disk Sec/Writeï¼æ¾ç¤ºä»ç£ç读æè
åå
¥ç£ççå¹³åæ¶é´ã10mså
æ¯å¾å¥½ç表ç°ï¼20以ä¸è¿ç®è½æ¥åãé«äºæ¤å¼è¯æåå¨é®é¢ã
Physical Disk:%Disk Timeï¼å¨ç£çå¿äºè¯»æè
å请æ±çæ¶åæç»æ¶é´çæ¯çãæ ¹æ®ææå®å¾ï¼æ¤å¼åºè¯¥å°äº50%ã
Disk Reads/SecåDisk Writes/Sec计æ°å¨æ¾ç¤ºåºå¨ç£çä¸è¯»åæä½çéçãè¿ä¸¤ä¸ªå¼åºè¯¥å°äºç£çè½åç85%ãå½è¶
è¿æ¤å¼ï¼ç£çç访é®æ¶é´å°ä»¥ææ°æ¹å¼å¢é¿ã
å¯ä»¥éè¿ä»¥ä¸æ¹å¼æ¥è®¡ç®éæ¸å¢é¿çè´è½½çè½åãä¸ç§æ¹æ³æ¯ä½¿ç¨SQLIOãä½ åºè¯¥æ¾å°ååéæ¯è¾ç¨³å®ï¼ä½ç¼æ
¢å¢é¿ã
å¯ä»¥ä½¿ç¨ä»¥ä¸å
¬å¼æ¥è®¡ç®RAIDé
ç½®ï¼
Raid 0: I/O per disk = (reads + writes) / number ofdisks
Raid 1: I/O per disk = [reads + (writes*2)] / 2
Raid 5: I/O per disk = [reads + (writes*4)] / number of disks
Raid 10: I/O per disk = [reads + (writes*2)] / number of disks
æ¯å¦ï¼å¯¹äºRAID 1ï¼å¦æå¾å°ä¸é¢ç计æ°å¨ï¼
Disk Reads/sec = 90
Disk Writes/sec =75
æ ¹æ®å
¬å¼ï¼[reads + (writes*2)] / 2 or [90 + (75*2)] / 2 = 120I/Osæ¯ä¸ªç£çã
温馨提示:答案为网友推荐,仅供参考