´ÅÅÌ I/O ÐÔÄܼà¿ØÖ¸±êºÍµ÷ÓÅ·½·¨
ÔÚ½éÉÜ´ÅÅÌ I/O ¼à¿ØÃüÁîÇ°£¬ÎÒÃÇÐèÒªÁ˽â´ÅÅÌ I/O ÐÔÄܼà¿ØµÄÖ¸±ê£¬ÒÔ¼°Ã¿¸öÖ¸±êµÄËù½ÒʾµÄ´ÅÅÌij·½ÃæµÄÐÔÄÜ¡£´ÅÅÌ I/O ÐÔÄܼà¿ØµÄÖ¸±êÖ÷Òª°üÀ¨£º
Ö¸±ê 1£ºÃ¿Ãë I/O Êý£¨IOPS »ò tps£©
¶ÔÓÚ´ÅÅÌÀ´Ëµ£¬Ò»´Î´ÅÅ̵ÄÁ¬Ðø¶Á»òÕßÁ¬Ðøд³ÆΪһ´Î´ÅÅÌ I/O, ´ÅÅÌµÄ IOPS ¾ÍÊÇÿÃë´ÅÅÌÁ¬Ðø¶Á´ÎÊýºÍÁ¬Ðøд´ÎÊýÖ®ºÍ¡£µ±´«ÊäС¿é²»Á¬ÐøÊý¾Ýʱ£¬¸ÃÖ¸±êÓÐÖØÒª²Î¿¼ÒâÒå¡£
Ö¸±ê 2£ºÍÌÍÂÁ¿£¨Throughput£©
Ö¸Ó²ÅÌ´«ÊäÊý¾ÝÁ÷µÄËٶȣ¬´«ÊäÊý¾ÝΪ¶Á³öÊý¾ÝºÍдÈëÊý¾ÝµÄºÍ¡£Æ䵥λһ°ãΪ Kbps, MB/s µÈ¡£µ±´«Êä´ó¿é²»Á¬ÐøÊý¾ÝµÄÊý¾Ý£¬¸ÃÖ¸±êÓÐÖØÒª²Î¿¼×÷Óá£
Ö¸±ê 3£ºÆ½¾ù I/O Êý¾Ý³ß´ç
ƽ¾ù I/O Êý¾Ý³ß´çΪÍÌÍÂÁ¿³ýÒÔ I/O ÊýÄ¿£¬¸ÃÖ¸±ê¶Ô½Òʾ´ÅÅÌʹÓÃģʽÓÐÖØÒªÒâÒå¡£Ò»°ãÀ´Ëµ£¬Èç¹ûƽ¾ù I/O Êý¾Ý³ß´çСÓÚ 32K£¬¿ÉÈÏΪ´ÅÅÌʹÓÃģʽÒÔËæ»ú´æȡΪÖ÷£»Èç¹ûƽ¾ùÿ´Î I/O Êý¾Ý³ß´ç´óÓÚ 32K£¬¿ÉÈÏΪ´ÅÅÌʹÓÃģʽÒÔ˳Ðò´æȡΪÖ÷¡£
Ö¸±ê 4£º´ÅÅ̻ʱ¼ä°Ù·Ö±È£¨Utilization£©
´Å
ÅÌ´¦Óڻʱ¼äµÄ°Ù·Ö±È£¬¼´´ÅÅÌÀûÓÃÂÊ£¬´ÅÅÌÔÚÊý¾Ý´«ÊäºÍ´¦ÀíÃüÁÈçÑ°µÀ£©´¦Óڻ״̬¡£´ÅÅÌÀûÓÃÂÊÓë×ÊÔ´ÕùÓó̶ȳÉÕý±È£¬ÓëÐÔÄܳɷ´±È¡£Ò²¾ÍÊÇ˵´ÅÅÌ
ÀûÓÃÂÊÔ½¸ß£¬×ÊÔ´ÕùÓþÍÔ½ÑÏÖØ£¬ÐÔÄÜÒ²¾ÍÔ½²î£¬ÏìӦʱ¼ä¾ÍÔ½³¤¡£Ò»°ãÀ´Ëµ£¬Èç¹û´ÅÅÌÀûÓÃÂʳ¬¹ý 70%£¬Ó¦Óýø³Ì½«»¨·Ñ½Ï³¤µÄʱ¼äµÈ´ý
I/OÍê³É£¬ÒòΪ¾ø´ó¶àÊý½ø³ÌÔڵȴý¹ý³ÌÖн«±»×èÈû»òÐÝÃß¡£
Ö¸±ê 5£º·þÎñʱ¼ä£¨Service Time£©
Ö¸´ÅÅ̶Á»òд²Ù×÷Ö´ÐеÄʱ¼ä£¬°üÀ¨Ñ°µÀ£¬ÐýתʱÑÓ£¬ºÍÊý¾Ý´«ÊäµÈʱ¼ä¡£Æä´óСһ°ãºÍ´ÅÅÌÐÔÄÜÓйأ¬CPU/ ÄÚ´æµÄ¸ººÉÒ²»á¶ÔÆäÓÐÓ°Ï죬ÇëÇó¹ý¶àÒ²»á¼ä½Óµ¼Ö·þÎñʱ¼äµÄÔö¼Ó¡£Èç¹û¸ÃÖµ³ÖÐø³¬¹ý 20ms£¬Ò»°ã¿É¿¼ÂÇ»á¶ÔÉϲãÓ¦ÓòúÉúÓ°Ïì¡£
Ö¸±ê 6£ºI/O µÈ´ý¶ÓÁг¤¶È£¨Queue Length£©
Ö¸
´ý´¦ÀíµÄ I/O ÇëÇóµÄÊýÄ¿£¬Èç¹û I/O ÇëÇóѹÁ¦³ÖÐø³¬³ö´ÅÅÌ´¦ÀíÄÜÁ¦£¬¸ÃÖµ½«Ôö¼Ó¡£Èç¹ûµ¥¿é´ÅÅ̵ĶÓÁг¤¶È³ÖÐø³¬¹ý
2£¬Ò»°ãÈÏΪ¸Ã´ÅÅÌ´æÔÚI/OÐÔÄÜÎÊÌâ¡£ÐèҪעÒâµÄÊÇ£¬Èç¹û¸Ã´ÅÅÌΪ´ÅÅÌÕóÁÐÐéÄâµÄÂß¼Çý¶¯Æ÷£¬ÐèÒªÔÙ½«¸ÃÖµ³ýÒÔ×é³ÉÕâ¸öÂß¼Çý¶¯Æ÷µÄʵ¼ÊÎïÀí´ÅÅÌÊýÄ¿£¬
ÒÔ»ñµÃƽ¾ùµ¥¿éÓ²Å̵ÄI/O µÈ´ý¶ÓÁг¤¶È¡£
Ö¸±ê 7£ºµÈ´ýʱ¼ä£¨Wait Time£©
Ö¸´ÅÅ̶Á»òд²Ù×÷µÈ´ýÖ´ÐеÄʱ¼ä£¬¼´ÔÚ¶ÓÁÐÖÐÅŶӵÄʱ¼ä¡£Èç¹û I/O ÇëÇó³ÖÐø³¬³ö´ÅÅÌ´¦ÀíÄÜÁ¦£¬Òâζ×ÅÀ´²»¼°´¦ÀíµÄ I/O ÇëÇ󲻵ò»ÔÚ¶ÓÁÐÖеȴý½Ï³¤Ê±¼ä¡£
ͨ
¹ý¼à¿ØÒÔÉÏÖ¸±ê£¬²¢½«ÕâЩָ±êÊýÖµÓëÀúÊ·Êý¾Ý£¬¾ÑéÊý¾ÝÒÔ¼°´ÅÅ̱ê³ÆÖµ¶Ô±È£¬±ØҪʱ½áºÏ CPU¡¢ÄÚ´æ¡¢½»»»·ÖÇøµÄʹÓÃ×´¿ö£¬²»ÄÑ·¢ÏÖ´ÅÅÌ
I/ODZÔÚ»òÒѾ³öÏÖµÄÎÊÌâ¡£µ«Èç¹û±ÜÃâºÍ½â¾öÕâЩÎÊÌâÄØ£¿Õâ¾ÍÐèÒªÀûÓõ½´ÅÅÌ
I/OÐÔÄÜÓÅ»¯·½ÃæµÄ֪ʶºÍ¼¼Êõ¡£ÏÞÓÚ±¾ÎÄÖ÷ÌâºÍƪ·ù£¬½öÁгöһЩ³£ÓõÄÓÅ»¯·½·¨¹©¶ÁÕ߲ο¼£º
1.µ÷ÕûÊý¾Ý²¼¾Ö£¬¾¡Á¿½« I/O ÇëÇó½ÏºÏÀíµÄ·ÖÅäµ½ËùÓÐÎïÀí´ÅÅÌÖС£
2.¶ÔÓÚ RAID ´ÅÅÌÕóÁУ¬¾¡Á¿Ê¹Ó¦ÓóÌÐò I/O µÈÓÚÌõ´ø³ß´ç»òÕßΪÌõ´ø³ß´çµÄ±¶Êý¡£²¢Ñ¡È¡ºÏÊ浀 RAID ·½Ê½£¬Èç RAID10£¬RAID5¡£
3.Ôö´ó´ÅÅÌÇý¶¯³ÌÐòµÄ¶ÓÁÐÉî¶È£¬µ«²»Òª³¬¹ý´ÅÅ̵Ĵ¦ÀíÄÜÁ¦£¬·ñÔò£¬²¿·Ö I/O ÇëÇó»áÒòΪ¶ªÊ§¶øÖØз¢³ö£¬Õ⽫½µµÍÐÔÄÜ¡£
4.Ó¦Óûº´æ¼¼Êõ¼õÉÙÓ¦ÓôæÈ¡´ÅÅ̵ĴÎÊý£¬»º´æ¼¼Êõ¿ÉÓ¦ÓÃÔÚÎļþϵͳ¼¶±ð»òÕßÓ¦ÓóÌÐò¼¶±ð¡£
5.ÓÉÓÚ¶àÊýÊý¾Ý¿âÖÐÒÑ°üÀ¨¾ÓÅ»¯ºóµÄ»º´æ¼¼Êõ£¬Êý¾Ý¿â I/O ÒËÖ±½Ó´æÈ¡Ôʼ´ÅÅÌ·ÖÇø£¨raw partition£©»òÕßÀûÓÃÈƹýÎļþϵͳ»º´æµÄ DIO ¼¼Êõ£¨direct IO£©
6.ÀûÓÃÄÚ´æ¶Áд´ø¿íÔ¶±ÈÖ±½Ó´ÅÅÌ I/O ²Ù×÷ÐÔÄÜÓÅÔ½µÄÌص㣬½«Æµ·±·ÃÎʵÄÎļþ»òÊý¾ÝÖÃÓÚÄÚ´æÖС£
ÍƼöÐÅÏ¢
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- php³£ÓÃÕýÔò±í´ïʽ
- phpÐÔÄܼà²âÄ£¿éXHProf
- ÈÃCI¿ò¼ÜÖ§³Öservice²ã
- ʹÓÃPHPÉú³É´øLOGOµÄ¸öÐÔ»¯¶þάÂëͼÏñ
- ¹ØÓÚCodeIgniterÄã¿ÉÄܲ»ÖªµÀµÄ5¸ö֪ʶµã
- Memcache ºÁÃ뼶³¬Ê±¼°ÆäËû³£¼ûÎÊÌâ»ã×Ü
- [PHP±Ê¼Ç]PHPQueryÒ»¸ö´¦ÀíDOMµÄÀûÆ÷
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- PHP»ñÈ¡Óû§µÄÕæʵIP£¬²¢ÅжÏÊÇ·ñÄÚÍøIP
- PHP ´íÎóÈÕÖ¾ error_log
- ÀûÓÃbigpipe»úÖÆʵÏÖÒ³ÃæÄ£¿éµÄÒì²½äÖȾ chunked¼¼Êõ
- php¿ØÖÆÎļþÏÂÔØËÙ¶È
- js + php ¶ÁÈ¡¡¢²¥·ÅÊÓƵÁ÷ ¼æÈÝfirefox£¬c....
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- UNICODE Óë UTF-8 µÄ¹Øϵ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- phpʹÓÃmb_detect_encoding¼ì²â×Ö·û´®±àÂë
ÆÀÂÛ