Re: tcpserver unable to fork?

2000-05-17 Thread Tim Gollschewsky

On Wed, May 17, 2000 at 06:57:50PM +0200, Peter van Dijk spoke thusly:
> No. EAGAIN means for some _temporary_ reason it cannot fork. Maybe you have
> reached your max processes limit, globally or per user.

I su'd to qmaild and ran ulimit, it says unlimited.  Globally the machine
only has 80 processes, any other ideas?

Timbo.



Re: tcpserver unable to fork?

2000-05-17 Thread Peter van Dijk

On Wed, May 17, 2000 at 05:47:42PM +0100, Tim Gollschewsky wrote:
> Detectives,
> 
> smtpd (running from tcpserver) on my mailserver is logging this A LOT:
> 
> 958588648.209920 tcpserver: warning: dropping connection, unable to fork: tempor
> ary failure
> 
> I ran strace on the tcpserver and it's getting:
> 
> fork()  = -1 EAGAIN (Resource temporarily unavailable)
> 
> Now, EAGAIN means there wasn't enough memory to fork BUT, there is

No. EAGAIN means for some _temporary_ reason it cannot fork. Maybe you have
reached your max processes limit, globally or per user.

Greetz, Peter.
-- 
[EMAIL PROTECTED] - Peter van Dijk [student:developer:madly in love]



tcpserver unable to fork?

2000-05-17 Thread Tim Gollschewsky

Detectives,

smtpd (running from tcpserver) on my mailserver is logging this A LOT:

958588648.209920 tcpserver: warning: dropping connection, unable to fork: tempor
ary failure

I ran strace on the tcpserver and it's getting:

fork()  = -1 EAGAIN (Resource temporarily unavailable)

Now, EAGAIN means there wasn't enough memory to fork BUT, there is
haps of free swap on that box.  To test, I wrote a little C program
that mallocs 20 Mb of memory and then does a fork(), works fine.

Anybody got any ideas?

Timbo.



Re: tcpserver unable to fork?

2000-03-17 Thread Dave Sill

[EMAIL PROTECTED] wrote:

>In an act of desperation, I started another tcpserver to listen on
>another interface.  I noticed that I can only run a max of around 150
>smtpd's simultaneously, whether under one tcpserver or two.

You're likely hitting some OS resource limit like max processes per
user, max file descriptors, etc.

-Dave



Re: tcpserver unable to fork?

2000-03-17 Thread brianb-qmail

On Fri, 17 Mar 2000 [EMAIL PROTECTED] wrote:

> Today I got the following message in my SMTP logs:
> 
>   tcpserver: warning: dropping connection, unable to fork: temporary failure
>   tcpserver: status: 146/256

In an act of desperation, I started another tcpserver to listen on another interface. 
I noticed that I can only run a max of around 150 smtpd's simultaneously, whether 
under one tcpserver or two. 

> exec /usr/local/bin/softlimit -m 200 \
> /usr/local/bin/tcpserver -c256 -v -p -x /etc/tcp.smtp.cdb \
> -u $QMAILDUID -g $NOFILESGID 0 smtp \
> /usr/local/bin/rblsmtpd /var/qmail/bin/qmail-smtpd 2>&
> 
> Can someone explain what's happening?

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



tcpserver unable to fork?

2000-03-16 Thread brianb-qmail

Today I got the following message in my SMTP logs:

  tcpserver: warning: dropping connection, unable to fork: temporary failure
  tcpserver: status: 146/256

I'm currently running qmail-smtpd under supervise with the following 
line in my run file, broken for readability:

exec /usr/local/bin/softlimit -m 200 \
/usr/local/bin/tcpserver -c256 -v -p -x /etc/tcp.smtp.cdb \
-u $QMAILDUID -g $NOFILESGID 0 smtp \
/usr/local/bin/rblsmtpd /var/qmail/bin/qmail-smtpd 2>&

Can someone explain what's happening?

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



Re: tcpserver unable to fork

2000-03-09 Thread Anand Buddhdev

On Thu, Mar 09, 2000 at 02:43:59PM +0530, S Ashok Kumar wrote:

> Is there any limit  on tcpserver forking processes? I have configured
> tcpserver to fork qmail-smtpd with concurrent sessions of 2000. I have
> made a simulator that makes upto 2000 connections to qmail-smtpd. But
> when the simulator reaches 1247 connections, tcpserver reports error
> which is:
> 
> tcpserver: warning: dropping connection, unable to fork: temporary
> failure
> 
> I am testing this on a P-III, 500MHz RedHat Linux 6.1 machine with
> 512MB RAM and 1GB SWAP. The machine is off-line and there is no queue. I
> am only using it to stress test the machine so I can arrive at a value
> on number of simultaneous connections this machine can take. The
> simulator connects to port 25 and simply says "HELO localhost\r\n".
> 
> /proc/sys/fs/file-max is defined as 65536. Is there any additional
> fine-tuning I need to do with the kernel or file-system?

Raising the file-max is no good. tcpserver wants to fork and create a
new process. Increase your max-proc (or equivalent) limit.

-- 
See complete headers for more info



tcpserver unable to fork

2000-03-09 Thread S Ashok Kumar

Is there any limit  on tcpserver forking processes? I have configured
tcpserver to fork qmail-smtpd with concurrent sessions of 2000. I have
made a simulator that makes upto 2000 connections to qmail-smtpd. But
when the simulator reaches 1247 connections, tcpserver reports error
which is:

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

I am testing this on a P-III, 500MHz RedHat Linux 6.1 machine with
512MB RAM and 1GB SWAP. The machine is off-line and there is no queue. I
am only using it to stress test the machine so I can arrive at a value
on number of simultaneous connections this machine can take. The
simulator connects to port 25 and simply says "HELO localhost\r\n".

/proc/sys/fs/file-max is defined as 65536. Is there any additional
fine-tuning I need to do with the kernel or file-system?

Thanks in advance.

- Ashok