IBM Developer is your one-stop location for getting hands-on training and learning in-demand skills on relevant technologies such as generative AI, data science, AI, and open source.
2010å¹´09æ18æ¥15:38 ããã»ã¹ã®åªå åº¦ï¼ CetnOS 5.5 ã«ãã´ãªITæè¡kernel Linuxã®ããã»ã¹åªå 度ã«ã¯ã大ããåãã¦2ã¤ããã¾ãã éçåªå 度 (ãªã¢ã«ã¿ã¤ã ããã»ã¹)ã¨åçåªå 度ã§ãã Linuxã«ã¼ãã«ã®å é¨ã§ã¯ãåªå 度ã¯1ï½139ã§è¡¨ç¾ããã1ï½99ãéçåªå 度ã100ï½139ãåçåªå 度ã«ãªããå¤ãä½ãæ¹ãåªå 度ãé«ããªããåçåªå 度ã¯ã«ã¼ãã«ã«ããåçã«å¤æ´ããã¾ãã éçåªå 度ã¯ãã¹ã±ã¸ã¥ã¼ã©ã«FIFOã¨RR(ã©ã¦ã³ãããã³)ã®2種é¡é¸æãããã¨ãã§ããFIFOã¯ä¸åº¦CPUãã¤ããã¨CPUãé¢ãã¾ã§ãã£ã¨ä½¿ãç¶ãããã¨ãã§ããRRã¯åãåªå 度ã®ããã»ã¹ãããã¨ãã©ã¦ã³ãããã³ã§CPUãå²ãå½ã¦ããã¾ããããããã©ã¡ãã®ã¹ã±ã¸ã¥ã¼ã©ãé¸æãã¦ããåªå 度ã®ä½ãããã»ã¹ã«ã¯CPUãå²ãå½ã¦ãããªãã®ã§ãè¨å®ããã«ã¯æ³¨æãå¿ è¦ã§ãææªPCãããªã¼ãºããã
é常ã®ããã»ã¹(éãªã¢ã«ã¿ã¤ã ããã»ã¹)ã«ã¯éçåªå 度ã¨åçåªå 度ã®2種é¡ã®åªå 度ãããã éç/åçåªå 度ã©ã¡ãã¨ãå¤ãå°ããæ¹ãåªå 度ãé«ãã 1. éçåªå 度éçåªå 度ã¯0ã139ã®å¤ãåãããã®ãã¡ã0ã99ã¯ãªã¢ã«ã¿ã¤ã ããã»ã¹ã«ä½¿ç¨ããããé常ã®ããã»ã¹ã¯100ã139ã«ãªãã éçåªå 度ã¯ããã»ã¹ã®niceå¤ã«ããåºå®çã«æ±ºã¾ããniceã¯-20ã19ã®å¤ãåãããããããã®ã¾ã¾100ã139ã«ããããå¤ãéçåªå 度ã¨ãªãã niceå¤ -20 ... 0 ... 19 éçåªå 度 100 ... 120 ... 139 éçåªå 度ã¯task_structã®static_prioã«æ ¼ç´ãããã 2. åçåªå 度åçåªå 度ã¯éçåªå 度ããã¼ã¹ã«CPU使ç¨éã«åºã¥ãã¦ç®åºããããã¹ã±ã¸ã¥ã¼ã©ã«ããããã»ã¹ã®é¸ææã«ã¯åçåªå 度ã使ç¨ããããåãå¾ãå¤ã®ç¯å²ã¯éçåªå 度ã¨åã100
Linux ã®é£ç¶ç¨¼åæéã 208.5 æ¥ãéãã段éã§çªå¦ Kernel Panic ãå¼ãèµ·ããã¨ããéæ¿ãªæåã§2011å¹´ã®å¹´ã®ç¬ã«è©±é¡ã¨ãªã£ã "æ§208.5æ¥åé¡" ã§ãããããããäºå¹´ãçµã£ãä»ãLinux Kernel å ã® bug 㨠Intel Xeon CPU ã® bug ã®åããæã«ããå度é¡ä¼¼ã®ä¸å ·åãçºçãããã¨ãåãã£ã¦ãã¾ãã æ§ 208.5 æ¥åé¡ã®çºçåçã«é¢ãã¦ã¯ä»¥ä¸ã® blog ãåèã«ãªãã¾ãã okkyã®éæ²³å¶å§å¥è : sched_clock() overflow after 208.5 days in Linux Kernel 追è¨(2014/1/4) æ°208.5æ¥åé¡ã®ç°¡æãã§ãã¯ãã¼ã«ãä½æãã¾ããããããããã°ã使ãä¸ããã tsc_checker - æ°208.5æ¥åé¡ç°¡æãã§ãã¯ãã¼ã« ã¾ããLinux Kernel ã«ãããæé
Linus Torvaldsæ°ã¯9æ2æ¥ãLinuxã«ã¼ãã«3.11ãçºè¡¨ãããå®å ¨ãªä¸æãã¡ã¤ã«ãä½æã§ãããO_TEMPFILEããã©ã°ã®å°å ¥ãNFS 4.2ã®ãµãã¼ããswapãã¼ã¸ãå§ç¸®ãã¦æ ¼ç´ãããZswapãã¨ãã£ãæ°æ©è½ã®è¿½å ãªã©ãè¡ããã¦ããã 6ææ«ã«å ¬éããã3.10ã«ç¶ããªãªã¼ã¹ã¨ãªããç´2ãæã§ã®ææ°çãªãªã¼ã¹ã¨ãªãããã®ãã¼ã¸ã§ã³ã¯ãä»å¹´ã§çºè¡¨ãã20å¹´ãè¿ãããWindows for Workgroup 3.11ãã«ã¡ãªãã§ãLinux for Workgroupsãã¨ããã³ã¼ãåãä»ãããã¦ããããã´ããã³ã®ã³ãWindowsã®æ§ãã¼ã¯ã®æãæã£ããã¶ã¤ã³ã¨ãªã£ã¦ããããªããæ£å¼ãªãªã¼ã¹ãçºè¡¨ããTorvaldsæ°ã¯ç´åã®7åç®ãªãªã¼ã¹åè£ï¼RC7ï¼å ¬éãåç¥ããªãã£ããã¨ãèªãã¦ããã æ°æ©è½ã¨ãã¦ã¯ãå®å ¨ã«ä¸æãã¡ã¤ã«ãä½æããããã®ãO_TEMPFILE
éããããã®è²´æ¹ã»ã»ã»ã» /proc/meminfoã®ãã£ã¡ã®å¤ã¨ãã£ã¡ã®å¤ã足ãããããªãã§ãã£ã¡ã®å¤ã¨åãã«ãªããªãã®ã»ã»ã»ã» ã¨æ©ãã ãã¨ããã¾ãããï¼ /proc/meminfoã¯ãã«ã¼ãã«ãå é¨çã«ç®¡çãã¦ããæ çµã¿ã§ã®ã¡ã¢ãªæ å ±ããã®ã¾ã¾åºãã¦ããã®ã§ãæ®å¿µãªããã¦ã¼ã¶è¦ç¹ã§ç¥ãããã¡ã¢ãªæ å ±ã¨ã¯ä¸è´ãã¾ããã ã¨ã¯ãããå¤ãªè§£éããã¦ç¡æå³ã«æ©ã¾ãªãããã«ãããããã®å¤ã®æå³åãã¨é ç®éã®é¢ä¿ãç¥ã£ã¦ããã®ã¯ææ義ã§ããç§ã®ç解ã®ç¯å²ã§ããããã®é¢ä¿ãã¾ã¨ãã¦ããã¾ãã ï¼ç§ã®ç解ãå®ç§ã§ã¯ãªãã®ã§ãééãããã°ãããããææãé¡ããã¾ãã åèè³æãhttp://mkosaki.blog46.fc2.com/blog-entry-1007.html 2011/09/07 追è¨ï¼ tmpfsãSwapCachedã«å«ã¾ããã®ã¯å¹»æ³ã§ãããtmpfs=Shmemã«ä¿®æ£ãã¾ããã
å æ¥ã諸ã ã®é½åã§é éã«ãããã¹ãç°å¢ã®ãµã¼ã(Linux)ã®ã«ã¼ãã«ãã©ã¡ã¼ã¿ãå¼ã£ã¦ããã®ã§ãããã¡ãã£ã¨è¨å®(ã¡ã¢ãªã¾ãã)ãã¤ãããã¦ãã¾ãï½ãã³ãã³ãå®è¡ã¨ãããforkã§ããªããªã£ã¦ãã¾ã£ã(Cannot allocate memory...)ã ãã§ãshutdownã³ãã³ããå®è¡ã§ããªããªã£ãã®ã§ãç´ããã¨æã£ãã®ã§ãããè²ã å¼ã£ãï¼æéããªãã£ããã¨ããããä¸æ¦OSãåèµ·åãã¡ãããããªãã¨(æ± ããé éã«ãããµã¼ããªã®ã§ãç©ççãªé»æºã¹ã¤ããON/OFFãã§ããªã(å³å¯ã«ã¯åºæ¥ãç°å¢ã§ã¯ãã£ãã®ã§ããããã®ãµã¼ãã¯ããã«å ¥ã£ã¦ãªãã£ãï½)ãã®ã§ãSysRqãã¼ãéããã¨ã«ããã ããæ¹ å°ãç¡çç¢çæã¯ããã¾ããã # echo b > /proc/sysrq-triggerãå®è¡ããã¨ãå¼·å¶çã«ãªãã¼ãããããã¾ãã ãã ãããã¡ã¤ã«ã·ã¹ãã ã®syncã¨ãumount
ã¡ãã£ã¨ç ½ãæ°å³ã®ã¿ã¤ãã«ã§ãããCPU ããã«ãã³ã¢ã«ãªã 2åã4åã¨å¢ãã¦ããä¸ Linux ã®è² è·ã®æéã«ãªããã¼ãã¢ãã¬ã¼ã¸ãã©ãèªãã¹ãããã¨ãã話ã§ããæ°ã«ãªã£ãã¨ãããå°ã調ã¹ãã®ã§ãã®ã¾ã¨ããã http://d.hatena.ne.jp/naoya/20070222/1172116665 ã§ãæ¸ããã¨ãããLinux ã®ãã¼ãã¢ãã¬ã¼ã¸ã¯ããã¼ãã¢ãã¬ã¼ã¸ã¯éå»1åã5åã15åã®éã®å®è¡å¾ ã¡ããã»ã¹æ°ã®å¹³åæ° = å®è¡ãããã¦ãä»ã®ããã»ã¹ãå®è¡ä¸ã§å®è¡ã§ããªãããã»ã¹ãå¹³åã§ä½åãããåå¨ãã¦ãããã示ãå¤ã§ããããã«ããã¯ã CPUãã¡ã¢ãªããã£ã¹ã¯çã ã©ãã«ãããã¯é¢ä¿ãªããä»äºã®å®è¡ã¾ã§ã«ã©ããããå¾ ãããã¦ãããã示ãå¤ãªã®ã§ãã·ã¹ãã ã®ã¹ã«ã¼ããããè¨æ¸¬ããææ¨ã®å ¥ãå£ã«ãªãå¤ã§ãã ãã®ãã¼ãã¢ãã¬ã¼ã¸ã§ãããå®è£ ãè¦ãã¨ã©ã³ãã¥ã¼(å¾ ã¡è¡å)ã«æºã¾ã£ã
調ã¹ãã¨ãããã®ã§ blog ã«æ¸ãã¦ç解ãæ·±ãããã®ã³ã¼ãã¼ã§ããé·æã§ãã Linux ã§ã·ã¹ãã è² è·ãè¦ãå ´åã«ãä¸è©±ã«ãªãã®ã top ã sar (sysstat ããã±ã¼ã¸ã«å梱ããã¦ãã³ãã³ã) ãªã©ã®ãã¼ã«ã§ãã top ã§ã¯ã·ã¹ãã çµ±è¨ã®ã¹ãããã·ã§ãããè¦ããã¨ãã§ãã¾ããä»ã·ã¹ãã ãã©ãããç¶æ ããªã¼ã¨ããã¨ã㯠top ã便å©ã top - 08:16:54 up 3 days, 14:43, 6 users, load average: 0.18, 0.07, 0.03 Tasks: 43 total, 2 running, 41 sleeping, 0 stopped, 0 zombie Cpu(s): 18.2% us, 0.0% sy, 0.0% ni, 81.8% id, 0.0% wa, 0.0% hi, 0.0% siä¸æ¹ã® sar ã§ã¯10åãã¨ã®ã·
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}