Korea FreeBSD Users Group News, Internal, Projects, Home
Software, Support, Documentation

Re: [KFUG] qmail ¼³Ä¡Áß Áú¹® µå¸³´Ï´Ù.



[ ³¯Â¥¼ø »öÀÎ ] [ ´ñ±Û¼ø »öÀÎ ] [ ÃÖ»óÀ§ »öÀÎ] [ °Ë»ö]

[ÀÌÀü ±Û] [´ÙÀ½ ±Û] [ÀÌÀü ´ñ±Û] [´ÙÀ½ ´ñ±Û]


> FreeBSD 5.4 버젼을 사용중에 있습니다.
> qmail 에 big-concurrency 패치를 한 후 컴파일을 하면 아래와 같은 오류가 
> 나옵니다.
> 
> Oops. Your system's FD_SET() has a hidden limit of 1024 descriptors.
> This means that the qmail daemons could crash if you set the run-time
> concurrency higher than 509. So I'm going to insist that the concurrency
> limit in conf-spawn be at most 509. Right now it's 1000.
> 
> 말 그대로 보면 뭔가 제한에 걸려 있어서 그런다는 뜻인거 같은데 이 값을 어떻게 
> 늘려줘야 할지 모르겠습니다.
> 답변 부탁드리겠습니다...
> 감사합니다.

커널소스를 보면
sys/sys/select.h
파일에 

/*
 * Select uses bit masks of file descriptors in longs. These macros
 * manipulate such bit fields (the filesystem macros use chars).
 * FD_SETSIZE may be defined be the user, but the default here should
 * be enough for most uses.
 */
#ifndef FD_SETSIZE
#define FD_SETSIZE        1024U
#endif

라는 내용이 있습니다. 기본값이 1024인데, qmail의 big-concurrency 패치는 동시에 그 이상의 파일을 생성하는 것을 허용하는 것으로 보입니다. 커널에서 제한이 걸려 qmail이 crash가 일어날 수 있으니 동시에 열 수 있는 파일을 509 이하가 되도록 해야한다는 것입니다. 
대규모의 메일을 주고받는 서버라면 select.h 파일을 수정하고 커널컴파일을 다시 하시거나, qmail의 big-concurrency 설정을 변경하세요.

SungGON Yi.
skon@xxxxxxxxxxxxxx
_______________________________________________
한국 FreeBSD 사용자 그룹(KFUG) questions 메일링 리스트
questions at kr.FreeBSD.org
http://www.kr.FreeBSD.org/mailman/listinfo/questions

[ ³¯Â¥¼ø »öÀÎ ] [ ´ñ±Û¼ø »öÀÎ ] [ ÃÖ»óÀ§ »öÀÎ] [ °Ë»ö]

Copyright © 1998-2005 Korea FreeBSD Users Group.
All rights reserved. webmaster at kr.FreeBSD.org
$Date: 2005/07/28 21:45:41 $
Powered by FreeBSD