From owner-freebsd-python@FreeBSD.ORG Mon Dec 12 23:50:54 2005 Return-Path: X-Original-To: freebsd-python@freebsd.org 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 7732516A423 for ; Mon, 12 Dec 2005 23:50:54 +0000 (GMT) (envelope-from dexter@ambidexter.com) Received: from fed1rmmtao04.cox.net (fed1rmmtao04.cox.net [68.230.241.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5072D43D67 for ; Mon, 12 Dec 2005 23:50:52 +0000 (GMT) (envelope-from dexter@ambidexter.com) Received: from [192.168.1.30] (really [68.6.69.14]) by fed1rmmtao04.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20051212234912.JGIJ17690.fed1rmmtao04.cox.net@[192.168.1.30]> for ; Mon, 12 Dec 2005 18:49:12 -0500 Mime-Version: 1.0 Message-Id: Date: Mon, 12 Dec 2005 15:50:46 -0800 To: freebsd-python@freebsd.org From: Michael Dexter Content-Type: text/plain; charset="us-ascii" ; format="flowed" Subject: Zope/Python port defaults questions X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 23:50:54 -0000 Hello, I have been using Zope on FreeBSD (x86 5.2 and 6.0) via ports for over a year now and I couldn't help but notice that the default environment is not quite Zope friendly. For example: 1. People still seem to get caught not setting HUGE_STACK_SIZE when building Python for Zope use and to a lesser extent if IPv6 is disabled in the kernel (I forget the issue, maybe a warning.) 2. Zope MemoryError as a Zope process runs out of memory because the default maximum memory per process is too small, requiring settings in loader.conf or KERNCONF like: (perhaps setting them to 1GB but NOT something close to physical memory) kern.maxdsiz="1610612736" kern.dfldsiz="1610612736" kern.maxssiz="1610612736" 3. Python seem to be suing /var/tmp over /tmp and this has made it difficult to figure out why placing larger-than-available-space-in-var files into ZODB would fail when there is plenty of space in /tmp. I am told but have not verified that the solution is to place a TMPDIR variabl in zopectl so that Python will default to it. (Reportedly it should step between available tmp dirs but this behavior did not seem to help/work. A. Considering these pitfalls, might some of these want to be defined or offered as questions in the appropriate ports? (HUGE_STACK_SIZE is a choice but defaults to the zope-unfriendly setting) and... B. Have I forgotten any other settings that may prevent my Zope from blowing up at night? :) FYI, the best zope-on-freebsd page I have seen is on the Zettai help pages but they relate to their own hosting environment. (http://www.zettai.net/Support/Howto/) Michael.