Too Much Context Switching?

cpghost cpghost at cordula.ws
Mon Jun 30 15:06:37 UTC 2008


On Mon, 30 Jun 2008 10:48:25 -0400
alex at 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/


More information about the freebsd-questions mailing list