ã¯ããã« æè¡é¡§åã®satã§ããååã«å¼ãç¶ããEPYCãã·ã³ã®æ¤è¨¼ã«ã¤ãã¦ã®è©±ããã¾ããæå ã®EPYCãã·ã³(Super Micro AS-1023US-TR4)ã¯NUMAã¢ã¼ããã¯ãã£(å¾è¿°)ãæ¡ç¨ãã¦ã¾ããä»åã¯ãã®ãã·ã³ã«ãããNUMAãã¼ããã¾ããã ã¡ã¢ãªã¢ã¯ã»ã¹ã«é¢ãããã¼ã¿ãæ¡åãã¾ããã®ã§ããã®çµæããä¼ããã¾ãã NUMAã«ã¤ãã¦ç¥ã£ã¦ããããåãã®çµè« 2CPUããã±ã¼ã¸ããæãEPYCãã·ã³ã«ããã¦ã¯ãCPUããã±ã¼ã¸ãã¨ã«4ã¤ã®ãã¼ããåè¨8ã¤ã®ãã¼ãããã åãCPUããã±ã¼ã¸ä¸ã®ãªã¢ã¼ããã¼ãä¸ã®ã¡ã¢ãªã¸ã®ã¢ã¯ã»ã¹é度ã¯ãã¼ã«ã«ãã¼ãä¸ã®ã¡ã¢ãªã¸ã®ã¢ã¯ã»ã¹é度ã«æ¯ã¹ã¦1.7åç¨åº¦é ã å¥ã®CPUããã±ã¼ã¸ä¸ã®ãªã¢ã¼ããã¼ãä¸ã®ã¡ã¢ãªã¸ã®ã¢ã¯ã»ã¹é度ã¯ãã¼ã«ã«ãã¼ãä¸ã®ã¡ã¢ãªã¸ã®ã¢ã¯ã»ã¹é度ã«æ¯ã¹ã¦3.3åç¨åº¦é ã (è¨äºã§ã¯çç¥ããã)"numactl --in
CPUæ»æã®æ°ããªææ³ãBranchScopeããIntel製CPUã§å®è¨¼ï¼ã«ã¼ãã®ã¼ã¡ãã³å¤§å¦ãªã©ã®ç 究ãã¼ã ãçºè¡¨ ç±³ã«ã¼ãã®ã¼ã¡ãã³å¤§å¦ãªã©ã®ç 究ãã¼ã ãçºè¡¨ãããBranchScopeãã§ã¯ã1æã«çºè¦ãããSpectreãã¨åæ§ã«ããµã¤ããã£ãã«æ»æãä»æãã¦ã»ã³ã·ãã£ããªãã¼ã¿ãæµåºãããã ç±³ã«ã¼ãã®ã¼ã¡ãã³å¤§å¦ãªã©ã®ç 究ãã¼ã ããIntelãªã©ã®CPUã®èå¼±æ§ãçªãæ°ããªæ»æææ³ãBranchScopeãã«é¢ããè«æãçºè¡¨ããã1æã«çºè¦ãããSpectreãã¨å¼ã°ããèå¼±æ§ã¨åæ§ã®ä»çµã¿ã§ãIntelã®CPUããã»ãã¥ãªãã£æ©è½ã®ãSoftware Guard Extensionsï¼SGXï¼ãã«å¯¾ãã¦æ»æãéç¨ãããã¨ãå®è¨¼ããã¨ãã¦ããã è«æã«ããã¨ãBranchScopeæ»æã§ã¯ãç¾ä»£ã®CPUãæ§è½åä¸ã®ããã«å®è£ ãã¦ããåå²äºæ¸¬ã¦ãããï¼Branch Predic
Spectre/MeltDown ã®æ¦è¦ã¨å½±é¿ç¯å²2018/1/3 ã«CPUã«é¢ããèå¼±æ§ Spectre (ã¹ãã¯ã¿ã¼)/Meltdown (ã¡ã«ããã¦ã³) ã Google ã® "Project ZERO"ã«ãã£ã¦å ¬éãã話é¡ã«ãªã£ã¦ãã¾ããçºè¦ãããèå¼±æ§ã¯ 3 ã¤(Variant 1ï½3ã¨ã©ãã«ããã¦ãã¾ã)ã§ããã¡2ã¤ã Spectreã1ã¤ã Meltdown ã«åé¡ããã¾ãã 3 ã¤ã¨ã CPU æ§è½åä¸ã®ããã®ãææ©çå®è¡ (Speculative Execution)ãã¨ããã³ã³ã»ãããå®è£ ããä»çµã¿ (Branch Prediction/Out of Order Execution) ãåå ã ã¨å¤æãã¦ãã¾ããé·ãæéãäºæ¸¬ã誤ãããã«ææ©å®è¡ãããããã®éã«ãã¹ãªã¼ãããä¿è·ãããã¡ã¢ãªé åã®èªè¾¼ãæå³ãã¬ããã°ã©ã ã®å®è¡ãããããã®ã§ãã ãããã®èå¼±æ§ããµã¤ããã£
ããã¾ãã¦ããã§ã¨ããããã¾ãï¼ å»å¹´ã¯ AWS èªå®è©¦é¨ãå¶è¦ããã®ã§ãä»å¹´ã¯å®è·µã¹ãã«ãä»ä»¥ä¸ã«ç£¨ãã¦ãããã¨æãã¾ãã ãã¦ãæè¿ã® EC2 ã¤ã³ã¹ã¿ã³ã¹ã¯ Intel CPU ã®ããã»ããµã¼ã»ãã³ãã¼ãå ¬éããã¦ãã¾ããã§ãã M1, M2, C1 ã¨ãã£ãæ§ä¸ä»£ã¤ã³ã¹ã¿ã³ã¹ã§ã¯ CPU ã«ã°ãã¤ãããããå½ããå¤ãã®å·®ãæ¿ããã£ãã®ã¯è¨æ¶ã«æ°ããã¨ããã å½ããã® CPU ãåºãã¾ã§ stop â start ãç¹°ãè¿ãã¤ã³ã¹ã¿ã³ã¹ã¬ãã£ãæµè¡ãã¾ãã (ç¬) ä»å㯠AWS ã® CPU ã«ã¤ãã¦æ´å²ãæ¯ãè¿ãã¤ã¤ããã®æ¦ç¥ãèãã¦ã¿ã¾ããç©çã¬ã¤ã¤ã¼ãæèãããã¨ãã»ã¨ãã©ãªã AWS ã§ãããç©çã®ç¥èãªãã§ã¯æé«ã®ããã©ã¼ãã³ã¹ã¯å¾ããã¾ãããç¥ã£ã¦ããã¦æã¯ãªãã§ãããã ã¤ã³ã¹ã¿ã³ã¹ã¿ã¤ãã®ãªãªã¼ã¹ææã¯å ¬å¼ããã°ãEC2 ã®æ´å²ãã«è¼ã£ã¦ãã¾ãã®ã§åèã«ãã¦ãã ããã
ã¯ããã« cpumasks ã¯ãLinuxã«ã¼ãã«ãæä¾ããç¹å¥ãªæ¹æ³ã§ãã·ã¹ãã å ã®CPUã«é¢ããæ å ±ãæ ¼ç´ãã¾ãã cpumasks æä½ã«é¢ãã¦ãAPIãå«ãé¢é£ã®ã½ã¼ã¹ã³ã¼ãã¨ããããã¡ã¤ã«ã¯ä»¥ä¸ã®ã¨ããã§ãã include/linux/cpumask.h lib/cpumask.c kernel/cpu.c include/linux/cpumask.h å ã®ã³ã¡ã³ãã«ããããã«ãCPUãã¹ã¯ã¯ãã·ã¹ãã å ã®CPUã»ããã表ãã®ã«é©ããããããããï¼CPUçªå·ãã¨ã«1ã¤ã®ãããä½ç½®ï¼ãæä¾ãã¾ããCPUãã¹ã¯ã«ã¤ãã¦ã¯ã以åã« ã«ã¼ãã«ã®ã¨ã³ããªãã¤ã³ã ãæ±ã£ããã¼ãã® boot_cpu_init é¢æ°ã説æããé¨åã§å°ã触ãã¾ããããã®é¢æ°ã¯ãæåã®ãã¼ãCPUããªã³ã©ã¤ã³ãã¢ã¯ãã£ããªã©ã«ãããããæä½ãè¡ãã¾ãã set_cpu_online(cpu, true); s
ã¯ããã« Linux ã§æ¡åã§ããCPU使ç¨é(ç)ã®æ å ±ã¨ãã¦ã%user ã %sys çã«å ã㦠%steal ã¨ããéããããããã追å ãããã®ã¯ãä»®æ³åãåºã使ããã¯ããã10å¹´ãããåã ããããçè 㯠Xen ã調ã¹ã¦ãã¦æ°ã¥ããã®ã ãããã£ã¨åã«s390ã®ããã«è¿½å ãããã®ãããããªããå½æãESXã®å ´åãå«ãã¦èª¿ã¹ã¦ããã®ã ããæè¿ãKVMã®å ´åã«ã©ãããå®è£ ã«ãªã£ã¦ããã®ãããµã¨æ°ã«ãªã£ã¦è»½ã調ã¹ã¦ã¿ãã®ã§ã¡ã¢ã CPU使ç¨çã®è¨ç® ã¾ãæåã«ãsar ã vmstat ã mpstat çããã¾ãã¾ãªãã¼ã«ã§CPU使ç¨çãåå¾ãããã¨ãã§ããããã ããã©ã®ãããªæ å ±ãå ã«ãã©ã®ãããªè¨ç®ãè¡ã£ã¦ç®åºãã¦ããã®ãï¼ ã¾ããkernelå ã§ã¯boot以å¾ã®å種å®è¡ã¢ã¼ãã®CPUæéãåé¡ãã¦ç©ç®å¤ã¨ãã¦ä¿æãã¦ãããuser ã¢ã¼ããç¹æ¨©ã¢ã¼ããå²ãè¾¼ã¿å¦çã«ä½¿ã£ãæé..
移転ãã¾ãã http://please-sleep.cou929.nu/20071112.html
ããã«ã¡ããããã¾ã§ããã¹ãã£ãã¯åPCã®è³¼å ¥ã¯ã Core Mçãåºãã¾ã§è¦éããã¨æã£ã¦ããä»æ¥ãã®ããã§ãã å¼ç¤¾ã§ã¯ãMini Tech Talkãã¨ãã社å åå¼·ä¼ãéé±ã§éå¬ãã¦ããã®ã§ãããããã¨ã¯å¥ã«ããInfra Tech Talkãã¨ãã社å åå¼·ä¼ããåå¹´ãããåããæ¯æéå¬ãã¦ãã¾ãããããã¯ããã§ã»ã¼æ¯æã45-60åãããã®ã¹ã©ã¤ããä½ã£ã¦è©±ããã¦ãã¾ããä»ã¾ã§ã©ããã話ããã¦ãããã¨ããã¾ãã¨ãTCPã«é¢ãã話ãäºåãSSDã«é¢ãã話ãäºåãã¾ãããï¼InnoDBã«é¢ãã話ã ã¨è»½ã5-6æéãããã§ãããã§ãããããããããã¢ãã¯ãªã®ã§ããã£ã¨å¹ åºã人ã対象ã«è©±ããã¦ãã¾ãï¼ ä»ã¾ã§ã®è©±ã¯ã¡ãã£ã¨ç¤¾å åãã®å 容ã ã£ããã§ãããååéå¬ããã Infra Tech Talk ã§ã¯ã社å¤ã®æ¹ã«ãå¹ åºãèªãã§ããã ãã話ãã§ããã¨æãã¾ããã®ã§ããã®è³æã slides
ãã®æ稿ã¯ãç§ãå»å¹´OSCONã§è¡ã£ããã¬ã¼ã³ãã¼ã·ã§ã³ãåºã«ä½æãã¦ãã¾ãããã¬ã¼ã³ããã¯ç°¡æ½ã«ç·¨éãç´ãããã¬ã¼ã³å¾ã«ããã ããããã¤ãã®ãã£ã¼ãããã¯ã«å¿ããå½¢ã§è¨äºãæ¸ãã¦ãã¾ãã Goè¨èªã«é¢ãã¦ããè¨ãããã®ã¯ãGoè¨èªã¯ãµã¼ãã§ãã¾ãæ©è½ããéçãªãã¤ããªãå¼·åãªä¸¦è¡å¦çãé«ãããã©ã¼ãã³ã¹ãè¦ããããã¨ãããã¨ã§ãã ãã®æ稿ã§ã¯ããã®å¾åã®2ã¤ã®é ç®ã«é¢ãã¦ç¦ç¹ãå½ã¦ã¾ããããã°ã©ãã¨ã£ã¦Goè¨èªã¨ãã®ã©ã³ã¿ã¤ã ã¯ãã¹ã±ã¼ã©ãã«ãªãããã¯ã¼ã¯ãµã¼ããã¹ã¬ãã管çãããããã³ã°I/Oãæ°ã«ããã«æ¸ãã®ã«ã©ããªã«æå¹ãã説æãã¦ããã¾ãã å¹ççãªããã°ã©ãã³ã°è¨èªã«é¢ãã¦ã®è°è« æè¡çãªè©±ã«å ¥ãåã«ãGoè¨èªãã¿ã¼ã²ããã«ãããã¼ã±ããã説æãã2ã¤ã®è°è«ã«é¢ãã¦ã話ãããã¨æãã¾ãã ã ã¼ã¢ã®æ³å ç»åã¯ä»¥ä¸ããå¼ç¨ï¼ 2005å¹´5æã«Herb Sutteræ°ãæ¸ããDr
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}