[Linux] core file 생성시 pid가 자꾸 붙네요.. ㅠㅠㅠ
글쓴이: gijung73 / 작성시간: 월, 2010/03/22 - 2:09오후
특정 서버에서 pid 생략 적용이 안되어 이렇게 자문을 구합니다.
pid가 붙으면서 현장에 core적용을 못하고 있습니다.
disk full 걱정이 되기에..
환경은 다음과 같이 같으며 적용을 하였습니다.
# uname -a
Linux (none) 2.6.26.3 #790 Wed Jan 28 15:54:46 EST 2009 mips unknown
# pwd
/proc/sys/kernel
# cat core_uses_pid
0
# cat core_pattern
core.%e
# ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 8192
coredump(blocks) unlimited
memory(kbytes) unlimited
locked memory(kbytes) 32
process 2048
nofiles 1024
vmemory(kbytes) unlimited
locks unlimited
위와 같이 셋팅을 하였지만, core file의 pid값이 생략되어야 할텐데 특정 서버에서 자꾸 생성됩니다.
많은 조언 부탁 드립니다.
Forums:
man 페이지에 이런 부분이 있군요..
If a multithreaded process (or, more precisely, a process that shares its memory with another process by being created with the CLONE_VM flag of clone(2)) dumps core, then the process ID is always appended to the core filename, unless the process ID was already included elsewhere in the filename via a %p specification in /proc/sys/kernel/core_pattern.
뭔가 다른 방법을 생각해 보셔야 할 듯..
다른 방법이 뭐가 있을런지요..
답변 갑사합니다.
그러고 보니..
멀티쓰레드 process에 한하여 pid가 붙고, 그렇지 않은 process는 pid가 안붙도록 적용이 된 것이었네요.
혹시 멀티쓰레드 process에 대해서도 pid가 붙지 않도록 설정할 수 있는 방법이 있을런지요..
다른 개발자분께서는 어떻게 하고 있는지요..
예전에 제가 Solaris 6, 9 version을 사용했었을때는 core 라는 파일이름으로만 생성되어 발생시에는
엎어썼었거든요..
혹시 다른 분들은 저 같은 고뇌를 하시는 분은 없는지요
[bushi@rose input]$ rpm -qi
fedora12 에서 볼 수 있는데, core dump 가 발생했을 때 후처리를 담당합니다.
여러가지 정책을 적용할 수 있습니다.
fedora12 데스크탑을 개발용으로 쓰는 상황에선 ... 솔직히 좀 귀찮습니다.
OTL
댓글 달기