Mackerelãã¼ã ã®ã¨ã³ã¸ãã¢ã®id:itchynyã§ãã ãmackerel-agentãå ¥ããã¨loadavgã7æéãã¨ã«ä¸æããã å æ¥ããã®ãããªåãåãããè¤æ°ã®ã客ãã¾ããåãã¾ãããç§ãå®é¨ãã¦ã¿ãã¨ããã確ãã«åç¾ãã¾ãããEC2 t2.microã«mackerel-agentãå ¥ãã¦ç°¡åãªãã°ç£è¦ã¨ããã»ã¹ç£è¦ãè¨å®ããæ°æ¥æ¾ç½®ãã¾ããã 確ãã«ãç´7æéãã¨ã«loadavgãä¸æãã¦ãã¾ãããã®å¨æã®cronã®è¨å®ã¯ãã¦ããããã¾ãmackerel-agentå é¨ã§ã7æéãã¨ã«è¡ãå¦çã¯ããã¾ããããããããã©ã°ã¤ã³ãå¤ãå ¥ããã»ã©loadavgã®ãã¼ã¯å¤ãä¸ããã¾ãã æ¬ã¨ã³ããªã¼ã§ã¯ããã®ç¾è±¡ã®åå ã«ã¤ãã¦èª¬æãã¾ãã loadavgãä¸æããåå ã調ã¹ãã«ã¯ãã¾ãloadavgèªä½ãã©ãè¨ç®ããã¦ããããç¥ãå¿ è¦ãããã¾ãã ã¾ãã¯ãLinuxãloada
å æ¥ã諸ã ã®é½åã§é éã«ãããã¹ãç°å¢ã®ãµã¼ã(Linux)ã®ã«ã¼ãã«ãã©ã¡ã¼ã¿ãå¼ã£ã¦ããã®ã§ãããã¡ãã£ã¨è¨å®(ã¡ã¢ãªã¾ãã)ãã¤ãããã¦ãã¾ãï½ãã³ãã³ãå®è¡ã¨ãããforkã§ããªããªã£ã¦ãã¾ã£ã(Cannot allocate memory...)ã ãã§ãshutdownã³ãã³ããå®è¡ã§ããªããªã£ãã®ã§ãç´ããã¨æã£ãã®ã§ãããè²ã å¼ã£ãï¼æéããªãã£ããã¨ããããä¸æ¦OSãåèµ·åãã¡ãããããªãã¨(æ± ããé éã«ãããµã¼ããªã®ã§ãç©ççãªé»æºã¹ã¤ããON/OFFãã§ããªã(å³å¯ã«ã¯åºæ¥ãç°å¢ã§ã¯ãã£ãã®ã§ããããã®ãµã¼ãã¯ããã«å ¥ã£ã¦ãªãã£ãï½)ãã®ã§ãSysRqãã¼ãéããã¨ã«ããã ããæ¹ å°ãç¡çç¢çæã¯ããã¾ããã # echo b > /proc/sysrq-triggerãå®è¡ããã¨ãå¼·å¶çã«ãªãã¼ãããããã¾ãã ãã ãããã¡ã¤ã«ã·ã¹ãã ã®syncã¨ãumount
Linux Daily Topics 2010å¹´11æ18æ¥"ãã©ã¯ã«ããã"ã«Linusã大åã³ï¼Linuxã«ã¼ãã«ãé«éåããã233è¡ã®ã³ã¼ã Linus Torvaldsæ°ã¨ãã人ã¯ãå°ãªãã¨ãã¡ã¼ã«ã®ä¸ã§ã¯ãããªãã¯ã£ããã¨ææ ã表ã«åºãã誰ãorä½ãã«å¯¾ãã¦æã£ã¦ããã¨ãã¯ç¸æãåæãã§æ¹å¤ï¼ã¨ããããéé£ï¼ããéã«ããããã¨ãã¯ããµããåã³ãé ããã¨ããªããä»åç´¹ä»ããã®ã¯å¾è ã®ã»ãããâ I'm also very happyããâ it is a _huge_ improvementããâ Good job.ããªã©ãåã³ã¨ç§°è³ã®è¡¨ç¾ãããããæ¸ããã¦ããã¡ã¼ã«ã ã Linusæ°ãæåãããã®ã¯ãã«ã¼ãã«éçºã«æºããMike Galbraithæ°ãæ¸ãã233è¡ã®ã«ã¼ãã«ã¹ã±ã¸ã¥ã¼ãªã³ã°ãããããã®ããããé©ç¨ããã¨ããã¹ã¯ãããç°å¢ã«ããã¦ããã©ã¼ãã³ã¹ãèããåä¸ããã¨ããã
/procã«ããLinuxãã¥ã¼ãã³ã° ï¼»å編] ï½ /procã§ç解ããOSã®ç¶æ ï½ Linuxã®ç¶æ 確èªãæåã®å¤æ´ã§éè¦ãªå½¹å²ãæ ãã®ã/procãã¡ã¤ã«ã·ã¹ãã ã§ãããåç·¨ã§ã¯/procã®æ¦å¿µã/procãå©ç¨ããOSã®ç¶æ 確èªæ¹æ³ãç解ãã¦ããã ããããï¼ç·¨éå±ï¼ é ç° èå¹³ 2002/12/10 æ¬ç¨¿ã§ã¯ã/procãã¡ã¤ã«ã·ã¹ãã ã«ããã«ã¼ãã«ãã¥ã¼ãã³ã°ãç´¹ä»ãã¾ããã«ã¼ãã«2.4.19ããã¼ã¹ã«èª¬æãã¦ããã¾ãããã«ã¼ãã«ã®ãã¼ã¸ã§ã³ã«ãã£ã¦å 容ãç°ãªãå ´åãããã¾ããã¾ãããã£ã¹ããªãã¥ã¼ã¿ãç¬èªã®æ¡å¼µãæ½ãã¦ãããã®ãããã¾ããå¾ã£ã¦ããããã説æããå 容ããã¹ã¦å½ã¦ã¯ã¾ãã¨ã¯éãã¾ããï¼ç«¯çã«ããã¨èª¬æã®å¯¾è±¡ãåå¨ããªãã£ããã説æããã¦ããªãæ©è½ã追å ããã¦ãããã¨ãããã¾ãï¼ã /procãã¡ã¤ã«ã·ã¹ãã ã¨ã¯ /procã¯ãLinuxã·ã¹ãã ã®/ï¼ã«ã¼ãï¼ã«ã
æ¨å¹´10æã«ãªãªã¼ã¹ãããLinuxã«ã¼ãã«2.6.23ã§ã¯ãå¾æ¥ã®O(1)ã¹ã±ã¸ã¥ã¼ã©(Order One Scheduler)ãç½®ãæããæ°ããã¹ã±ã¸ã¥ã¼ã©ãCFS (Completely Fair Scheduler) ããçµã¿è¾¼ã¾ããã9æ¥ã«è¡ãããã第8å The Linux Foundation Japan Symposiumãã§ã¯ã«ã¼ãã«éçºè ã®ä¸äººã§ããThomas Gleixneræ°ãæ¥æ¥ããCFSã®åºæ¬æ¦å¿µãææ°ååã®èª¬æãè¡ã£ãã Thomas Gleixneræ° å¾æ¥ã®Linuxã«ã¼ãã«ã§ã¯Ingo Molnaæ°ãéçºããO(1)ã¨å¼ã°ããã¹ã±ã¸ã¥ã¼ã©ã使ããã¦ãããO(1)ã¹ã±ã¸ã¥ã¼ã©ã§ã¯ãå®è¡å¯è½ãªããã»ã¹ãåªå 度å¥ã«ç¨æãããã¢ã¯ãã£ãã»ãã¥ã¼ã«ç»é²ãããåªå 度ã®é«ããã¥ã¼ã®ããã»ã¹ããé çªã«å®è¡ããã¦ããããã®ããå®è¡ããã¹ãããã»ã¹ãå¿ ã1ã¤ã«æ±ºã¾ãã¨ãã
ããæè¿ãã¼ãã¢ãã¬ã¼ã¸ã«ã¤ãã¦èª¿ã¹ã¦ãã¾ããæ¬æ¥ã® Oracle ãµã¼ãã®ãã¼ãã¢ãã¬ã¼ã¸ãæè¿é«ãã®ã§ããæ¬æ¥ã®å¤ã¯ã¾ã ã¾ã å®å®ããå¤ãä¸ã®ã°ã©ã㯠loadavg x 100 ã®ã°ã©ãã Dual Core Xeon ãï¼æã®ãµã¼ããªã®ã§ä¸è¬çãªãã¼ãã¢ãã¬ã¼ã¸ã®è§£éããããã¨ï¼ä»¥ä¸ãªãå®å ¨åãããæè¿ã¯ï¼ãï¼ã¨ããæ°å¤ãå¤ãããã§ãããå®éã®ä½æçãªããã©ã¼ãã³ã¹ãããã»ã©æªããããã§ã¯ãªãã¨è¨ããå ¨ç¶éãç¡ãã£ã¦ã¤ãã¤ãè¯ãå¤ããªããCPU ã¨ãä»ã®æ°å¤ã¯è³ã£ã¦å®å ¨åã®ãã®ã°ãããä»æ¹ããªãã®ã§ kernel 2.6 ã®ã½ã¼ã¹ãçºããæ¥ã ãããæ°æ¥ãã¨ã«ãã kernel ã¾ããã®è¨äºãæå½ãã次第èªãã§ã¿ã¾ããã ãã«ãã³ã¢æ代ã®ãã¼ãã¢ãã¬ã¼ã¸ã®è¦æ¹ - naoyaã®ã¯ã¦ãªãã¤ã¢ãªã¼ Linux ã«ã¼ãã«ã®ã³ã³ããã¹ãã¹ã¤ããå¦çãèªã¿è§£ã - naoyaã®ã¯ã¦ãªãã¤ã¢ãªã¼
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}