From owner-freebsd-smp Mon Jul 9 12:44:47 2001 Delivered-To: freebsd-smp@freebsd.org Received: from earth.backplane.com (earth-nat-cw.backplane.com [208.161.114.67]) by hub.freebsd.org (Postfix) with ESMTP id 28C5F37B401 for ; Mon, 9 Jul 2001 12:44:43 -0700 (PDT) (envelope-from dillon@earth.backplane.com) Received: (from dillon@localhost) by earth.backplane.com (8.11.3/8.11.2) id f69JiW799011; Mon, 9 Jul 2001 12:44:32 -0700 (PDT) (envelope-from dillon) Date: Mon, 9 Jul 2001 12:44:32 -0700 (PDT) From: Matt Dillon Message-Id: <200107091944.f69JiW799011@earth.backplane.com> To: Barney Wolff Cc: Alfred Perlstein , Michal Mertl , freebsd-smp@FreeBSD.ORG Subject: Re: Is SMP BETA in STABLE? References: <20010709104637.C1894@sneakerz.org> <20010709133904.A32043@tp.databus.com> Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org :Er, then what are the 8 httpd processes I see running on my machine? :It may well be that Apache handles all requests from a single client :in one process, to avoid unfairness, so you might try hitting it :from multiple clients. : :Oh yes - I've been running smp on two machines since 4.0, with :absolutely zero problems. But they're lightly loaded, except :during make buildworld. : :Barney Wolff : :On Mon, Jul 09, 2001 at 10:46:37AM -0500, Alfred Perlstein wrote: :> :> Apache is a single threaded program, each instance should only be able :> to take up one cpu on a mp system, so what you're seeing looks like :> it makes sense. On -stable, only one cpu can be running in the kernel at any given time. The cpu's can only run in parallel when running in userland (or one in the kernel and the other in userland). So if your web server is basically just copying bits, it will be running mostly in the kernel. If your web server is doing significant userland processing, you will see both cpu's in use - that is assuming that you have a significant enough web load. 'Single threaded' in Alfred's response simply meant that Apache can only handle one connection per fork. It still forks a number of processes and so can handle a number of connections in parallel. Apache serializes connection accept()s but that would have no bearing on what you are seeing. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message