Date: Mon, 30 Jun 2008 17:06:33 +0200 From: cpghost <cpghost@cordula.ws> To: alex@schnarff.com Cc: questions@freebsd.org Subject: Re: Too Much Context Switching? 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080630170633.3f28620b>