ʹÓÃLinux ttyloadÀ´¼à²âϵͳÐÔÄܵÄÒªÁì
ÎÊÌ⣺ÔõÑùʹÓÃLinux ttyload¼à¿ØϵͳÐÔÄÜ£¿
ÔÚLinuxϵͳÖУ¬ÎªÁËÈ·±£ÏµÍ³ÔËÐÐÎȹ̲¢ÇÒÄܹ»ÊµÊ±·¢Ã÷ϵͳ¸ºÔعý¸ßµÄÇéÐΣ¬ÎÒÃÇͨ³£»áʹÓÃһЩÐÔÄܼà¿Ø¹¤¾ßÀ´×ÊÖúÎÒÃÇʵʱ¼à¿ØϵͳµÄÔËÐÐ״̬¡£±¾ÎĽ«ÏÈÈÝÒ»¿îÃûΪttyloadµÄ¹¤¾ß£¬Ëü¿ÉÒÔͨ¹ýÖÕ¶ËÏÔʾϵͳµÄÄ¿½ñ¸ºÔØÇéÐΣ¬²¢ÇÒ¾ßÓÐÒ»¶¨µÄÊÊÓÃÐÔ¡£½ÓÏÂÀ´½«ÏêϸÏÈÈÝÔõÑùʹÓÃttyloadÀ´¼à¿ØϵͳÐÔÄÜ£¬²¢¸ø³öÏêϸµÄ´úÂëʾÀý¡£
ttyloadÊÇÒ»¸ö¼òÆÓµ«Ê®·ÖÊÊÓõŤ¾ß£¬Ëü¿ÉÒÔÏÔʾϵͳµÄƽ¾ù¸ºÔØÇéÐΣ¬²¢ÒÔÖ±¹ÛµÄ·½·¨Õ¹Ê¾³öÀ´£¬Í¨¹ýttyloadÎÒÃÇ¿ÉÒÔÇåÎúµØÏàʶϵͳĿ½ñµÄ¸ºÔØˮƽ£¬´Ó¶øʵʱ·¢Ã÷ϵͳµÄÆ¿¾±ºÍÎÊÌ⣬²¢¾ÙÐÐÏìÓ¦µÄÓÅ»¯ºÍµ÷½â¡£
Ê×ÏÈ£¬ÎÒÃÇÐèÒªÔÚLinuxϵͳÖÐ×°ÖÃttyload¹¤¾ß£¬¿ÉÒÔͨ¹ýÒÔÏÂÏÂÁîÀ´×°Öãº
sudo apt-get install ttyload
µÇ¼ºó¸´ÖÆ
×°ÖÃÍê³Éºó£¬ÎÒÃÇ¿ÉÒÔÔÚÖÕ¶ËÖÐÖ±½ÓÔËÐÐttyloadÏÂÁîÀ´Æô¶¯ttyload¹¤¾ß¡£ÔËÐÐÏÂÁ
ttyload
µÇ¼ºó¸´ÖÆ
ÔÚÖÕ¶ËÖÐÎÒÃǻῴµ½Ò»¸öÀàËÆÓÚÏÂͼµÄ½çÃ棺
0.03, 0.06, 0.05
µÇ¼ºó¸´ÖÆ
ÕâÈý¸öÊý×Ö»®·ÖÌåÏÖϵͳµÄ1·ÖÖÓ¡¢5·ÖÖÓºÍ15·ÖÖÓµÄƽ¾ù¸ºÔØ£¬ÕâЩÊý×Ö´ú±íÁËϵͳËùÔâÊܵĸººÉˮƽ¡£Í¨³£ÇéÐÎÏ£¬ÕâÈý¸öÊý×ÖÓ¦¸Ã¾¡¿ÉÄܵؿ¿½üÓÚϵͳµÄCPU½¹µãÊýÄ¿£¬ÀýÈçÒ»¸ö4ºËµÄCPUϵͳ£¬ÕâÈý¸öÊý×ÖÓ¦¸Ã¼á³ÖÔÚ4ÒÔÏÂΪ¼Ñ¡£
³ýÁËÏÔʾϵͳµÄƽ¾ù¸ºÔØÇéÐÎÍ⣬ttyload»¹ÌṩÁËһЩÏÂÁîÐÐÑ¡Ï¿ÉÒÔƾ֤ÐèÒª¾ÙÐÐÉèÖá£ÏÂÃæÊÇһЩ³£ÓõÄttyloadÑ¡Ï
-h: ÏÔʾ×ÊÖúÐÅÏ¢
-v: ÏÔʾttyloadµÄ°æ±¾ÐÅÏ¢
-n: ÉèÖøüоàÀëʱ¼ä£¬µ¥Î»ÎªÃë
ÀýÈ磬ÎÒÃÇ¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÀ´ÉèÖøüоàÀëʱ¼äΪ1Ã룺
ttyload -n 1
µÇ¼ºó¸´ÖÆ
ͨ¹ý°´ÆÚÔËÐÐttyloadÏÂÁÎÒÃÇ¿ÉÒÔËæʱ¼à¿ØϵͳµÄ¸ºÔØÇéÐΣ¬ÊµÊ±·¢Ã÷ÎÊÌâ²¢¾ÙÐд¦Àí¡£µ±ÏµÍ³µÄ¸ºÔعý¸ßʱ£¬ÎÒÃÇ¿ÉÒÔͨ¹ýÉó²éttyloadµÄÊä³öÀ´ÅжÏÊÇÄÄЩÀú³Ìµ¼ÖÂÁ˸ºÔصÄÔöÌí£¬´Ó¶ø¾ÙÐÐÏìÓ¦µÄÓÅ»¯ºÍµ÷½â¡£
×ÛÉÏËùÊö£¬ttyloadÊÇÒ»¿î¼òÆÓµ«ÊÊÓõÄϵͳÐÔÄܼà¿Ø¹¤¾ß£¬Í¨¹ýËüÎÒÃÇ¿ÉÒÔʵʱ¼à¿ØϵͳµÄ¸ºÔØÇéÐΣ¬×ÊÖúÎÒÃÇʵʱ·¢Ã÷Ï¢Õù¾öϵͳÐÔÄÜÎÊÌ⡣ϣÍû±¾ÎĶÔÄãÏàʶÔõÑùʹÓÃttyload¼à¿ØϵͳÐÔÄÜÓÐËù×ÊÖú¡£
ÒÔÉϾÍÊÇʹÓÃLinux ttyloadÀ´¼à²âϵͳÐÔÄܵÄÒªÁìµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡