From owner-freebsd-python@FreeBSD.ORG Mon Feb 23 17:16:29 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5FC016A4CE; Mon, 23 Feb 2004 17:16:29 -0800 (PST) Received: from diligence.flag.rootnode.com (adsl-65-67-81-98.dsl.ltrkar.swbell.net [65.67.81.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9E1543D1F; Mon, 23 Feb 2004 17:16:29 -0800 (PST) (envelope-from joe@osoft.us) Received: from osoft.us (coherence.flag.rootnode.com [10.0.1.105]) by diligence.flag.rootnode.com (Postfix) with ESMTP id ED7A5D4AA; Mon, 23 Feb 2004 19:16:28 -0600 (CST) Message-ID: <403AA655.8000801@osoft.us> Date: Mon, 23 Feb 2004 19:18:13 -0600 From: Joe Koberg User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Sebastien Gioria References: <20040223154004.A9981@thorm.gioria.dyndns.org> In-Reply-To: <20040223154004.A9981@thorm.gioria.dyndns.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: python@FreeBSD.ORG Subject: Re: Zope/plone X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Feb 2004 01:16:30 -0000 Sebastien Gioria wrote: >Im' searching some links to best tune my FreeBSD systems >for python/zope/plone optimization. > >The servers will do some shared hosting of zope server > > > Make python from ports and set WANT_HUGE_STACK_SIZE: /usr/ports/lang/python $ make WANT_HUGE_STACK_SIZE=yes ... This sets a 1MB instead of 128KB stack size for threads in python. Plone in particluar needs this to prevent core dumps, but I have only seen it happen under python 2.1 and zope <=2.6. FreeBSD 4.6 - 4.8. I say install zope/plone from plain source, not ports. If you have an SMP system and are looking for production speed under load, I hear you should run a ZEO storage server process and run a client Zope instance for each processor. Then load-balance incoming requests onto all those with Apache or other magic. I don't know how sessions work with this setup. It also reduces impact of the python global interpreter lock (only one thread can enter the python interpreter at a time). Running a ZEO server is supposed to be good for other reasons too. You better have a lot of memory though. Joe Koberg joe x osoft.us Python, Zope, and Plone consultants Little Rock AR http://osoft.us/