최근에 점검하다가 발생한 상황인데.. 처음겪는 일이라 당황스럽네요 ㄷㄷ
Dell R440 모델에
CPU는 제온 골드 5222 4코어 * 2
메모리 32G
디스크 1.2TB 2개에 레이드1로 묶어서 쓰고있습니다.
이게 문제가.. CPU 점유율이 어느순간 보니 7~80%를 찍고있더라구요
평소 많아야 2~5%인데.. 올라가있는 서비스 전부 disable시키고 재부팅 시켜봤습니다.
재부팅 후 nmon으로 cpu 상태를 봤는데
???
CPU1번만 미친듯이 돌아가고 있네요(재부팅 직후 상황입니다 저게)
top로 프로세스를 봐도 많아야 0.3?밖에 cpu점유를 안하는데.. 왜저러는지 모르겠습니다 ㅠㅠ
idrac 로그를 봐도 전부 정상인걸로 나오고.. 희안하네요 참
조만간 바이오스랑 idrac 펌웨어 올려보고 CPU 스왑도 한번 해볼 예정입니다.
이런 비슷한 상황 겪으신분 계신가요? 있으시면 어떻게 조치했는지 궁금합니다.
++
저때 찍었던 top사진입니다
µ¥ÀÌÅÍ ¹é¾÷ ÇÏ°í
´Ù¸¥ µð½ºÅ©¿¡ OS ´Ù½Ã ¼³Ä¡Çؼ ³×Æ®¿öÅ© ´Ù ²÷¾î¹ö¸®°í ¹®Á¦ µÇ´Â ºÎºÐÀ» ´Ù½Ã È®ÀÎÇغ¸°Ú½À´Ï´Ù..
Ȥ½Ã³ª Áö¸¸ ÇØÅ· ´çÇؼ Á»ºñ ½Ã½ºÅÛÀÌ µÇ¾î¼ Àú·¸°Ô CPU ºÎÇÏ°¡ ³ôÀ» ¼öµµ Àְŵç¿ä..
nmon ¾²½Ã´Â ºÐ ÀÌ »çÀÌÆ®¿¡¼ µé¶ô³¯¶ô ÇÑÁö 20³â ³Ñ¾î°¬´Âµ¥ °ÅÀÇ Ã³À½ ¸¸¿¡ ºË³×¿ä..
Çä nmonÀº ÀÌÁ¦ ÀØÇôÁø À¯¹°ÀÌ µÈ°Ç°¡¿ä? ¤§¤§ ¿¹Àü¿¡ AIX¸¸Áú¶§ ²Ï Àß½á¸Ô¾î¼.. Áö±Ýµµ °£°£È÷ ¾²³×¿ä ¤¾¤¾
Àú´Â ÷¿¡ Àú°Ô ¸ó°¡ ÇÏ´Ù°¡ ¾îÂîÀúÂî ¾Æ´Â »ç¶÷ÇÑÅ× À̾߱â ÇÏ´Ù°¡ ¸íĪÀ» ¾Ë°Ô µÇ¾ú½À´Ï´Ù..
Àú´Â Àú°ÍÀÌ ´ë·« ¹«¾ùÀÎÁö´Â ¾Ë°í ½ÇÁ¦ ´Ù·çÁö´Â ¸øÇÕ´Ï´Ù..
Á¶±Ý ¸¸Áö´Â °ÍÀÌ À©µµ¿ìÁî Á¤µµÀÎÁö¶ó..
IBM AIX µµ »ç¿ëÇÏ´Â °÷Àº ÀÖÁö¸¸ °ÅÀÇ À¯¹°±Þ ¾Æ´Ñ°¡¿ä??
AIX´Â ±ÝÀ¶±ÇÂÊ¿¡¸¸ ³²¾ÆÀִ°ɷΠ¾Ë°íÀÖ½À´Ï´Ù
¹º°¡ ä±¼ÇÏ´Â º¿ÀÌ µé¾î¿Â°Í °°½À´Ï´Ù.
º¸Åë ÀÌ·± ³ÑµéÀÌ Àß ¸¸µé¾îÁ®¼ ¸ðµç core »ç¿ëÇϴµ¥ ÀÌ ³ÑÀº Á» ƯÀÌÇϳ׿ä
ÄÚÀÎä±¼¹æ½ÄÀ» Á¦°¡ Àß ¸ô¶ó¼¿ä ¤Ð
GPU¸¸ ¾²´Â°ÇÁÙ ¾Ë¾Ò´Âµ¥.. CPU·Îµµ °¡´ÉÇÑ ¸ð¾çÀ̱º¿ä;
ä±¼°É¸°°Å¸é.. ½Ï ¹Ð¾î¹ö¸®°í À缳ġÇØ¾ß ÇÒ¼öµµ Àְڳ׿ä;
³» PC¿¡¼ ¶ó¸é ÇÏÁö ¾Ê°ÚÁö¸¸ ³²ÀÇ PC¶ó¸é ÇÒ ¼ö ÀÖÁÒ
topÀº ¾î¶»°Ô ³ª¿À³ª¿ä?
0.7, 0.3 0.3 0 0 0... Á¦ÀÏ ³ôÀº°Ô 0.7Á¤µµ¿´½À´Ï´Ù.
±Û ¼öÁ¤Çؼ top»çÁøµµ Ãß°¡Çغ¼²²¿ä
nmonÀÇ À¯·¡???
http://nmon.sourceforge.net/pmwiki.php
¸®´ª½º¿ë nmon
ÀÌ ÇÁ·Î±×·¥ ¸®´ª½º¿¡ ¼³Ä¡Çؼ µ¹·Áº¸¸é ½Ã½ºÅÛÀÇ ¿©·¯ ºÎºÐÀÇ ¸ð´ÏÅ͸µÀÌ °¡´ÉÇÕ´Ï´Ù..
Á» »ö´Ù¸¥ ¸ÀÀ̶ó°í³ª ÇÒ±î??
CentOS 7.7ÀÌ¶ó¼ ¸»¾¸ÇØÁֽŠ¸®´ª½º¿ë nmonÀ¸·Î È®ÀÎÇÑ°Ì´Ï´Ù ¤¾¤¾
±×¸®°í Ȥ½Ã³ª nmon ÀÇ ¹ö±× °°Àº °Í Àϼöµµ ÀÖÀ¸´Ï ±×·± °ÍÀ» üũÇÒ ¼ö ÀÖ´Â ´Ù¸¥ ÇÁ·Î±×·¥À¸·Î üũ¸¦ Á» ´õ Çغ¸°í ºñ±³ÇϽôøÁö
Top ¸í·É¾î¿Í ºñ±³ÇϽôøÁö Çغ¸´Â °ÍÀÌ ÁÁ¾Æ º¸ÀÔ´Ï´Ù..
top¿¡¼ load average¿Í cpuÀÇ us (user) sy(system) °ªÀÌ ¾î¶»°Ô ³ª¿À³ª¿ä?(ù° ÁÙ ¼Â°ÁÙ ÀÔ´Ï´Ù)
$ top
top - 18:16:14 up 19 days, 4:38, 4 users, load average: 0.01, 0.04, 0.08
Tasks: 192 total, 1 running, 191 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.0 us, 0.2 sy, 0.0 ni, 99.8 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
´ñ±Û Áß°£¿¡¼´Â
0.7, 0.3 0.3 0 0 0... Á¦ÀÏ ³ôÀº°Ô 0.7Á¤µµ¿´½À´Ï´Ù.
¶ó°í ÇϽôٰ¡ ... ¤¾¤¾¤¾
0.7 0.3 0.3 0 0 0 ÀÇ Àǹ̴ °¢ ÇÁ·Î¼¼½º cpu»ç¿ë·®À» ³ª¿ÇÑ°Ì´Ï´Ù. load average¸¦ ¶æÇÑ°Ô ¾Æ´Õ´Ï´Ù..
±×¸®°í (Á¦°¡ ¸Ç óÀ½¿¡ ´ñ±Û ¿Ã·ÈÀ»¶§ )³×Æ®¿öÅ© ²÷°í OS »õ·Î ±ò¾Æ¼µµ ±×·±´Ù¸é ±× ¶§´Â ÇÁ·Î±×·¥À̳ª ±×·± ÂÊÀÇ ¹ö±× È®·üÀÌ ³ô¾ÆÁý´Ï´Ù..
OS »õ·Î ±ò¾Ò´Ù¸é Àú·± ºÎÇÏ´Â ¾ø¾î¾ß Á¤»óÀ̴ϱî¿ä..
±×¸®°í »óȲ¿¡ µû¶ó ¹«½¼ ¼ºñ½º¸¦ ÇÏ´Â ¼¹öÀÎÁöµµ ¿ÀÇÂÇØ¾ß µÉÁö ¸ð¸£°Ú³×¿ä..
https://www.ibm.com/mysupport/s/question/0D50z00006LKtboCAD/cpu-usage-differences-between-nmon-and-topas-38-vmstat?language=ko
12 Jun 2007 (15³â Àü)
There are 2 things that I know of that cause NMON to report different CPU usage stats than topas and vmstat. I believe these are design decisions in NMON rather than bugs.
The first thing is SMT. I was at a presentation that Nigel gave and he discussed the difficulties that SMT posed in determining what 100% was for a Power5 core/cpu. When SMT is turned off, the system sees 1 logical CPU for each physical (or virtual in micropartition LPARs) CPU. Lets assume that 1 logical CPU can perform 100 units of work. When it is doing 100 units of work, it is 100% busy.
https://www.cyberciti.biz/faq/linux-hide-processes-from-other-users/
±âº» Àбâ Àü¿ëÀ¸·Î À̹ÌÁö Àоî¿Í¼ ·¥¿¡¼ ó¸®Çϱⶫ¿¡ ±ò²ûÇÑ È¯°æÀÌ°í, ºÎÆ® ¹Ìµð¾î¸¸ ºÐ¸®ÇÏ¸é ¿øº¹µÇ±â¶«¿¡ Å« ºÎ´ãµµ ¾ø½À´Ï´Ù (±×µ¿¾È ¼ºñ½º Áß´ÜµÇ´Â°Ç Âü¾Æ¾ßÁÒ)
dateno1ȸ¿ø´Ô ¹æ¹ý ½ÃµµÇغ¸°í ¾ÈµÇ¸é OSÀ缳ġ±îÁö ÁøÇàÇغ¸·Á°í ÇÕ´Ï´Ù. ³¡³ª¸é °á°ú °øÀ¯µå¸®°Ú½À´Ï´Ù ^^
top À¸·Î º¸¸é kswapd0 ¶ó´Â À̸§À¸·Î CPU Á¡À¯À²ÀÌ 100% À¯ÁöÇÏ°í ÀÖ¾î¼ kill -9 kswapd0 ó¸®
user »óÅ¿¡¼ crontal -l óº¸¸é ¾Æ·¡¿Í °°Àº ¸ñ·ÏÀ» È®ÀÎÇß½À´Ï´Ù.
1 1 */2 * * /home/xxx/.configrc/a/upd>/dev/null 2>&1
@reboot /home/xxx/.configrc/a/upd>/dev/null 2>&1
5 8 * * 0 /home/xxx/.configrc/b/sync>/dev/null 2>&1
@reboot /home/xxx/.configrc/b/sync>/dev/null 2>&1
0 0 */3 * * /dev/shm/.X09/.rsync/c/aptitude>/dev/null 2>&1
crontab ¿¡ ÀÖ´Â ³»¿ë »èÁ¦
/home/xxx/.configrc Æú´õ »èÁ¦
/dev/shm/.X09/ Æú´õ »èÁ¦ ÈÄ 1´Þ µ¿¾È ÇöÀç ¹®Á¦°¡ ¾ø½À´Ï´Ù.
Àú¿Í´Â ´Ù¸¥ »óȲÀÌ°ÚÁö¸¸ ÀÌ·± °æ¿ìµµ ÀÖ¾ú´Ù´Â °ÍÀ» Âü°íÇØÁÖ¼¼¿ä.