linuxÖеÄpmʲôÒâ˼
linuxÖеÄpmÊÇ¡°power management¡±µÄËõд£¬Ö¸µÄÊǵçÔ´ÖÎÀí¡£µçÔ´ÖÎÀíÔÚÏÖ´úÅÌËã»úϵͳÖÐÊÎÑÝ×ÅÖ÷ÒªµÄ½ÇÉ«£¬ËüÉæ¼°µ½µçÔ´µÄ·ÖÅÉ¡¢¹¦ºÄ¿ØÖÆ¡¢ÐÔÄÜÓÅ»¯µÈ·½Ã棬ÔÚlinux²Ù×÷ϵͳÖУ¬pmÖ÷ÒªÈÏÕæÖÎÀíºÍ¿ØÖƵçÔ´µÄʹÓã¬ÒÔʵÏÖÄÜÔ´µÄ¸ßЧʹÓúÍϵͳµÄÎȹÌÐÔ¡£
±¾ÎIJÙ×÷ÇéÐΣºlinux 6.4.3ϵͳ¡¢DELL G3µçÄÔ¡£
ÔÚLinuxÖУ¬PMÊÇPower ManagementµÄËõд£¬Ö¸µÄÊǵçÔ´ÖÎÀí¡£µçÔ´ÖÎÀíÔÚÏÖ´úÅÌËã»úϵͳÖÐÊÎÑÝ×ÅÖ÷ÒªµÄ½ÇÉ«£¬ËüÉæ¼°µ½µçÔ´µÄ·ÖÅÉ¡¢¹¦ºÄ¿ØÖÆ¡¢ÐÔÄÜÓÅ»¯µÈ·½Ãæ¡£ÔÚLinux²Ù×÷ϵͳÖУ¬PMÖ÷ÒªÈÏÕæÖÎÀíºÍ¿ØÖƵçÔ´µÄʹÓã¬ÒÔʵÏÖÄÜÔ´µÄ¸ßЧʹÓúÍϵͳµÄÎȹÌÐÔ¡£
ÔÚLinuxÖУ¬PM¿ÉÒÔ·ÖΪÓû§¿Õ¼äºÍÄں˿ռäÁ½²¿·Ö¡£Óû§¿Õ¼äPMÖ÷ÒªÈÏÕæÌṩͼÐνçÃæºÍÏÂÁîÐй¤¾ß£¬ÒÔ¹©Óû§ÉèÖúͿØÖƵçÔ´ÖÎÀíÏà¹ØµÄ²ÎÊýºÍÑ¡Ïî¡£ÀýÈ磬Óû§¿ÉÒÔͨ¹ýÉèÖÃÐÝÃßʱ¼ä¡¢ÆÁÄ»ÁÁ¶ÈµÈÀ´¿ØÖƵçÔ´µÄʹÓá£Óû§¿Õ¼äPM»¹ÌṩÁ˵ç³Ø״̬¼à²âºÍµçÔ´µ÷ÀíµÈ¹¦Ð§£¬ÒÔ±ãÓû§Äܹ»ÊµÊ±Ïàʶµç³ØÊ£ÓàÈÝÁ¿ÒÔ¼°ÏµÍ³µÄÄÜÔ´ÏûºÄÇéÐΡ£
¶øÄں˿ռäPMÔòÊÇLinux²Ù×÷ϵͳÖеÄÒ»¸ö×Óϵͳ£¬ËüÈÏÕæÏÖʵÖÎÀíºÍ¿ØÖƵçÔ´µÄʹÓá£Äں˿ռäPMÖ÷Ҫͨ¹ý×°±¸Çý¶¯³ÌÐòÀ´ÓëÓ²¼þ¾ÙÐн»»¥£¬¼à¿ØºÍ¿ØÖƵçÔ´µÄ¹©Ó¦ÇéÐΡ£Ëü¿ÉÒÔƾ֤ϵͳµÄ¸ºÔØÇéÐκÍÓû§ÉèÖõÄÕ½ÂÔ£¬¶¯Ì¬µ÷½âCPUƵÂÊ¡¢¹Ø±ÕÎÞÓõÄ×°±¸¡¢ÓÅ»¯¸÷¸ö×é¼þµÄ¹¦ºÄµÈ£¬ÒÔʵÏÖÄÜÔ´µÄ¸ßЧʹÓúÍϵͳÐÔÄܵÄÓÅ»¯¡£
Äں˿ռäPM»¹Éæ¼°µ½CPUµÄ½ÚÄÜÖÎÀíÊÖÒÕ£¬È繦ÂÊ״̬ÖÎÀí£¨Power State Management£¬PSM£©¡£PSMÔÊÐíCPUÔÚ²î±ðµÄ¹¦ºÄ״̬֮¼äÇл»£¬ÒÔ±ãƾ֤¸ºÔØÇéÐξÙÐж¯Ì¬µ÷½â¡£µ±CPU´¦ÓÚ¿ÕÏÐ״̬ʱ£¬Ëü¿ÉÒÔ½øÈëµÍ¹¦ºÄ״̬£¬ÒÔ½µµÍ¹¦ºÄºÍÉ¢ÈÈ¡£¶øÔÚÐèÒª¸ü¸ßÐÔÄܵÄÇéÐÎÏ£¬CPU¿ÉÒÔ¿ìËÙÇл»µ½¸ßÐÔÄÜ״̬£¬ÒÔÌṩ¸üºÃµÄÏìÓ¦ËÙÂʺʹ¦ÀíÄÜÁ¦¡£
ÁíÍ⣬Linux»¹Ö§³ÖACPI£¨Advanced Configuration and Power Interface£©±ê×¼£¬Ëü½ç˵ÁËÒ»ÖÖͳһµÄ·½·¨À´ÖÎÀíµçÔ´ºÍÉèÖÃ×°±¸¡£ACPIʹµÃϵͳÄܹ»Í¨¹ýÈí¼þÀ´ÓÐÓõؿØÖÆÓ²¼þ×°±¸µÄ¸÷¸ö·½Ã棬°üÀ¨µçÔ´¿ØÖÆ¡¢×°±¸×´Ì¬µÄ¼à²âºÍÖÎÀí¡£ÕâΪLinuxÌṩÁËÔ½·¢ÎÞаºÍÖÇÄܵĵçÔ´ÖÎÀíÄÜÁ¦¡£
×ܽáÀ´Ëµ£¬PMÔÚLinuxÖÐÊÇÖ¸µçÔ´ÖÎÀí£¬°üÀ¨Óû§¿Õ¼äºÍÄں˿ռäPM¡£ËüÈÏÕæÖÎÀíºÍ¿ØÖƵçÔ´µÄʹÓã¬ÊµÏÖÄÜÔ´µÄ¸ßЧʹÓúÍϵͳµÄÎȹÌÐÔ¡£ÔÚLinuxÖУ¬PMÖ÷Ҫͨ¹ýÓû§¿Õ¼äºÍÄں˿ռäµÄ¹¤¾ßºÍÇý¶¯³ÌÐòÀ´ÊµÏÖÖÖÖÖ¹¦ºÄµ÷ÀíºÍµçÔ´¿ØÖƵĹ¦Ð§£¬ÒÔÌṩ¸üºÃµÄÓû§ÌåÑéºÍϵͳÐÔÄÜ¡£
ÒÔÉϾÍÊÇlinuxÖеÄpmʲôÒâ˼µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡