(This post is also available in English.) ãã®è¨äºã¯ Linux memory management at scale ã èè ã® Chris Down ããã®è¨±å¯ ãå¾ã¦ Hiroaki Nakamura ãæ¥æ¬èªã«ç¿»è¨³ãããã®ã§ãã åæã®ã©ã¤ã»ã³ã¹ 㯠CC BY-SA 4.0 ã§ããã翻訳ã®ã©ã¤ã»ã³ã¹ãåãã CC BY 4.0 ã¨ãã¾ãã cgroup2 ããã¸ã§ã¯ãã§ã®ç§ã®ä»äºã®ä¸é¨ã¨ã㦠Linux ã·ã¹ãã ã®ãªã½ã¼ã¹ç®¡çã«ã¤ãã¦ã¨ã³ã¸ãã¢ã¨è©±ããã¨ã«å¤ãã®æéãããã¦ãã¾ããã ãããã®ä¼è©±ãéãã¦ã©ãã©ãæããã«ãªã£ã¦ãã 1 ã¤ã®äºå®ã¯å¤ãã®ã¨ã³ã¸ãã¢ã¯ãã·ã㢠SRE ãã¡ã§ãããã Linux ã®ã¡ã¢ãªç®¡çã«ã¤ãã¦ããã¤ãã®ãããã誤解ãæã£ã¦ãã¦ãããã¦ãããå½¼ãããµãã¼ããããµã¼ãã¹ãã·ã¹ãã ãæ¬æ¥ç¢ºå®ã«ç¨¼åãããå¹çç
Windows Subsystem for Linuxï¼ä»¥ä¸ãWSLï¼ã§ã¯ãLinuxãã£ã¹ããªãã¥ã¼ã·ã§ã³ãWSLç°å¢å ã§å®è¡ããããUbuntuã®æ°ãããªãªã¼ã¹ã§ããUbuntu 18.04ã®é å¸ãå§ã¾ã£ã¦ãããä»åã¯ãããã¾ã§ä½¿ããã¦ããUbuntu 16.04ã¨ã®éããªã©ã解説ããã¢ããã°ã¬ã¼ããã¹ããã©ããã«ã¤ãã¦èããã Ubuntuã®ãªãªã¼ã¹ã¯ååã1å¹´2å é·æãµãã¼ãçã¯2å¹´ã«1å Ubuntuã¯å¹´ã«2åã4æã¨10æã«æ°ãããªãªã¼ã¹ãå ¬éãã¦ããããªãªã¼ã¹ã«ã¯ãé常çãã¨ãLTSï¼Long Term Supportï¼çãããããé常çã®ãªãªã¼ã¹ã¯åå¹´ã®1åã§ããµãã¼ãæéã¯ãªãªã¼ã¹ãã¦ãã9ãµæãååãæ°ãããªãªã¼ã¹ãåºããã³ã«æ´æ°ãã¦ãããã¨ãæ³å®ãã¦ãããããã«å¯¾ãã¦ãLTSçã¯ã2å¹´ã«1åãªãªã¼ã¹ããããµãã¼ãæéã¯5å¹´ã¨ãªã£ã¦ããããªããé常çã¨LTSçã®ãªãªã¼
glances ã¤ã³ã¹ãã¼ã« 使ãæ¹ ctop ã¤ã³ã¹ãã¼ã« 使ãæ¹ gtop ã¤ã³ã¹ãã¼ã« 使ãæ¹ htop ã¤ã³ã¹ãã¼ã« 使ãæ¹ vtop ã¤ã³ã¹ãã¼ã« 使ãæ¹ cpustat ã¤ã³ã¹ãã¼ã« 使ãæ¹ GitHubãçºãã¦ãããtopã®ä»£ããã¨ãã¦ä½¿ããããªã³ãã³ããè²ã ãã£ãã®ã§è©¦ãã¦ã¿ãã glances Glances - An Eye on your systemï¼å ¬å¼ãã¼ã¸ï¼ github.com glancesã¯è²ã ãªæ å ±ã表示ã§ããã¢ãã¿ãªã³ã°ãã¼ã«ã ã¤ã³ã¹ãã¼ã« pipã§ã¤ã³ã¹ãã¼ã«ã§ããã®ã§ä¸è¨ã³ãã³ããå®è¡ã $ pip install glances 使ãæ¹ glancesã§èµ·åã§ãããå³ã®ããã«è²ã ãªæ å ±ãã¾ã¨ãã¦è¡¨ç¤ºå¯è½ã ãã©ã¦ã¶ã§ç¢ºèªã§ããWebãµã¼ãã¢ã¼ããããªã¢ã¼ããã·ã³ãç£è¦ããã¯ã©ã¤ã¢ã³ãï¼ãµã¼ãã¢ã¼ããããããã ã ctop ctopï¼å ¬å¼ãã¼ã¸
Netflixã®ããã©ã¼ãã³ã¹ã¨ã³ã¸ãã¢ã§ããçè ããã®ãtopã³ãã³ããªã©ã§è¡¨ç¤ºãããCPU使ç¨ç(%CPU)ã¯ããã¾ãæ¬å½ã®ä½¿ç¨çã表ãã¦ãããããã¥ã¼ãã³ã°ãªã©ã®ããã®ææ¨ã¨ãã¦ä½¿ããªãã¨ããææããªããããªã£ã¦ãã¾ã£ãã®ããä½ãè¦ãã°æ¬å½ã®CPU使ç¨çããããã®ãããããããã解説ããè¨äºã ç§ãã¡ã¿ããªãCPU使ç¨çã¨ãã¦ä½¿ã£ã¦ããææ¨ã¯é常ã«èª¤è§£ãæããã®ã§ããã®ç¶æ³ã¯æ¯å¹´æªåãã¦ãã¾ããCPU使ç¨çã¨ã¯ä½ã§ããããï¼ããã»ããµã¼ãã©ã®ãããå¿ãããï¼éãã¾ããCPU使ç¨çã表ãã¦ããã®ã¯ããã§ã¯ããã¾ãããç§ã話ãã¦ããã®ã¯ããã¡ãã¡ã§ããããã人ãã¡ã«ãããããç£è¦è£½åã§ããããã¯top(1)ã§ã使ããã¦ããã"%CPU"ã¨ããææ¨ã®ãã¨ã§ãã ããªãã®èãã¦ããã§ãããCPU使ç¨ç90% : å®é : "stalled"(訳注 : 以ä¸ã¹ãã¼ã«ã¨è¨ã)ã¨ã¯ãããã»ããµã¼ã
RedHatç³»ã«ãããRPMããã±ã¼ã¸ãæ±ãYUMãDebianç³»ã«ãããDEBããã±ã¼ã¸ãæ±ãAPTããããã¯ãµã¼ãã¼ç®¡çã«ããã¦éè¦ãªããã§ããã絶å¦ãªåº¦åãã§ããããªãã«æ±ã£ã¦ãããã¨ãªãã¨ãéç¨åºæ¥ã¦ãã¾ãæãããã¾ãããã®ããä»ä¸åº¦ããããªæããä»é¢¨ã®ã¹ã¿ã³ãã¼ããããªãã£ãããï¼ï½·ï¾ï½¯ ã¨ããæ§æã説æãã¦ã¿ã¾ãã ã¶ã£ã¡ããããããããã¨ãªããã¿ã®éåä½ãªã®ã§ãã¿ã¤ãã«ã«ä¸é§ãå±¥ããã¾ããã ããããããã±ã¼ã¸ã¯å¿ è¦ãªã®ã è¨ãã¾ã§ããªãå¿ é ã§ããçç±ã¯ãã¤ã³ã¹ãã¼ã«ç©ã®ãã¡ã¤ã«ç®¡çã容æã«ãªãã®ã¨ãã¤ã³ã¹ãã¼ã«æéãç縮ã§ããããã§ããæ¢åã®ããã±ã¼ã¸ã§configureãªãã·ã§ã³ãç©è¶³ããªãæããRPMããã±ã¼ã¸ãåå¨ããªãå ´åã¯ä½æãããã¨ã«ãªãã¾ãã æè¿ã¯ãããã¸ã§ãã³ã°ã»ãã¼ã«ã«ãã£ã¦å ¨ã¦èªååã§ããã®ã§ãè¶ ç°¡ç´ ãªã³ã³ãã¤ã«ã®ãã®ã¯ã¬ã·ãã«è½ã¨ãè¾¼ãã§çµããã«ãã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}