°Ô½Ã¹° 1,369°Ç
   
Ä¿³Î ÄÚ¾î´ýÇÁ ¼³Á¤ & ºÐ¼®
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2014-07-30 (¼ö) 10:14 Á¶È¸ : 10538
±ÛÁÖ¼Ò :
                                
Âü°í : 


ÄÚ¾î´ýÇÁ 
ƯÁ¤ ½ÃÁ¡¿¡ RAM¿¡ µé¾îÀÖ´Â ³»¿ëÀ» Á¾ÀÌ¿¡ ÀμâÇϰųª, ¶Ç´Â HDD¿Í °°Àº º¸´Ù ¿µ±¸ÀûÀÎ ¸Åü¿¡ º¹»çÇØ µÎ´Â ÇàÀ§¸¦ ¸»ÇÑ´Ù.
¾î¶² »ç¶÷µéÀº ÀÌ°ÍÀ» ·¥¿¡ ´ëÇÑ ½º³À»çÁøÀ̶ó°í ¸»Çϸç ÄÚ¾î´ýÇÁ´Â ÁÖ·Î ÇÁ·Î±×·¥À» µð¹ö±ëÇϱâ À§ÇÑ ¸ñÀûÀ¸·Î ÇàÇØÁöÁö¸¸, ¿äÁò¿¡´Â °í±Þ ¾ð¾î¸¦ ÀÌ¿ëÇØ ÇÁ·Î±×·¡¹ÖÀ» Çϸ鼭 ÀÎÅÍ·¢Æ¼ºê Çü½ÄÀ¸·Î µð¹ö±ëÀ» ÇÏ´Â Ãß¼¼¿¡ µû¶ó, ¹®Á¦ ÇØ°áÀ» À§ÇØ ÄÚ¾î ´ýÇÁ¸¦ ÇÊ¿ä·Î ÇÏ´Â °æ¿ì´Â ÁÙ¾îµé°í ¿ÀÈ÷·Á ¿î¿µÃ¼Á¦¸¦ À¯Áöº¸¼öÇÏ°í ¶§·Î ±×¾È¿¡ ÀÖ´Â ¹®Á¦µéÀ» µð¹ö±ë ÇØ¾ß ÇÏ´Â ½Ã½ºÅÛ ÇÁ·Î±×·¡¸Óµé¿¡ ÀÇÇØ »ç¿ëµÇ´Â °æ¿ì°¡ ¸¹´Ù.

ÄÚ¾î´ýÇÁ´Â ´ëü·Î ¿©·¯°³ÀÇ ÁÙ·Î ±¸¼ºµÈ Á¤ÇüÈ­µÈ º¸°í¼­ÀÇ ÇüÅ·ΠµÇ¾îÀÖÀ¸¸ç À̵éÀº °¢ ¸Þ¸ð¸® À§Ä¡¿Í ±×À§Ä¡¿¡ ÀúÀåµÈ °ªÀ» 16Áø¼ö·Î º¸¿©ÁØ´Ù. 
ºÎ°¡Á¤º¸¸¦ ÅëÇØ ÄÚ¾î ´ýÇÁ°¡ ½ÃÀ۵Ǵø ¹Ù·Î ±×½Ã±â¿¡ ¼öÇàµÇ¾ú´ø ¸í·ÉÀ» Á¤È®È÷ ¾Ë¼ö ÀÖ´Ù.

core dumpd ´Â ÇÁ·Î±×·¥ÀÇ ºñÁ¤»óÀûÀÎ Á¾·á(Segmentation Faultµî)½Ã Ä¿³Î¿¡¼­ ±×¶§ »óȲÀ» ´ýÇÁ½ÃŲ ÆÄÀÏÀÌ´Ù. ¸®´ª½º´Â ±âº»ÀûÀ¸·Î ÄÚ¾î ´ýÇÁ¸¦ ÇÏÁö ¾Ê´Âµ¥ À̸¦ È°¼ºÈ­ ½ÃÅ°·Á¸é ´ÙÀ½°ú °°´Ù.


OS : Fedora18 x86_64
core dump »çÀÌÁî È®ÀÎ
# ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 254704
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 1024
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

ÆÄÀÏ»çÀÌÁî ¹«Á¦ÇÑ
# ulimit -c unlimited

Ä¿³ÎÆĶó¹ÌÅÍ ¼öÁ¤
# vim /etc/sysctl.conf
kernel.core_pattern = /var/log/core.%e
kernel.core_uses_pid = 1

%%  A single % character
%p  PID of dumped process 
%u  real UID of dumped process 
%g  real GID of dumped process 
%s  number of signal causing dump
%t  time of dump (seconds since 0:00h, 1 Jan 1970)
%h  hostname (same as ¡¯nodename¡¯ returned by uname(2))
%e  executable filename


Àû¿ë
# systcl -p

# cat /proc/sys/kernel/core_pattern
/var/log/core.%e
# cat /proc/sys/kernel/core_pipe_limit
0
# cat /proc/sys/kernel/core_uses_pid
1
# selinuxenabled && echo enabled || echo disabled
# ulimit -c
0

# yum install --enablerepo=fedora-debuginfo crash kernel-debuginfo


crash ¸í·É

sys - ½Ã½ºÅÛÀÇ ÀϹÝÀûÀÎ Á¤º¸¸¦ Ãâ·ÂÇØ ÁØ´Ù.
bt - Backtrace ¸í·É. ½ºÅÃÀÇ ³»¿ëµéÀ» ¼øÂ÷ÀûÀ¸·Î Ãâ·ÂÇØÁØ´Ù.
ps - Process list Ãâ·Â.
free - Memory ¹× ½º¿Ò »óÅ Ãâ·Â.
mount - ¸¶¿îÆ® »óÅ Ãâ·Â
irq - °¢ ÀåÄ¡ÀÇ ( irq ) »óŸ¦ Ãâ·Â.
kmem - ¸Þ¸ð¸® »óÅ Ãâ·Â ( kmalloc, valloc µî ¸Þ¸ð¸® ÇÒ´ç »óŵµ º¸¿©ÁÜ )
log - dmesg ÀÇ ³»¿ëÀ» Ãâ·Â.
mod - ·ÎµùµÈ ¸ðµâ ¸®½ºÆ® Ãâ·Â.
net - Network »óÅÂ Ãâ·Â.
runq - ½ÇÇàÁßÀÎ task ¸®½ºÆ® Ãâ·Â.
task - ÀÛ¾÷¸ñ·Ï Ãâ·Â.
rd - ¸Þ¸ð¸® ¹øÁö¼ö¿¡ ´ëÇÑ »ó¼¼Á¤º¸ Ãâ·Â.
foreach - ¸ðµç task, process µî µð¹ö±ë Á¤º¸¿¡ ´ëÇÑ »ó¼¼ÇÑ Ãâ·ÂÀÌ °¡´ÉÇÔ.
set - ¼³Á¤µÈ ÁÖ¼Ò ¹× PID µîÀ» ±âº» ÄÁÅؽºÆ®·Î ¼³Á¤.
struct - ±¸Á¶È­µÈ ¸Þ¸ð¸® ³»ºÎÀÇ º¯¼öµéÀ» Ãâ·ÂÇØ ÁØ´Ù.
files - task °¡ ¿­°íÀÖ´Â ÆÄÀϵð½ºÅ©¸³Å͵éÀ» Ãâ·ÂÇØÁØ´Ù.

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.