From owner-freebsd-questions@FreeBSD.ORG Mon Jun 30 22:36:54 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 334171065671 for ; Mon, 30 Jun 2008 22:36:54 +0000 (UTC) (envelope-from michel@lpthe.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.freebsd.org (Postfix) with ESMTP id 9EC9E8FC16 for ; Mon, 30 Jun 2008 22:36:53 +0000 (UTC) (envelope-from michel@lpthe.jussieu.fr) Received: from parthe.lpthe.jussieu.fr (parthe.lpthe.jussieu.fr [134.157.10.1]) by shiva.jussieu.fr (8.14.3/jtpda-5.4) with ESMTP id m5ULhRZ2092141 for ; Mon, 30 Jun 2008 23:43:28 +0200 (CEST) X-Ids: 168 Received: from niobe.lpthe.jussieu.fr (niobe.lpthe.jussieu.fr [134.157.10.41]) by parthe.lpthe.jussieu.fr (Postfix) with ESMTP id 6FECC236FEA for ; Mon, 30 Jun 2008 23:43:26 +0200 (CEST) Received: by niobe.lpthe.jussieu.fr (Postfix, from userid 2005) id 657E030; Mon, 30 Jun 2008 23:43:26 +0200 (CEST) Date: Mon, 30 Jun 2008 23:43:26 +0200 From: Michel Talon To: freebsd-questions@freebsd.org Message-ID: <20080630214326.GA3833@lpthe.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (shiva.jussieu.fr [134.157.0.168]); Mon, 30 Jun 2008 23:43:28 +0200 (CEST) X-Virus-Scanned: ClamAV 0.93/7418/Tue Jun 10 15:08:07 2008 on shiva.jussieu.fr X-Virus-Status: Clean X-Miltered: at jchkmail.jussieu.fr with ID 4869537F.002 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 4869537F.002/134.157.10.1/parthe.lpthe.jussieu.fr/parthe.lpthe.jussieu.fr/ X-j-chkmail-Score: MSGID : 4869537F.002 on jchkmail.jussieu.fr : j-chkmail score : . : R=. U=. O=. B=0.022 -> S=0.022 X-j-chkmail-Status: Ham 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 22:36:54 -0000 alex@schnarff.com wrote: > It's actually been a long, slow, steady degradation of performance as > best I can tell, that's recently just reached proportions that are so > ridiculous that it's gone from "this sucks but I can deal" to "this is > completely unusable." The system has been slow from the start, just not > this slow. I guess I'll need to investigate this...and while I know > that Python is somewhat off-topic, if anyone here has any suggestions > on where to start, they'd be much appreciated. :-) If you want to factor FreeBSD out of the problem, try to do the exact same Plone stuff under a good and easy Linux distro, like Ubuntu, and you will know if the problem is in Plone. In this case you have a workaround using a multiplexer as someone else mentioned, assuming your machine has several cores and a lot of memory. I am not an expert, but i have heard that Java frameworks have much better scalability, partly because threads are handled in a more reasonable way, and also because the JIT is very good. By the way, you can try to run Plone under psyco http://psyco.sourceforge.net/ provided you have a lot of memory. I have seen good improvement for some python programs with psyco. I have found a speed comparison which may enlighten you here: http://www.alrond.com/en/2007/jan/25/performance-test-of-6-leading-frameworks/ It has some remarks at the end which may help for plone. -- Michel TALON