tcpserver fork

2000-03-31 Thread S Ashok Kumar

RedHat 6.1 with qmail-1.03 and ucspi - 0.84.
qmail-smtpd is run by tcpserver and the -c value is 2000. But as soon as
it reaches 1247 sessions, it is not able to fork further processes, the
error message is:

tcpserver: warning: dropping connection, unable to fork: temporary
failure

This value (1247) does not change even when I increase RAM from 512MB to
1GB or decrease it to 128MB. My question is what causes fork to not run
a new process. I know it is a non qmail question. But someone over here
who has already solved this problem may help me or point me to some URLs
to troubleshoot this.

Thanks.

- Ashok



Re: tcpserver fork

2000-03-31 Thread Peter van Dijk

On Fri, Mar 31, 2000 at 01:06:10PM +, S Ashok Kumar wrote:
> RedHat 6.1 with qmail-1.03 and ucspi - 0.84.
> qmail-smtpd is run by tcpserver and the -c value is 2000. But as soon as
> it reaches 1247 sessions, it is not able to fork further processes, the
> error message is:
> 
> tcpserver: warning: dropping connection, unable to fork: temporary
> failure
> 
> This value (1247) does not change even when I increase RAM from 512MB to
> 1GB or decrease it to 128MB. My question is what causes fork to not run
> a new process. I know it is a non qmail question. But someone over here
> who has already solved this problem may help me or point me to some URLs
> to troubleshoot this.

You are out of processes. A little tweaking with 'ulimit' might help, or
perhaps you need to tune your kernel somewhere deeper.

Greetz, Peter.
-- 
Peter van Dijk - student/sysadmin/ircoper/madly in love/pretending coder 
|  
| 'C makes it easy to shoot yourself in the foot;
|  C++ makes it harder, but when you do it blows your whole leg off.'
| Bjarne Stroustrup, Inventor of C++



Re: tcpserver fork

2000-03-31 Thread Ricardo D. Albano


I have the same problem.
I'm running qmail as inbound relay server of a large site, te server is a
4xPII 400Mhz - 1Gb RAM, but when the tcpserver processes reach about ~400,
My linux box crash (Shared library errors and 'no more forks').

How can I increment this number ?

RDA.-


>RedHat 6.1 with qmail-1.03 and ucspi - 0.84.
>qmail-smtpd is run by tcpserver and the -c value is 2000. But as soon as
>it reaches 1247 sessions, it is not able to fork further processes, the
>error message is:
>
>tcpserver: warning: dropping connection, unable to fork: temporary
>failure
>
>This value (1247) does not change even when I increase RAM from 512MB to
>1GB or decrease it to 128MB. My question is what causes fork to not run
>a new process. I know it is a non qmail question. But someone over here
>who has already solved this problem may help me or point me to some URLs
>to troubleshoot this.
>
>Thanks.
>
>- Ashok




Re: tcpserver fork

2000-03-31 Thread Ricardo Cerqueira

On Fri, Mar 31, 2000 at 12:29:37PM -0300, Ricardo D. Albano wrote:
> 
> I have the same problem.
> I'm running qmail as inbound relay server of a large site, te server is a
> 4xPII 400Mhz - 1Gb RAM, but when the tcpserver processes reach about ~400,
> My linux box crash (Shared library errors and 'no more forks').

Actually, this is more of a Linux issue...

Anyway, try this:

echo 65536 > /proc/sys/fs/inode-max
echo 16384 > /proc/sys/fs/file-max

Regards;
Ricardo

> 
> How can I increment this number ?
> 
> RDA.-
> 
> 
> >RedHat 6.1 with qmail-1.03 and ucspi - 0.84.
> >qmail-smtpd is run by tcpserver and the -c value is 2000. But as soon as
> >it reaches 1247 sessions, it is not able to fork further processes, the
> >error message is:
> >
> >tcpserver: warning: dropping connection, unable to fork: temporary
> >failure
> >
> >This value (1247) does not change even when I increase RAM from 512MB to
> >1GB or decrease it to 128MB. My question is what causes fork to not run
> >a new process. I know it is a non qmail question. But someone over here
> >who has already solved this problem may help me or point me to some URLs
> >to troubleshoot this.
> >
> >Thanks.
> >
> >- Ashok
> 

-- 
+---
| Ricardo Cerqueira  
| PGP Key fingerprint  -  B7 05 13 CE 48 0A BF 1E  87 21 83 DB 28 DE 03 42 
| Novis  -  Engenharia / Rede Técnica 
| Pç. Duque Saldanha, 1, 7º E / 1050-094 Lisboa / Portugal
| Tel: +351 21 3166730/00 (24h/dia) - Fax: +351 21 3166701



Re: tcpserver fork

2000-03-31 Thread Ricardo D. Albano

Thank's, but this doesn't work.
At 350 tcpserver forks it crash with 'can not open shared library' ...
'no more forks... etc.

RDA.-


>On Fri, Mar 31, 2000 at 12:29:37PM -0300, Ricardo D. Albano wrote:
>>
>> I have the same problem.
>> I'm running qmail as inbound relay server of a large site, te server is a
>> 4xPII 400Mhz - 1Gb RAM, but when the tcpserver processes reach about
~400,
>> My linux box crash (Shared library errors and 'no more forks').
>
>Actually, this is more of a Linux issue...
>
>Anyway, try this:
>
>echo 65536 > /proc/sys/fs/inode-max
>echo 16384 > /proc/sys/fs/file-max
>
> Regards;
> Ricardo
>
>>
>> How can I increment this number ?
>>
>> RDA.-
>>
>>
>> >RedHat 6.1 with qmail-1.03 and ucspi - 0.84.
>> >qmail-smtpd is run by tcpserver and the -c value is 2000. But as soon as
>> >it reaches 1247 sessions, it is not able to fork further processes, the
>> >error message is:
>> >
>> >tcpserver: warning: dropping connection, unable to fork: temporary
>> >failure
>> >
>> >This value (1247) does not change even when I increase RAM from 512MB to
>> >1GB or decrease it to 128MB. My question is what causes fork to not run
>> >a new process. I know it is a non qmail question. But someone over here
>> >who has already solved this problem may help me or point me to some URLs
>> >to troubleshoot this.
>> >
>> >Thanks.
>> >
>> >- Ashok
>>
>
>--
>+---
>| Ricardo Cerqueira
>| PGP Key fingerprint  -  B7 05 13 CE 48 0A BF 1E  87 21 83 DB 28 DE 03 42
>| Novis  -  Engenharia / Rede Técnica
>| Pç. Duque Saldanha, 1, 7º E / 1050-094 Lisboa / Portugal
>| Tel: +351 21 3166730/00 (24h/dia) - Fax: +351 21 3166701




Re: tcpserver fork

2000-03-31 Thread iv0


I think the standard linux kernel supports 512 processes. So you are
probably
running into that limit. You need to modify your kernel to support more
processes. There are some HOWTO's to do this on the linux sites

-- 
Ken Jones
http://www.inter7.com/vpopmail/


"Ricardo D. Albano" wrote:
> 
> I have the same problem.
> I'm running qmail as inbound relay server of a large site, te server is a
> 4xPII 400Mhz - 1Gb RAM, but when the tcpserver processes reach about ~400,
> My linux box crash (Shared library errors and 'no more forks').
> 
> How can I increment this number ?
> 
> RDA.-
> 
> >RedHat 6.1 with qmail-1.03 and ucspi - 0.84.
> >qmail-smtpd is run by tcpserver and the -c value is 2000. But as soon as
> >it reaches 1247 sessions, it is not able to fork further processes, the
> >error message is:
> >
> >tcpserver: warning: dropping connection, unable to fork: temporary
> >failure
> >
> >This value (1247) does not change even when I increase RAM from 512MB to
> >1GB or decrease it to 128MB. My question is what causes fork to not run
> >a new process. I know it is a non qmail question. But someone over here
> >who has already solved this problem may help me or point me to some URLs
> >to troubleshoot this.
> >
> >Thanks.
> >
> >- Ashok

-- 
Ken Jones
http://www.inter7.com/vpopmail/



Re: tcpserver fork

2000-03-31 Thread Steve Wolfe

> I think the standard linux kernel supports 512 processes. So you are
> probably
> running into that limit. You need to modify your kernel to support more
> processes. There are some HOWTO's to do this on the linux sites

  Unfortunately, I haven't come across docs that are correct on how to do
it.  Most docs say that it's not necessary to modify the kernel source as
it previous versions, but the tricks they suggest haven't worked for me on
2.2 or 2.3 kernels, I've still had to modify the header files as the older
docs suggest.

steve




Re: tcpserver fork

2000-03-31 Thread brianb-qmail

On Fri, 31 Mar 2000, Peter van Dijk wrote:

> On Fri, Mar 31, 2000 at 01:06:10PM +, S Ashok Kumar wrote:
> > RedHat 6.1 with qmail-1.03 and ucspi - 0.84.
> > qmail-smtpd is run by tcpserver and the -c value is 2000. But as soon as
> > it reaches 1247 sessions, it is not able to fork further processes, the
> > error message is:
> > 
> > tcpserver: warning: dropping connection, unable to fork: temporary
> > failure
> > 
> 
> You are out of processes. A little tweaking with 'ulimit' might help, or
> perhaps you need to tune your kernel somewhere deeper.

For Linux, you need to increase NR_TASKS. Edit your
/usr/src/linux/includes/linux/tasks.h and recompile the kernel.

I've already bumped up NR_TASKS to 1024, then again to 2048. From the
comments in tasks.h, the limit for NR_TASKS is 4096 on intel, but I
haven't been able to get it to boot when set to 4096 (this is on
2.2.14, IIRC, so newer/development kernels may be different.)

HTH,
Brian
--
[EMAIL PROTECTED]
http://www.baquiran.com
AIM: bbaquiran