æããæ¨å¥¨ããã Swap é åã®ç®å®ã¨ãã¦ãã¡ã¢ãªãµã¤ãºã® 2åãå²ãå½ã¦ã¦ããã°è¯ãã¨æããããããä¿¡ãã¦ä»ã¾ã§ãµã¼ãæ¥çã§çãã¦ããç§ã§ããã æè¿ã調ã¹ç©ä¸ã«å¿ ãããããã§ã¯ãªãã¨ããæ å ±ãå¶ç¶è¦ã¤ãã¦åãã·ã§ãã¯ãåãã¾ããã ããããã¹ãã¬ã¼ã¸ç¨ã¨ã·ã¹ãã ç¨ã®æ¨å¥¨å¤ãç°ãªãããã§ãã ãªã 2åãå²ãå½ã¦ãããã«ãªã£ããã«ã¤ãã¦ã æ¹ãã¦èª¿ã¹ã¦ã¿ãã¨ãããæã ã®è©±ã§ ãã¼ã¸ã³ã°ãå¤çºãã¦å®ç¨ã«èããªãé度ã®ç®å®ãå®ã¡ã¢ãªã®2åã ãã ã¨ãã説ãããã¾ããã æ¬é¡ã«å ¥ãåã«ç°¡åã« Swap ã«ã¤ãã¦ã Swap ã¨ã¯ãç°¡åã«è¨ãã¨ç©çã¡ã¢ãªã使ãåã£ãå ´åã«ãç©çã¡ã¢ãªã®ä»£ããã«ä½¿ãããé åã®ãã¨ã§ããã¼ãã£ã·ã§ã³ãã¾ãã¯ãã¡ã¤ã«ã使ã£ã¦ä½æã§ãã¾ãããæ¨å¥¨ãããã®ã¯ããã¼ãã£ã·ã§ã³ã§ãã ããã¾ã§ãä¿éºã¨ãã¦ç¢ºä¿ãã¦ããé åãªã®ã§ãç©çã¡ã¢ãªã®ä»£ç¨ã¨ãã¦ä½¿ãã¨ããèãæ¹ã¯è¯ãã
ã©ãã大ç§ã§ãã Linuxã®ã¡ã¢ãªç®¡çã§æ¬ ãããªãã®ãswapã§ããããEC2ã®ãã£ã¹ã¯ç®¡çã«ã¯ç¬ç¹ãªä»æ§ãããã®ã§ãã®è¾ºããè¸ã¾ãã¤ã¤ãEC2(Linux)ã§ã©ã®ããã«swapé åãç¨æããã®ãè¯ãã®ãã¾ã¨ãã¦ã¿ããã¨æãã¾ãã çå±ããããªããã®è§£èª¬ã«ãªãã®ã§ãå ã«æ¬ã¨ã³ããªã¼ã®çµè«ãã å ¬å¼AMIã«ã¯swapé åãå«ã¾ããªã m1.smallãc1.mediumã«ã¯900MBã®ã¹ã¯ããé åããã¾ãã§ã¤ãã¦ãã(Amazon Linux AMIã§ããã°ãCloud-initã«ãã£ã¦èªåãã¦ã³ãããã) swapé åã«ã¯ãã¤ã³ã¹ã¿ã³ã¹ã¹ãã¢(å¥åEphemeral Disk)ã使ãã¹ã ã§ã¯ãããããè¦ã¦ããã¾ãã å ¬å¼Linux AMIã®åææ§æã«ã¯swapãã¼ãã£ã·ã§ã³ãç¡ã Amazonããæä¾ãããå ¬å¼ã®Linux AMIã®ãã¼ããã£ã¹ã¯ã«ã¯ãswapãã¼ãã£ã·ã§ã³ãå«ã¾ãã¦ã
m1.small 以ä¸ã®ã¤ã³ã¹ã¿ã³ã¹ã«ã¯swapç¨ã®ããã¤ã¹ãåå¨ããããã©ã«ãã§swapã¨ãã¦ãã¦ã³ããããããã§ãããæ®å¿µãªããt1.microã¤ã³ã¹ã¿ã³ã¹ã«ã¯ãããããã¾ããã t1.microã¤ã³ã¹ã¿ã³ã¹ã§ã® free ã³ãã³ãå®è¡çµæä¾ $ free total used free shared buffers cached Mem: 626524 550784 75740 0 113388 208792 -/+ buffers/cache: 228604 397920 Swap: 0 0 0 ä¸è¨ã®ããã«Swap: 0 0 0ã¨ãæã®ã«ã¼ã㣠ã¹ã¼ãã¼ãã©ãã¯ã¹ãæ³èµ·ããã絶æçãªæ°åãåºåããã¾ãã Swapé åãèªåã§ä½æãã ãã ã§ããRAMãå°ãªãt1.microã§swapãç¡ãã¨ãªãã¨ä¸å®ã§å¤ãç ããªããªãã®ã§ã èªåã§ç¨æããã®ãåã§ãã ããã¤ã¹ã追å ãããã¨ã¯ã§
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}