http://habrahabr.ru/blogs/linux/41701/ã§çºè¡šãããèšäºã®å®å
šãªç¿»èš³
Linux Plumbers Conferenceã§ãIntel Linuxéçºè
ã§PowerTOPã®èè
ã§ããArjan van de VenãšãOpen Source Technology Centerã®Inteléçºè
ã§ããAuke Kokãã5ã ããããŒãããLinuxããŒã¹ã®ã·ã¹ãã ãæ«é²ããŸãããç§ã ãã®ã·ã¹ãã ã®ããŒããŠã§ã¢åºç€ã¯ãSSDãã©ã€ããåããAsus EEE PCã§ããã éçºè
ã¯ãå€æŽãããFedoraãšå€æŽãããMoblinã®2ã€ã®ããŒãžã§ã³ã§ã5ç§ã§ããŒãããšãããã€ã«ã¹ããŒã³ãå
æããŸããã EEE PCã¯ããããžã§ã¯ã¿ãããã€ã¹ã®ãããªåºåããã®ä¿¡å·ãèªèã§ãããããéãããŒããããããããããªãã§ã©ãããããã芳客ã«è¿ã¥ããå¿
èŠããããŸããã
圌ãã¯ã©ããã£ãŠãããããŸãããïŒ ã¢ã«ãžã£ã³ã¯ãåé¡ã®æ£ããèšè¿°ãããã¹ãŠãå§ãŸã£ããšèšããŸããããã·ã¹ãã ããé«éã§èµ·åããªããããã«ããã5ç§ã§èµ·åãããããã«ããŸãããããã§1ç§ãä¿åãã代ããã«ãèµ·åããã»ã¹å
šäœã«å¶éæéãèšå®ããŸãããã®æéå
ã«åããŠã³ããŒãæé ãå®è¡ããå¿
èŠããããŸãã ãŸããäžæ£è¡çºã¯ãããŸããããããŠã³ããŒãã®å®äºãšã¯ããã£ã¹ã¯ã¢ã¯ã»ã¹ãšCPU䜿çšçãåæ¢ããããšã§ãããšArjanæ°ã¯è¿°ã¹ãŠããŸãã ãã¹ã¯ããããèµ·åãããŸã§æéã¯æž¬å®ãããŸãããããµãŒãã¹ã¯ããã¯ã°ã©ãŠã³ãã§ããŒãããç¶ããŸãïŒãã ããäžéšã®äŒæ¥ã¯ãã®æç¹ãŸã§OSã®ããŒãæéã枬å®ããŠããŸãïŒã ããŒãæéã¯ãããã¯ãŒã¯ããªã³ã«ããŸããããNetworkManagerã®èµ·åãå«ã¿ãŸãã åŸæ¥ã®ããŒããã©ã€ããæèŒããã·ã¹ãã ã¯ããŒãã«æéãããããŸãããArjanã¯ãThinkPadã§ã·ã¹ãã ãå®è¡ãããšèšãã10ç§ä»¥å
ã«èµ·åããŸãã
Fedoraã¯ãã®ããŒããŠã§ã¢äžã§45ç§ã§èµ·åããŸã-é»æºæå
¥ãããã¹ã¯ãŒãå
¥åç»é¢ãŸã§ã Ziga MahkovecãäœæããããŒã«ã§ããBootchartã¯ãããŠã³ããŒãã®è©³çŽ°ãæããã«ããŸãã Fedoraã®ããŒãã°ã©ãïŒå³1.ïŒã§ã¯ãããŒãããã»ã¹äžã«æéããããããšããããŸãã ã«ãŒãããã¯ã€ã³ã¿ãŒãã§ã€ã¹ãéå§ããã®ã«1ç§ããããŸã-ãã¹ãŠã®ãããã¯ãŒã¯ã€ã³ã¿ãŒãã§ã€ã¹ãloopbakã€ã³ã¿ãŒãã§ã€ã¹ã§ãããã©ããã確èªããŸãã sendmailãéå§ããã«ã¯2ç§ããããŸãã ãå
šå¡ãsendmailãå¿
èŠãšããããã§ã¯ãªããšããäºå®ã«ããããããã誰ããæ¯æããŸãããšArjanæ°ã¯è¿°ã¹ãéä¿¡ã¡ãŒã«å°çšã®å®¶åºçšSMTPã«ã¯ssmtpã䜿çšã§ããããšãææ¡ããŸããã
å³ 1
Fedoraã®å¥ã®ã³ã¹ãã®ãããããã»ã¹ã¯ãsetroubleshootdãã§ããããã¯ã5ç§ã»ã©ãããSecurity Enhanced LinuxïŒSELinuxïŒèšå®ã®ãã©ãã«ã·ã¥ãŒãã£ã³ã°ã«åœ¹ç«ã€ããŒã«ã§ãã Fedoraãéé£ããçç±ã¯ãããŸãã-äžéšã®ç¬ç«ãããããžã§ã¯ãã¯ç解ã§ããªãã»ã©ã®æé/ãªãœãŒã¹ã䜿çšããŠäœæ¥ããŠããŸãã X Window Systemã¯ãèµ·åæã«ç¬èªã®Cããªããã»ããµãšã³ã³ãã€ã©ãèµ·åããç¬èªã®ããŒããŒããããã³ã°ãäœæããŸãã
å³ 2
Ubuntuã®ããŠã³ããŒãã¯ã»ãŒåã-2ç§é«éã§ãïŒå³2ïŒã åäžã®ã¢ãžã¥ãŒã«ãããŒãããããã ãã«ãmodprobeã«12ç§ããããŸãã å°çšãã©ã€ããŒãããŠã³ããŒãããããã®ããŒã«ã¯ãå°çšãã©ã€ããŒãå¿
èŠãšããªãã·ã¹ãã äžã§2.5ç§ã䜿çšããŸãã ã誰ãããã©ã€ããŒããã©ã€ããŒã䜿çšããèœåã«å¯ŸããŠæ¯æããŸãããšArjanæ°ã¯èšããŸãã ãããŠæåŸã«ãUbuntu GDMã¯èæ¯ç»åã衚瀺ããããã ãã«2.5ç§ã®çŽç²ãªCPUæéãèŠããŸãã
ã©ã¡ãã®ãã£ã¹ããªãã¥ãŒã·ã§ã³ãã¹ãã©ãã·ã¥ã¹ã¯ãªãŒã³ã䜿çšããŸãã ArjanãšAukeã®äž¡è
ã¯ããã¹ãã©ãã·ã¥ã¹ã¯ãªãŒã³ãå«ãã§ãã ããããèŠãããã«ããªãã«è²»ããããæéã®ããã«ãç§ãã¡ã¯ãã¹ãŠãè¡ãããããšãæãã§ããŸãã ãã£ã¹ããªãã¥ãŒã·ã§ã³éçºè
ãã¹ãã©ãã·ã¥ã¹ã¯ãªãŒã³ã«è²»ããæéã¯ãã¹ãã©ãã·ã¥ã¹ã¯ãªãŒã³ããŸã£ããå¿
èŠãªããããªæéã«IntelããŒã ãããŒãããã®ã«è²»ãããæéãããã¯ããã«é·ããªããŸãã
圌ãããã£ãæ¹æ³ïŒã«ãŒãã«
æåã®ã¹ãããã¯èšç»ã§ãã ãã¹ãŠã®ã¢ãžã¥ãŒã«ã§ã«ãŒãã«ãèµ·åããã®ã«1ç§ã ããŒãã¹ã¯ãªãããšããã¯ã°ã©ãŠã³ããžã§ããå«ããã¢ãŒãªãŒããŒããã¯ãã1ç§ã§ãã XãµãŒããŒ-ãã1ç§ãäœæ¥ç°å¢ããã°ã©ã çšã«2ç§ã
ã«ãŒãã«ã¯initrdã䜿çšããã«åæ§ç¯ãããŸãããããã«ã¯0.5ç§ããããŸãã å¿
èŠãªãã¹ãŠã®ã¢ãžã¥ãŒã«ã¯ã«ãŒãã«ã«çµã¿èŸŒãŸããŠããŸãã Arjanæ°ã¯ããã©ãããããã®95ïŒ
ã®ããŒãºãã«ããŒããã¢ãžã¥ãŒã«ã®ã»ããããããŸããã圌ã¯ãæ®ãã®5ïŒ
ã«initrdã䜿çšããã«ãŒãã«ã§å¥åã®ãã£ã¹ããªãã¥ãŒã·ã§ã³ãäœæããã ãã§ãããšææ¡ããŸããã
ã«ãŒãã«ã®äžéšã®äœæ¥ã«ãããäžéšã®ãµãã·ã¹ãã ã®äžŠåããŒããå¯èœã«ãªããŸãã ããšãã°ãå€æŽãããã«ãŒãã«ã¯ãUSB管ççšã®ãŠãããŒãµã«ãã¹ãã³ã³ãããŒã©ãŒã€ã³ã¿ãŒãã§ã€ã¹ïŒUHCIïŒãšåæã«ã¹ãã¬ãŒãžç®¡ççšã®ã¢ããã³ã¹ããã¹ãã³ã³ãããŒã©ãŒã€ã³ã¿ãŒãã§ã€ã¹ïŒAHCIïŒã®åæåãéå§ããŸãïŒå³3ïŒã ããããããæéã0.5ç§ã«ççž®ã§ããŸããããæéã1ç§ã«ççž®ããããã«åæ¢ããŸããããšArjanæ°ã¯èšããŸããã 圌ãæžããæ°ããAHCIãµããŒãã¢ãžã¥ãŒã«ãããã®ãããã§ãã«ãŒãã«ã®ããŒãæéã¯2.6.28ã®ãªãªãŒã¹ã«ãã0.5ç§ã«ççž®ãããã¯ãã§ãã
å³ 3
å¥ã®ã«ãŒãã«å€æŽã¯ãå
èªã¿ãµããŒãçšã®å°ããªãããã§ãã Terer Kernelã¯ãããŠã³ããŒãã®æåŸã«ãŠãŒã¶ãŒç©ºéã§ããã«å©çšã§ããããã«ããããã«ãããŒãæã«èªã¿åãå¿
èŠãããæ
å ±ã远跡ããŸãã ããããã¹ãŠãçµã¿åãããããšã§ãæ©æããŠã³ããŒãã®äžéšã§ããå
èªã¿ã䜿çšããããšãã§ããŸãã
圌ããããããã£ãæ¹æ³ïŒå
èªã¿ãšåæå
Fedoraã¯ããŠãŒã¶ãŒç©ºéã§å®è¡ããæåã®ããã°ã©ã ã§ãããinitãã®ä»£ãããšããŠUpstartã䜿çšããŸãã ããããIntelããŒã ã¯å
ã®åæç¶æ
ã«æ»ããŸããã initãå®è¡ããã¿ã¹ã¯ã®é åºã¯ã3ã€ã®ããšãäžåºŠã«å®è¡ã§ããããã«å€æŽãããŸããããŸãããã£ã¹ã¯ããããŒã¿ãèªã¿åããRAMã«ãã£ãã·ã¥ããsReadAheadããã»ã¹ã次ã«éèŠãªç¬éã¯ãã¡ã€ã«ã·ã¹ãã ãD-Busã·ã¹ãã ã®ãã§ãã¯ã§ãããã»ã¹ééä¿¡ãXã°ã©ãã£ãã¯ãµãã·ã¹ãã ããã¹ã¯ãããã ããŠãããŒããŠã§ã¢ã¢ãã¹ãã©ã¯ã·ã§ã³ã¬ã€ã€ãŒïŒHALïŒãå®è¡ããããã°ã©ã ã®3çªç®ã®ã»ããã¯ãudevããããããã©ã°ãããã€ã¹ãããŒãžã£ãŒã次ã«ãããã¯ãŒã¯ã§ãã Udevã¯ãåŸã§æ¥ç¶ã§ããããã€ã¹ããµããŒãããããã«ã®ã¿äœ¿çšãããŸã-ã·ã¹ãã ã¯åŸæ¥ã®/ devãã©ã«ããŒã䜿çšãããããããŠã³ããŒãã¯udevããç¬ç«ããŠããŸãã
ã¿ã¹ã¯ãæŽçãããšãããã»ããµãããæå¹ã«æŽ»çšã§ããŸãã ããšãã°ãXã¯0.5ç§éäžæåæ¢ãããµããŒãããããããªã¢ãŒãã«é¢ããæ
å ±ãåŸ
æ©ããŸãã ä»åã¯ãHALã䜿çšããŠèµ·åããŸãïŒå³4ïŒ
å³ 4
ãã£ã¹ã¯ãšããã»ããµã®äœ¿çšçã®ã°ã©ãã§ã¯ãäž¡æ¹ãšãããŒãæéã®ã»ãŒãã¹ãŠã§æ倧éã«äœ¿çšãããŠããŸããsReadAheadã«æè¬ããŸãã Xãèµ·åãããšããã¹ãŠã®ããŒã¿ãæ¢ã«RAMãã£ãã·ã¥ã«ããããããã£ã¹ã¯ããèªã¿åãæéãå¿
èŠãããŸããã sReadAheadã¯Fedoraã®Readaheadã«åºã¥ããŠããŸãããã«ãŒãã«ããåä¿¡ããèªã¿åãããŒã¿ãªã¹ããå©çšããããã«å€æŽãããŠããŸãã sReadAheadã¯æ¢ã«moblin.orgã§å
¬éãããŠããã¯ãã§ããã«ãŒãã«ã®ãããã¯ãArjanãTed Ts'oïŒext3ãã¡ã€ã«ã·ã¹ãã ã®éçºè
ïŒãšäžç·ã«è¡ããšããã«æçš¿ãããŸã-äŒè°äžãTedã¯ãã£ã¹ã¯äžã®ãããã¯ãåç·šæããæ¹æ³ã«ã€ããŠããã€ãã®ææ¡ãè¡ããŸããããã«é床ãäžããŸãã
ãã®ãããžã§ã¯ãã«ã¯1ã€ã®ããŒãå¶éããããŸãããã£ã¹ã¯ããèªã¿åã75ã¡ã¬ãã€ã-25 MB /ç§ã®é床ã§3ç§ã®æ
å ±è»¢é-SSDãã©ã€ãã®å¶éã ããããã£ãŠããã¡ã€ã«å
šäœãèªã¿åããªãããã«åŒ·å¶ãããŸããã ç§ãã¡ã¯å®éã«äœ¿çšãããã¡ã€ã«ã®äžéšã®ã¿ãèªã¿åããŸãããšArjanæ°ã¯è¿°ã¹ãŠããŸãã sReadAheadã¯ãã£ã¹ã¯ãµãã·ã¹ãã ã®ã¢ã€ãã«æéã®ã¿ã䜿çšãããããä»ã®äœãããã£ã¹ã¯ãžã®ã¢ã¯ã»ã¹ãå¿
èŠãšããå ŽåããããååŸããŸãã å
èªã¿ã䜿çšããã«ãã·ã¹ãã ã¯7ç§ã§èµ·åããããã䜿çšããŠ-ç®æšãéæããŸã-5ç§ã§ããŒãããŸãïŒ
Xã¯ãŸã åé¡ã§ãã ãå€ãã®Xãã¡ãŒãžãäžããå¿
èŠããããŸããããšArjanæ°ã¯èšããŸããã äœæ¥ã®äžéšã¯ãã·ã³ãã«ããŒãã«ãåå©çšããŠCã³ã³ãã€ã©ãèµ·åããªãããã«ããããšãç®çãšããŠããŸããããæ®ãã¯ããäžæçãªãã®ã§ããã Xã®çŸåšã®éçºæ¹åã¯ãæ©åšã®å®çŸ©ãšæ§æã®ã»ãšãã©ãã«ãŒãã«ã«è»¢éããããšãç®çãšããŠããŸããããã«ãããç·ããŒãæéãççž®ãããŸãã ã«ãŒãã«ã®æéã®äžéšã¯æ¢ã«æ©åšã®æ±ºå®ã«äœ¿çšãããŠããŸããããã®æéã¯ããå€ãã®ããã€ã¹ãåæã«åæåããããã«äœ¿çšã§ããŸããæéã®ããå¹ççãªäœ¿çšãUSBããã³ATAãšåæã«ãããªã«ãŒãã®åæåãè¡ããŸãã éçºè
X Keith PackardïŒåããIntelã®åŸæ¥å¡ïŒã圌ã®å©ããæäŸããŸããã ãã®çµæããããªã¢ãŒãã¯ãæ©åšã®æ®ãã®åæåäžã«ã«ãŒãã«ã«ãã£ãŠèšå®ãããŸãïŒå³3ïŒã æ瀺ãããã¯ã€ãã¯ããŒãã£ã³ã°ã·ã¹ãã ã¯GDMïŒãã¹ã¯ãŒãå
¥åç»é¢ïŒã䜿çšãããXFCEç°å¢ã§ãŠãŒã¶ãŒã»ãã·ã§ã³ã«çŽæ¥ããŒããããŸãã Arjanã¯ãGDMã®ä»£ããã«ãæåŸã®ãŠãŒã¶ãŒã®ã»ãã·ã§ã³ãèªã¿èŸŒããããã¹ã¯ãŒããå
¥åããã«ã·ã¹ãã ã®äœ¿çšããããã¯ããã¹ã¯ãªãŒã³ã»ãŒããŒãšãšãã«èªã¿èŸŒãããšãææ¡ããŸããã å¥ã®ãŠãŒã¶ãŒããã°ã€ã³ãããå ŽåãããŠãŒã¶ãŒåãæ¿ããã¹ã¯ãªãŒã³ã»ãŒããŒãã¿ã³ã䜿çšããå¿
èŠããããŸãã
çµè«ãšããŠãArjanã¯æ¬¡ã®ããã«è¿°ã¹ãŠããŸããããããŒããé«éåãããã«ãšã©ãŸããªãã§ãã ããã ããã¯åé¡ã®èª€ã£ã説æã§ãã é©åãªã¿ã¹ã¯ã¯ããããŠã³ããŒããé«éåãããããšã§ãã ãŸããã©ãããããã§äœããã®ã¢ãžã¥ãŒã«ãŸãã¯sendmailãå¿
èŠã«ãªãããããã¹ãŠã®ãŠãŒã¶ãŒãåŸ
ãããªãã§ãã ããã ãŠãŒã¶ãŒãå®éã«äœ¿çšããåã ãæ¯æãããã«ããŸãã ãã£ã¹ããªãã¥ãŒã·ã§ã³ã®éçºè
ã¯ãinitrdãã£ã¹ããªãã¥ãŒã·ã§ã³ãšéinitrdãã£ã¹ããªãã¥ãŒã·ã§ã³ãå¥ã
ã«äœæããªãã§ãã ãããã圌ã¯åŸã§èšããŸããããã«ãŒãã«ã¯initrdãªãã§èµ·åãã/ sbin / initãèŠããªãå Žåã«ã®ã¿äœ¿çšããå¿
èŠããããŸãã«ãŒããã¡ã€ã«ã·ã¹ãã ïŒãã
PowerTOPã¯ãLinuxãœãããŠã§ã¢ã®ãã¹ãŠã®åéã§ãšãã«ã®ãŒãç¯çŽããããã«ãããŸããŸãªå€æŽãåŒãèµ·ãããŸããã
å³ 5
äŒè°ã¯éææ¥ã«çµäºããŸããïŒã¬ããŒãã¯ç«ææ¥ã«è¡ãããŸããïŒãäŒè°é·ã®Kyle McMartinã¯ãFedoraãšUbuntuã®äž¡æ¹ãããŠã³ããŒãããã»ã¹ã®äžåçãªé
延ãä¿®æ£ããææãšæ¿èªãããããããšè¿°ã¹ãŸããã