From owner-freebsd-hackers Thu Aug 7 19:04:22 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id TAA15192 for hackers-outgoing; Thu, 7 Aug 1997 19:04:22 -0700 (PDT) Received: from misery.sdf.com (misery.sdf.com [204.244.210.193]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id TAA15183 for ; Thu, 7 Aug 1997 19:04:17 -0700 (PDT) Received: from tom by misery.sdf.com with smtp (Exim 1.62 #1) id 0wweP8-0006PM-00; Thu, 7 Aug 1997 19:03:50 -0700 Date: Thu, 7 Aug 1997 19:03:49 -0700 (PDT) From: Tom Samplonius To: "Daniel O'Callaghan" cc: freebsd-hackers@freebsd.org Subject: Re: Listen queue overflows and SOMAXCONN In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Fri, 8 Aug 1997, Daniel O'Callaghan wrote: > If I have to, I will stop running the servers out of inetd, or build I would. inetd will really hurt your ability to handle lots of connections. inetd is single threaded. It accepts a single connection, then forks, and execs, then accepts another connection. So basically, you get the time it takes to fork, and exec delay between accepting every connection. Not too good. If you run in daemon mode, you always save the exec time, plus apache can pre-fork a number of daemons to save you that time as well. Basicallly, a big win. > another machine to share the load, but I'm sure FreeBSD should be able to > handle this load easily. The machine is a P133 on Gigabyte 512k m/b 48MB > RAM, ncr scsi with SCSI-2 disks. top says load average=0.3 and Idle=90% > There are 254 IP addresses aliased to lo0. Basically load isn't getting very high, because it isn't working very efficiently. I belive fork times are a bit faster in 2.2-stable. Also, compiling httpd static might speed your exec times (and fork?). Basically shared libraries don't need to considered during the exec. > /* Daniel O'Callaghan */ > /* HiLink Internet danny@hilink.com.au */ > /* FreeBSD - works hard, plays hard... danny@freebsd.org */ > > > Tom