½Ã½ºÅÛÀ» ¿î¿µÇÏ´Ù°¡ º¸´Ù ³ªÀº Çâ»óÀ» À§ÇØ Ä¿³Îº¯¼ö ¼³Á¤À» º¯°æÇϰųª ȤÀº Çϵå¿þ¾îÀûÀÎ ¹®Á¦, »ç¿ëÇÏ´Â ¾îÇø®ÄÉÀÌ¼Ç Ãæµ¹µî ±âŸ¹®Á¦·Î ÀÎÇØ ÆдÐÀÌ ºó¹øÇÏ°Ô ¹ß»ýµÇ´Â °æ¿ì°¡ ÀÖ´Ù.
ºÐ¸íÇÑ°Ç ¹ß»ý¿øÀÎ ºÐ¼®ÀÌ ¿ì¼±ÀÌ°ÚÁö¸¸ ÀӽùæÆíÀ¸·Î »ç¿ëÇϱâ À§ÇØ Kernel parameter °ªµéÀ» ÅëÇØ panic ¹ß»ý½Ã ¿øÇÏ´Â ½Ã°£À» ´ë±âÇÑÈÄ ¸®ºÎÆÃÀÌ µÇ´Â¹æ¹ýÀ» ¾Ë¾Æº¸ÀÚ.
Ä¿³Îº¯¼ö¸¦ Á¶Á¤Çϱâ À§Çؼ´Â sysctl À» ÀÌ¿ëÇØ /proc/sys ¸®½ºÆ®¸¦ ¼öÁ¤ÇϸéµÈ´Ù.
[root@mojily ~]# vi /etc/sysctl.conf
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 0
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 1
# Æдй߻ýÀ» À§ÇÑ Àӽôëó·Î Ãß°¡ÇØÁØ ºÎºÐ
kernel.panic = 3
# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
¡Ø ½Ã½ºÅÛ¿¡ µû¶ó¼ À§Á¤º¸´Â ´Ù¸¦¼ö ÀÖ´Ù.
Àû´çÇÑ À§Ä¡(?)¿¡ »¡°£»öÀ¸·Î µÈºÎºÎ¸¸ Ãß°¡ÇØÁÖ¸é µÈ´Ù.
/etc/sysctl.conf ÆÄÀÏÀ» ½ÇÇàÇØÁÖ°í ³ÀÌÈÄ Áï½Ã Àû¿ëÀ» ÇϱâÀ§ÇØ -p ¿É¼ÇÀ» »ç¿ëÇϸé ÇöÀç Àû¿ëµÈ ¸®½ºÆ®µéÀÌ º¸ÀδÙ.
[root@mojily ~]# sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 1
kernel.panic = 3
kernel.core_uses_pid = 1
ȤÀº ¾Æ·¡Ã³·³ ½©¿¡¼ ¹Ù·Î ¸í·É¾î¸¦ ÀԷ½ÃÄѵµ µÈ´Ù.
[root@mojily ~]# cat /proc/sys/kernel/panic
0
[root@mojily ~]# echo 3 > /proc/sys/kernel/panic
±âº» ¼³Á¤À¸·Î ¼³Á¤°ªÀº 0À¸·Î ÀÌ°Ç Æднÿ¡ ±×³É..±×´ë·ç ³öµÎ°Ú´Ù´Â ÀǹÌÀÌ´Ù.
´ÜÀ§´Â ÃÊ·Î ¿øÇÏ´Â ½Ã°£À» ÀÔ·ÂÇØÁÖ¸é µÈ´Ù.
ÁÖÀÇ) /proc ³»¿¡ ÀÖ´Â ÆÄÀϵéÀº ½ÇÁ¦·Î Á¸ÀçÇϴ°ÍÀÌ ¾Æ´Ï±â¿¡ vi ¿¡µðÅ͸¦ ÅëÇØ ¼öÁ¤ÇÏ¸é ¾ÈµÈ´Ù.¹Ýµå½Ã echo ¹®À» ÀÌ¿ëÇؼ ¼öÁ¤ÇÏ½Ã±æ ¹Ù¶õ´Ù.
°¡·É Ä¿³ÎÄÄÆÄÀÏ ÀÌÈÄ¿¡ ÀçºÎÆà ÇÏ´Ù°¡ ºÎÆÃÀÌ ¾ÊµÇ´Â°Ç Ä¿³Î ÆдÐÀ¸·Î º¼¼ö ¾ø´Ù.
ÀÌ·±Çö»ó½Ã ÁֵȿøÀÎÀº µð½ºÅ©¶óº§¸íÀ̳ª DISK MODULESÀÌ ¿Ã¶ó¿ÀÁö ¾Ê°ÔµÇ¸é¼ Çϵ尡 ¸¶¿îÆ® µÇÁö ¾Ê¾Æ ÀÏ¾î ³ª´Â °æ¿ìÀÌ´Ù.
±×·¸±â ¶§¹®¿¡ Ä¿³Î¿¡¼ panic ·çƾÀ» ŸÁö ¾Ê°í Á×¾î ¹ö¸®°Ô µÇ´Â°Å´Ù.
ÇѸ¶µð·Î »õ·Î¿î Ä¿³Î·Î ¹Ù²ÛÈÄ ÀçºÎÆÃÀÌ ¾ÊµÉ°æ¿ì proc¿¡ °ªÀ» ³Ö´Â´Ù°í Çصµ ÀÚµ¿ ÀçºÎÆÃÀÌ µÇÁö¾Ê´Â´Ù.
proc¿¡ °ªÀ» ³Ö´Â °æ¿ì´Â Ä¿³Î¿¡¼ do_exit ÇÔ¼ö¸¦ ºÎ¸± ¶§ ¸Þ¸ð¸®ÂÊ°ú ÆÄÀÏ ½Ã½ºÅÛÂÊ ±×¸®°í lock ¹®Á¦¿¡ ÀÇÇؼ ÀÏ¾î ³ª¼ Á¤»óÀûÀÎ panic ÇÔ¼ö¸¦ Ÿ°í panic ·çƾÀÌ µ¹¾Æ¾ßÁö¸¸ ÀÛµ¿ÇÏ°Ô µÈ´Ù.
¡Ø oops(Out of Memory) Ä¿³Î·Î ÆÇ´Ü
kernel.panic_on_oops = 0/1 : 1À̸é oops¸¦ Ä¿³Î ÆдÐÀ¸·Î °£ÁÖ