å¶ç¶ãæ°é±éåãæšå¹Žã®éæãªããŒãžå
±æã«é¢ããSystem32ã®é¢é£èšäºãå¶ç¶èŠã€ããŸãããVCAP-DCAã®æºåã¹ã±ãžã¥ãŒã«ãäžæããvSphereã®å®å
šã«æªç¥ã®ã¡ã¢ãªç®¡çãã¯ãããžãŒã«æ²¡é ããããã«ãªããŸãããæ£ç¢º-TPSã§ã System32ã®ååã¯ãã¡ã¢ãªãæäœããäžè¬çãªååã§ããTPSæäœã¢ã«ãŽãªãºã ã®æŠèŠãéåžžã«ç¥çã«èª¬æããŸããããåæã«ãŸã£ããæ£ããçµè«ãäžããŸããã§ããã åãèšäºã«ãããšãã©ãŒãžããŒãžã䜿çšããå ŽåãTPSãã¯ãããžãŒãæ©èœããªããšããäºå®ã«ãããããããesxtopã®é«ãSHRDå€ã«ã€ããŠèª°ãåçããªãã£ãã³ã¡ã³ãã®è³ªåã«ããã«åœæããŸããã äžè¬ã«ãçŸããçè«ãšå®è·µã®éã«ã¯é倧ãªççŸãèŠã€ãããŸããã
Vmwareãã©ãŒã©ã ã§4ã5æ¥éæãäžããWikiã 西æŽã® ããã¬ãŒãèªãã åŸãé ã®äžã«äœãããããã³ã¡ã³ãããã®è³ªåã«çããããšãã§ããŸããã ã©ããããããç§ã®æ°é®®ãªç¥èãåçåããããã«ãè±èªã®ããã°ã§ãã®ãããã¯ã«é¢ããããã€ãã®èšäºãæžãããšã«ããŸããã ãŸãããã®ãããã¯ã«é¢ããæ°ããèšäºã®ããã«HabrãæäŸããŸããããé©ããããšã«ã2010幎以æ¥ãç§ã¯æ°ãããã®ãäœãçºèŠããŠããŸããã ãããã£ãŠãHabrãåžžã«èªã¿ãã³ã¡ã³ãã«ç©æ¥µçã«åå ããŠããã©ã³ã¹ãã¢ã¬ã³ãããŒãžå
±æã«é¢ããç¬èªã®èšäºãšãNehalem / Opteronãã¡ããªãŒã®ããã»ããµãæèŒããESXïŒiïŒ4.1ãã€ã³ã¹ããŒã«ãããŠããã·ã¹ãã ã§ã®äœ¿çšã®ãã¥ã¢ã³ã¹ã翻蚳ããæ©äŒãåŸãããã«æ±ºããŸããã
èšäºãé·ãããããæ°ã¯ãªãã®ã§ãïŒç¹ã«vSphere管çè
ã®å ŽåïŒæåã«èšäºãèªãã§ãæåã«æäŸãããªã³ã¯ãèªãããšã匷ããå§ãããŸãã ããããããã§ããããããªããšãç¹°ãè¿ããŸãã
TPSã¯äœã®ããã«ããã®ã§ããïŒ
çãã¯éåžžã«ãããµãããã®ã§ããRAMãç¯çŽããä»®æ³ãã·ã³ã«ãã¹ãèªäœã«ãããããå€ãã®ã¡ã¢ãªã衚瀺ãããããããé«ãã¬ãã«ã®çµ±åãæäŸããŸãã
圌ã¯ã©ã®ããã«åããŠããŸããïŒ
æŽå²çã«ãx86ã·ã¹ãã ã§ã¯ããã¹ãŠã®ã¡ã¢ãªã¯4 KBãããã¯ãããããããŒãžã«åå²ãããŠããŸãã åãOSãåããåãESXãã¹ãã§20å°ã®ä»®æ³ãã·ã³ïŒVMïŒãå®è¡ããŠããå Žåããããã®VMã«ã¯å€ãã®åäžã®ã¡ã¢ãªããŒãžãããããšã容æã«æ³åã§ããŸãã ESXãã¹ãäžã®åäžã®ããŒãžãèŠã€ããããã«ãTPSããã»ã¹ã60åã®åšæã§èµ·åãããŸãã ã¡ã¢ãªå
ã®ãã¹ãŠã®ããŒãžãå®å
šã«ã¹ãã£ã³ããåããŒãžã®ããã·ã¥ãèšç®ããŸãã ãã¹ãŠã®ããã·ã¥ã1ã€ã®ããŒãã«ã«è¿œå ãããã«ãŒãã«ã«ãã£ãŠäžèŽããã§ãã¯ãããŸãã ããã·ã¥è¡çªãšåŒã°ããåé¡ãåé¿ããããã«ãåãããã·ã¥ãæ€åºãããšãã«ãŒãã«ã¯å¯Ÿå¿ããããŒãžããããããšã«ãã§ãã¯ããŸãã ãããŠããããã100ïŒ
åäžã§ããããšã確èªããåŸã«ã®ã¿ãã«ãŒãã«ã¯ããŒãžã®1ã€ã®ã³ããŒãã¡ã¢ãªã«æ®ããåé€ãããããŒãžãžã®ãã¹ãŠã®åŒã³åºãã¯æåã®ã³ããŒã«ãªãã€ã¬ã¯ããããŸãã VMã®ããããããã®ããŒãžã®äœããå€æŽããããšã決å®ããå ŽåãESXã¯å
ã®ããŒãžã®å¥ã®ã³ããŒãäœæããVMãæ¢ã«ããã䜿çšã§ããããã«ããå€æŽã®ãªã¯ãšã¹ããéä¿¡ããŸãã ãããã£ãŠãVmwareã®çšèªã§ã¯ããã®ã¿ã€ãã®ããŒãžã¯ã³ããŒãªã³ã©ã€ãïŒCOWïŒãšåŒã°ããŸãã æã«ã¯æ°çŸã®ã¬ãã€ãã®RAMãæèŒããææ°ã®ãµãŒããŒã§ã¡ã¢ãªãã¹ãã£ã³ããããã»ã¹ã«ã¯éåžžã«é·ãæéããããå Žåããããããããã«çµæãæåŸ
ããããšã¯ã§ããŸããã
NUMAããã³TPS
NUMAã¯ãããã»ããµéã§ã¡ã¢ãªã¢ã¯ã»ã¹ãå
±æããããã®ããªãèå³æ·±ãæè¡ã§ãã 幞ããªããšã«ãESXã®ææ°ããŒãžã§ã³ã¯ååã«ã¹ããŒãã§ãããå¹ççãªNUMAã·ã¹ãã ã§ã¯TPSã¯NUMAããŒãå
ã§ã®ã¿åäœããããšãç¥ã£ãŠããŸãã ååãšããŠãESXã§VMkernel.Boot.sharePerNodeã®å€ã調æŽãããšãåã
ã®NUMAããŒãã§ã¯ãªããã¡ã¢ãªå
šäœå
ã®ããŒãžãTPSã§æ¯èŒã§ããŸãã ãã®å Žåãããé«ãSHAREDã¡ã¢ãªå€ãéæã§ããããšã¯æããã§ãããé倧ãªããã©ãŒãã³ã¹äœäžã®å¯èœæ§ãèæ
®ããå¿
èŠããããŸãã ããšãã°ãESXãã¹ãã«4ã€ã®Xeon 5560ããã»ããµãã€ãŸã4ã€ã®NUMAããŒãããããããããã«ã¡ã¢ãªããŒãžã®åäžã®ã³ããŒãå«ãŸããŠãããšããŸãã TPSãæåã®ããŒãã«1ã€ã®ã³ããŒãæ®ããæ®ãã®3ã€ãåé€ããå Žåããããã®3ã€ã®ããŒãã§åäœããVMã®ãããããç®çã®ã¡ã¢ãªããŒãžãå¿
èŠãšãããã³ã«ã3ã€ã®ããã»ããµãããŒã«ã«ããã³éåžžã«é«éãªã¡ã¢ãªãã¹ãä»ããŠã¢ã¯ã»ã¹ããå¿
èŠããªãããšãæå³ããŸãããããäžè¬çã§é
ãã ãã®ãããªããŒãžãå€ãã»ã©ãå
±æãã¹ã«æ®ã垯åå¹
ãå°ãªããªããããä»®æ³ãã·ã³ã®ããã©ãŒãã³ã¹ãããã«äœäžããŸãã
ãŒãããŒãž
vSphere 4.0ã§å°å
¥ãããåªããæ°æ©èœã®1ã€ã¯ããŒãããŒãžèªèã§ããã ååãšããŠãããã¯éåžžã®ããŒãžã§ãããæåããæåŸãŸã§ãŒãã§åããããŸãã Windows VMããªã³ã«ãªããã³ã«ããã¹ãŠã®ã¡ã¢ãªããªã»ãããããŸããããã«ãããOSã¯å©çšå¯èœãªã¡ã¢ãªã®æ£ç¢ºãªãµã€ãºãå€æã§ããŸãã ESXã¯ä»®æ³ãã·ã³ã§ãã®ãããªããŒãžãå³åº§ã«æ€åºã§ãããŒãããŒãžã«ç©çã¡ã¢ãªãå²ãåœãŠãŠTPSäžã«ããããåé€ããç¡çšãªããã»ã¹ã®ä»£ããã«ãESXã¯ãã®ãããªããŒãžããã¹ãŠåäžã®ãŒãããŒãžã«å³åº§ã«ãªãã€ã¬ã¯ãããŸãã esxtopãå®è¡ããæ°ããèµ·åãããVMã®ã¡ã¢ãªå€ã確èªãããšãZEROå€ãšSHRDå€ãã»ãŒåãã§ããããšãããããŸãã
ãã ãããã®æ°ãããã°ãããæ©èœã§ããESX 4.0ïŒããã³ãã以åïŒã¯ãEPTïŒIntelïŒãŸãã¯RVIïŒAMDïŒãã¯ãããžãŒãæèŒããããã»ããµãŒã§ã®ã¿äœ¿çšã§ããããšã«æ³šæããŠãã ããã Kingstonã®Webãµã€ãã«ã¯ããã®ããŒãã«é¢ããåªããèšäºã2 ã€ãããŸãïŒ ããŒã1 ã ããŒã2 ïŒã èŠããã«ãæ°ããããã»ããµã§ç©çã¡ã¢ãªãå²ãåœãŠãã«ãŒãããŒãžãèªèããæ¹æ³ã瀺ããŠç€ºããŸãããå€ãããã»ããµã§ã¯ç©çã¡ã¢ãªãå²ãåœãŠãããTPSãå®å
šã«æºããããå Žåã«ã®ã¿äœ¿çšæžã¿ç©çã¡ã¢ãªã®åæžãéå§ãããŸãã éåžžã®vSphereãã¡ãŒã ã§ã¯ãããã¯ååçã«éèŠã§ã¯ãããŸããããVDIã€ã³ãã©ã¹ãã©ã¯ãã£ã§ã¯ãæ°çŸå°ã®ä»®æ³ãã·ã³ãåæã«èµ·åã§ãããããããã¯äŸ¿å©ã§ãã
ãŒãããŒãžã®TPSã®æ©èœã
1 Windows OSã«ã¯ãããã¡ã€ã«ã·ã¹ãã ãã£ãã·ã³ã°ããšåŒã°ããæè¡ããããŸãïŒååãšå®çŸ©ã®ç¿»èš³ã«èª€ããããå Žåã¯ãç³ãèš³ãããŸããïŒã MSã®å®çŸ©ã䜿çšãããšãããã¡ã€ã«ã·ã¹ãã ãã£ãã·ã³ã°ã¯ãæè¿äœ¿çšããæ
å ±ããã°ããã¢ã¯ã»ã¹ããããã«ä¿åããã¡ã¢ãªé åã§ãããšèšããŸãã ãã®ãã£ãã·ã¥ã¯ã«ãŒãã«ã®ã¢ãã¬ã¹ç©ºéã«ããããã32ãããã·ã¹ãã ã§ã¯ããµã€ãºã¯1ã®ã¬ãã€ãã«å¶éãããŠããŸãã ãã ãã64ãããã·ã¹ãã ã§ã¯ããã®ãµã€ãºã¯1ãã©ãã€ãã«éããŸãïŒ èšŒæ ïŒã ååãšããŠããã®ãã¯ãããžãŒã¯ããã©ãŒãã³ã¹ã«éåžžã«åœ¹ç«ã¡ãŸãããä»®æ³ãã·ã³ãããã倧ããªããŒãžïŒ2ã¡ã¬ãã€ãïŒããŒãã®å Žåãesxtopã®SHRDå€ã¯ãŒãã«ãªããŸãã
äžèšã®ã¹ã¯ãªãŒã³ã·ã§ããã¯ãWindows 2008 R2ä»®æ³ãã·ã³ãèµ·åããçŽåŸã®esxtopã®å€ã瀺ããŠããŸãããã30ååŸã«esxtopã瀺ãããã®ã¯æ¬¡ã®ãšããã§ãã
ãã®ä»®æ³ãã·ã³ã®ã¿ã¹ã¯ãããŒãžã£ãŒã§ã¯ã空ãã¡ã¢ãªãã©ãã ããããïŒãŒãïŒãç°¡åã«ç¢ºèªã§ããŸãã
æ®å¿µãªããããããã©ãããŠãããªãã®ããšããçç±ã«ã¯è³ããŸããã§ãããããã¡ã€ã«ã·ã¹ãã ã®ãã£ãã·ã³ã°ã¯ã¡ã¢ãªãžã®é£ç¶çãªæžã蟌ã¿ãšããŠã§ã¯ãªãããã®ããŸããŸãªé åã«çºçããããã§ãã
2 ã ä»®æ³ãã·ã³ã®ã¡ã¢ãªããŒãžã®ãªã»ããã¯ããªã³ã«ãªã£ãŠããå Žåã«ã®ã¿çºçããŸãã æšæºã®åèµ·åã§ã¯ãããŒãžã¯ãŒãã«ãªã»ãããããŸããã
倧ããªããŒãž
ESXã®ã«ãŒãã«ã䜿çšããã©ãŒãžããŒãžã¯2ã¡ã¬ãã€ãã§ãã ç©çã¡ã¢ãªã§2ã€ã®åäžã®å€§ããªããŒãžãèŠã€ããå¯èœæ§ã¯äžè¬ã«ã»ãŒãŒãã§ãããããESXã¯ããããæ¯èŒããããšããããŸããã EPT / RVIã§æ°ããããã»ããµã䜿çšããå Žåãããã¯ãã¹ããå¯èœãªéã倧ããªããŒãžãç©æ¥µçã«äœ¿çšããããšããããšãæå³ããŸãã ãã®ãããªãã¹ãã®SHRDå€ãèŠããšããã®äœãå€ã«äžæå¿«ãªé©ããèŠããŸãããããã§ãããªãã®éã§ãã 70 GBãå²ãåœãŠãããå®çšŒåãã¹ãã§ã¯ãçŽ4 GBã«SHRDããããŸããã ã¡ãªã¿ã«ãããã¯èšäºã®ã³ã¡ã³ãã®äžã§æãèå³æ·±ã質åã®1ã€ã§ããããã®ãããã¯ããç§ã®é¢å¿ãå§ãŸããŸããã ããã§ããããã®ããŒãžããŒãããŒãžã§ããããšãããããç¡ç¥ãšåœãŠæšéã§ã²ã©ãèŠãããããŸããã
ãã®äœãã¬ãŒãã¯ãTPSãESX 4.0ãã¹ãã§ã®åäœãåæ¢ãããšäººã
ãå€æãããšããåçŽãªçç±ã«ãããåœåVmwareãã©ãŒã©ã ã§æ¿ããè°è«ãå·»ãèµ·ãããŸããã Vmwareã¯ããã«ã€ããŠã®èª¬æãæçš¿ããããåŸãŸããã§ããã
ããã§ãããã¹ããã©ãŒãžããŒãžãã¢ã¯ãã£ãã«äœ¿çšããŠããå Žåã§ããTPSã¯ãŸã£ããã¹ãªãŒãããŸããã 圌ã¯ãŸããåäžã®4 kBããŒãžã®ã¡ã¢ãªãæŽç¶ãšã¹ãã£ã³ããææãããã°åé€ã§ããŸãã éè€ããããŒãžãèŠã€ãããšããã«ãããã¯ããŒã¯ïŒãã³ãïŒãããã«çœ®ããŸãã ESXã¡ã¢ãªã§äœ¿çšãããå€ã94ïŒ
ã«éãããšããã¹ãã¯ããã«å€§ããªããŒãžãå°ããªããŒãžã«åå²ããæéã®ã¹ãã£ã³ãç¡é§ã«ããŸããïŒTPSã¯æ¢ã«ããã¯ããŒã¯ãèšå®ããŠããŸãïŒãåã³åãããŒãžã®åé€ãéå§ããŸãã ãŸã ãã®ãã€ã³ãã«éããŠããªãå Žåã¯ãåãesxtopã®[COWHïŒã³ããŒãªã³ã©ã€ããã³ãïŒ]ãã£ãŒã«ãã§ã倧ããªããŒãžãå°ããªããŒãžã«åå²ããåŸã®ç¯çŽéã確èªã§ããŸãã
ç¹°ãè¿ãã«ãªããŸãããå€ãããã»ããµãšæ°ããããã»ããµã®éã§å€§ããªããŒãžãæ±ãéã®éãã«æ³šæãåèµ·ããããšæããŸãã Vmwareèªäœã«ã¯ãããŒãžã§ã³3.5以éã®ã©ãŒãžããŒãžã®ãµããŒããå«ãŸããŠããŸãã VMwareã®ã ã©ãŒãžããŒãžããã©ãŒãã³ã¹ ãããã¥ã¡ã³ãã«ãããšãä»®æ³ãã·ã³ã®OSãã©ãŒãžããŒãžã䜿çšããå ŽåãESXãã¹ãã¯ç©çã¡ã¢ãªã«ã©ãŒãžããŒãžããã®VMå°çšã«å²ãåœãŠãŸãã ãã ããåãä»®æ³ãã·ã³ãEPT / RVIããã»ããµãæèŒããESXãã¹ãã§å®è¡ãããŠããå ŽåãVMã®å€§èŠæš¡ããŒãžã®ãµããŒãã«é¢ä¿ãªããESXã¯ç©çã¡ã¢ãªå
ã®å€§èŠæš¡ããŒãžã䜿çšããŸããããã¯ãåãããã¥ã¡ã³ãã§ç¥ãããŠããããã«ãããã»ããµããã©ãŒãã³ã¹ã®å€§å¹
ãªåäžã«ã€ãªãããŸãã
èå³æ·±ãããšã«ãWindows 2008R2ã®90ïŒ
ãå転ãããå€ãããã»ããµãšESX 4.1ãåãããã¹ãã®ãã¢ã§ã¯ãéåžžã«é«ãSHRDãèŠãããŸãã æ®å¿µãªãããå€ãããã»ããµã§ã®ã©ãŒãžããŒãžã®ãµããŒãã®ä»çµã¿ã«é¢ãã詳现ãªããã¥ã¡ã³ãã¯èŠã€ãããŸããã§ãããã©ã®ãããªæ¡ä»¶äžãã©ã®OSãªã©ã§ã©ãŒãžããŒãžã䜿çšããããã§ãã ã ããç§ã«ãšã£ãŠã¯ãŸã 空çœã®å Žæã§ãã è¿ãå°æ¥ãå€ãããã»ããµãæèŒããESX 4.1ãã¹ãã§10åã®Windows 2008 R2ãå®è¡ããã¡ã¢ãªå€ã確èªããããšããŸãã
å€ããå°ãªããããã ããåŠãã ãšããç§ã¯å°æããŸãã-Nehalemããã»ããµãæèŒãããã¹ãã§å€§ããªããŒãžã®ãµããŒããæåã§ãªãã«ãããšã©ããªããŸããïŒ ä¿åãããã¡ã¢ãªã¯ã©ãã ã衚瀺ãããããã©ãŒãã³ã¹ã¯ã©ãã ãäœäžããŸããïŒ ããŸããé·ãéèããªããã°ãªããªãããš-ããªãã¯ãããããªããã°ãªããŸããããšç§ã¯èããç§ãã¡ã®æ¬çªãã¹ãã®1ã€ã§å€§ããªããŒãžã®ãµããŒãããªãã«ããŸããã åœåããã®ãã¹ãã«ã¯70 GBã®å²ãåœãŠãããã¡ã¢ãªãš4 GBã®å
±æã¡ã¢ãªããããŸããïŒãããããã§ãããããã¯ãŒãããŒãžã§ãïŒã å¹³åããã»ããµäœ¿çšçã25ïŒ
ãè¶
ããããšã¯ãããŸããã§ããã 倧ããªããŒãžããªãã«ãã2æéåŸãå
±æã¡ã¢ãªã®å€ã¯32 GBã«å¢å ããããã»ããµã®è² è·ã¯åãã¬ãã«ã®ãŸãŸã§ããã ãããã4é±éãçµã¡ãŸããããããã©ãŒãã³ã¹ã®äœäžã«é¢ããèŠæ
ã¯äžåºŠããããŸããã
ãããŠæåŸã«ãç§ã®çµè«
ååãšæ
å ±ãå
±æããåŸã圌ãã¯ããã¹ããå¿
èŠã«å¿ããŠããããç¡å¹ã«ããå Žåã倧ããªããŒãžã®ãµããŒãããªãã«ããããšã§äžäœäœãããŸããïŒããšç§ã«å°ããŸããã ãããŠãããã«çããç¥ã£ãŠããŸãã-倧ããªããŒãžã®ãµããŒããããã©ã«ãã§ãªã³ã«ãªã£ãŠãããšãTPSã§ã¡ã¢ãªãç¯çŽã§ããå¯èœæ§ãååã«ç¢ºèªã§ãããESXãã¹ãã§ã®è¿œå ã®VMé
眮ãæ£ããèšç»ã§ãããçµ±åã®ã¬ãã«ãäºæž¬ã§ããŸããã vSphereãã¡ãŒã ã®ãªãœãŒã¹ã管çãããšããç¹ã§ã¯ç²ç®ã§ãã ãããããã³ã«ã³ãšããã³ã°ãªã©ã®vSphereã®ç¬¬äžäººè
ã¯ããå¿é
ããå¿
èŠã¯ãããŸããããTPSã¯å¿
èŠãªãšãã«æ©èœããåæã«ããã©ãŒãã³ã¹ã倧å¹
ã«åäžããŸãããšä¿èšŒããŸããã æ°æ¥åŸãç§ã¯åœŒãšä»®æ³åã®äžçã®ä»ã®åœå±ãšã®éã§çŽ æŽãããè°è«ãèŠã€ããŸãããããã¯ã倧ããªããŒãžããªãã«ãããšããç§ã®æ±ºå®ã®æ£ããã確èªããã ãã§ãã COWHå€ã䜿çšããŠãªãœãŒã¹ã®äœ¿çšãèšç»ã§ãããšèšã人ãããŸãããäœããã®çç±ã§ãã®å€ãåžžã«æ£ãããšã¯éããŸããã ãã®ã¹ã¯ãªãŒã³ã·ã§ããã¯ã3é±é倧ããªããŒãžãç¡å¹ã«ãªã£ãŠãããã¹ãã§å®è¡ãããŠããWindows 2003ãµãŒããŒã®1ã€ã®å€ã瀺ããŠããŸããSHRDå€ãšCOWHå€ã¯éåžžã«ç°ãªã£ãŠããŸãã
1é±éåãå¥ã®4ã€ã®ãã¹ããå¥ã®ãã¡ãŒã ã§å€§ããªããŒãžãç¡å¹ã«ããŸããããããã©ãŒãã³ã¹ã®äœäžã«æ°ä»ããŸããã§ããã ãã ããããã¯ãã¹ãŠåå¥ã§ããããã®ãããªæ±ºå®ãè¡ãéã«ã¯ããã¡ãŒã ããªãœãŒã¹ãä»®æ³ãã·ã³ã®è©³çŽ°ãèæ
®ããå¿
èŠããããŸãã
幞éã«ããã®èšäºãé¢çœããšæãã°ãå€ãäžä»£ãšæ°ããäžä»£ã®ããã»ããµéã®ã¡ã¢ãªç®¡çã®éãã«é¢ããå¥ã®èšäºã翻蚳ããããšæããŸãã