ÎÒѧÀ´¼ì²éLinuxµÄ×÷ҵϵͳ״̬£¬»ù±¾ÉÏÓÃtop£¬vmstat 5Á½¸öÖ¸Áî¡£
top ---¿É²é¿´ÏµÍ³(CPU)/ʹÓÃÕß(User)/ÐÝÏ¢(Idle)/IO´ýÁô(iowait)µÈ״̬µÄ°Ù·Ö±ÈЧÂÊ¡£Ò»°ãÀ´½²£¬"load average"µÍÓÚ1£¬ "wa"µÍÓÚ5%Ϊ¡¸Õý³£¡¹£¬µ±È»Õ⻹ҪÒÀ¸÷±ðϵͳ²»Í¬×öÅжϡ£
vmstat 5 ---ÿ¸ô5Ã룬¿´¸÷¸öprocessµÄ½øÐÐ״̬¡£
ͨ³£swap ("swpd")ºÍ("si", "so")Ó¦¸Ã½Ó½üÓÚ0¡£Æ©Èç˵load is high, "us" is low, "wa" is above 75%£¬Ò»Ö±Î¬³ÖºÜ¾Ã£¬±íʾµÈI/O£¬Õâ¿ÉÄÜÊÇÍø·»òÓ²µúµÄ¹Øϵ¡£Èç¹ûÊÇload is high£¬"wa" is low£¬µ«"us" is high£¬±íʾCPU²»×ã¡£ÎÒÉÏÃæµÄÀý×ÓÊÇÓÐʱºòϵͳµÄswap ("swpd")ºÍ("si", "so")ºÜ¶à£¬¼¸ºõûÓÐidleʱ¼ä£¬¿ÉÄÜÊÇÒòΪÓÐÈíÌåÔÚ¼±ËÙÔË×÷£¬Ò²ÊÇÒòΪPCµÄRAMÌ«ÉٵĹØϵ¡£
̫ƽÇÅ ÓÚ 2008-05-03 12:35:55·¢±í:
²»ÖªÂ¥Ö÷ ˵µÄµ½µ×ÊÇ Debian »¹ÊÇ Ubuntu
q):-s