From owner-freebsd-questions@FreeBSD.ORG Mon Jun 30 15:06:37 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2442106566C for ; Mon, 30 Jun 2008 15:06:37 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.freebsd.org (Postfix) with ESMTP id 677418FC13 for ; Mon, 30 Jun 2008 15:06:37 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from epia-2.farid-hajji.net (epia-2 [192.168.254.11]) by fw.farid-hajji.net (Postfix) with ESMTP id 624FD347B2; Mon, 30 Jun 2008 17:06:35 +0200 (CEST) Date: Mon, 30 Jun 2008 17:06:33 +0200 From: cpghost To: alex@schnarff.com Message-ID: <20080630170633.3f28620b@epia-2.farid-hajji.net> In-Reply-To: <20080630104825.hm91ul0focsgg0s0@mail.schnarff.com> References: <20080629222123.n0rgkjka50c084k4@mail.schnarff.com> <4868B21D.9040105@FreeBSD.org> <20080630104825.hm91ul0focsgg0s0@mail.schnarff.com> Organization: Cordula's Web X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.9; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org Subject: Re: Too Much Context Switching? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jun 2008 15:06:37 -0000 On Mon, 30 Jun 2008 10:48:25 -0400 alex@schnarff.com wrote: > Actually, I decided to run vmstat this morning for a little while > after turning off Zope, and during the couple of minutes I had it > going, the number of processes running (as indicated by the leftmost > column of vmstat's output) was at 0 for all but one line worth of > output, so I would guess that vmstat's not including itself in the > number of processes there. Even so, though, your assessment about how > saturated the CPU is is of course still valid, which leads me to a > follow-up question: by default, can a multi-threaded app use both > cores? Or would I need to have two instances of the process running > (Zope is apparently able to handle multiple instances running > reasonably well) in order to have it fully utilize the CPU? You need to run ZEO if you want to make use of multiple CPUs in Zope. Here's a small HOWTO. It's for gentoo, but easily adaptable to FreeBSD: http://gentoo-wiki.com/HOWTO_ZEO/Zope_and_Plone Good luck optimizing the Beast! ;-) > Alex Kirk -cpghost. -- Cordula's Web. http://www.cordula.ws/