µ±Ç°Î»ÖÃ: > Linux½Ì³Ì > ϵͳÔËά >

linuxϵͳ֮load average

ʱ¼ä:2015-02-25 01:33À´Ô´:linux.it.net.cn ×÷Õß:IT
load average£ºÆ½¾ù¸ºÔØ£¬os¼¶²ÎÊý£¬±»¶¨ÒåΪÔÚÌض¨Ê±¼ä¼ä¸ôÄÚÔËÐжÓÁÐÖеÄƽ¾ù½ø³ÌÊý¡£Èç¹ûÒ»¸ö½ø³ÌÂú×ãÒÔÏÂÌõ¼þÔòÆä¾Í»áλÓÚÔËÐжÓÁÐÖУº
¡¡¡¡- ËüûÓÐÔڵȴýI/O²Ù×÷µÄ½á¹û
¡¡¡¡- ËüûÓÐÖ÷¶¯½øÈëµÈ´ý״̬(Ò²¾ÍÊÇûÓе÷ÓÃ’wait’)
¡¡¡¡- ûÓб»Í£Ö¹(ÀýÈ磺µÈ´ýÖÕÖ¹)


²é¿´ÃüÁ




$uptime11:12:26 up  3:44,  4 users,  load average: 0.38, 0.31, 0.19
ÉÏÃæµÄÊä³ö£¬load
averageºóÃæ·Ö±ðÊÇ1·ÖÖÓ¡¢5·ÖÖÓ¡¢15·ÖÖӵĸºÔØÇé¿ö¡£Êý¾ÝÊÇÿ¸ô5ÃëÖÓ¼ì²éÒ»´Î»îÔ¾µÄ½ø³ÌÊý£¬È»ºó¸ù¾ÝÕâ¸öÊýÖµËã³öÀ´µÄ¡£Èç¹ûÕâ¸öÊý³ýÒÔCPU
µÄÊýÄ¿£¬½á¹û¸ßÓÚ5µÄʱºò¾Í±íÃ÷ϵͳÔÚ³¬¸ººÉÔËתÁË¡£´Ó²éµ½µÄÆäËû×ÊÁÏÉϵÃÖª£ºload avarage/cpuÊýÄ¿ <3
ϵͳÁ¼ºÃ£¬3µ½5Ö®¼ä¿ÉÒÔ½ÓÊÜ£¬´óÓÚ5 Ôò¿ÉÄÜÓÐÑÏÖصÄÐÔÄÜÎÊÌâ¡£»òÕßÊÇÖ÷»úÌṩµÄ·þÎñ³¬¹ýÁËËûÄܹ»ÌṩµÄÄÜÁ¦£¬ÐèÒªÀ©ÈÝÁË¡£Òª¿´¾ßÌåÇé¿ö¡£


==========================================================================


µ¥¸öCPU ²»³¬¹ý3.0ΪÕý³£, ÈçË«ºËCPU ¾ÍÊÇ2*3.0<=6.0
ΪÕý³££¬Èç¹ûËĺˣ¬4*3.0<=12.0ΪÕý³££¬ÓòÕߣ¬ÏÖÔÚ Load Average Êý³ýÒÔCPU¸öÊý <=3 ΪÕý³££¬ÈçÏÖÔÚ
Load Average Ϊ8.91 5.23 3.22   cpu Ë«ºË¼ÆËã,8.91/2=4.455 >3 ËùÒÔ²»Õý³££¬
¶Ô±È·½Ê½À´¿´Ë«ºËÀ´¿´ÊÇ6ÔÚÕý³££¬µ«ÏÖÔÚÊÇ8.91ËùÒÔ²»Õý³££¬Èç¹ûCPUÊÇ Ëĺˣ¨»òÖÁÇ¿CPU) 8.91/4=2.2275<3 ÕâÊÇÕý³££¬
¶Ô±È·½Ê½À´¿´£¬Ëĺˣ¨ÖÁÇ¿CPU)12ÔÚΪÕý³££¬µ«ÊÇÏÖÔÚ8.91 ËùÒÔÒ²ÊÇÕý³£µÄ¡£
Èç¹û²»Õý³££¬ÔòÐèÒª£º
¼ì²éÄǸö½ø³Ì ʹÓà CPU ʱ¼ä×î¶à£¬²¢ÇÒʹÓðٷּ¸ÂÊ×î¸ßµÄ³ÌÐò£¬
Èç¹ûÓ²ÅÌûÓÐÎÊÌ⣬¾ÍÊdzÌÐòÉÏÓÐÎÊÌ⣬·ÖÎö¶¼Ã»ÓпÉÄý£¬ÄÇô¿ÉÄÜÒѾ­µ½¸ºÔØÆ´¾±£¬ÐèÒª¼ÓÉ豸À´½â¾ö¡£


Èç¹û³ÌÐòCPUÕ¼ÓÃÂʲ»¶à£¬Ê±¼ä²»³¤£¬¶ø Load Average   ÈÔÈ»ºÜ¸ß£¬ÕâʱҪ¿¼ÂǼì²éÓ²ÅÌÊÇ·ñÓÐÎÊÌ⣬»òÆäËüÓ²¼þµÄÎÊÌâ¡£

(ÔðÈα༭£ºIT)
------·Ö¸ôÏß----------------------------
À¸Ä¿Áбí
ÍƼöÄÚÈÝ