From owner-freebsd-python@FreeBSD.ORG Thu Jun 12 12:40:43 2008 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A01B106568F; Thu, 12 Jun 2008 12:40:43 +0000 (UTC) (envelope-from andymac@bullseye.apana.org.au) Received: from ipmail01.adl6.internode.on.net (ipmail01.adl6.internode.on.net [203.16.214.146]) by mx1.freebsd.org (Postfix) with ESMTP id C4A4C8FC1D; Thu, 12 Jun 2008 12:40:42 +0000 (UTC) (envelope-from andymac@bullseye.apana.org.au) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtMEALeyUEg7pyt2/2dsb2JhbACBW6wX X-IronPort-AV: E=Sophos;i="4.27,631,1204464600"; d="scan'208";a="124714950" Received: from ppp59-167-43-118.lns2.cbr1.internode.on.net (HELO bullseye.apana.org.au) ([59.167.43.118]) by ipmail01.adl6.internode.on.net with ESMTP; 12 Jun 2008 21:55:23 +0930 Received: from [192.168.63.10] (tenring.andymac.org [192.168.63.10]) by bullseye.apana.org.au (8.14.2/8.14.2) with ESMTP id m5CCNFeW016382; Thu, 12 Jun 2008 22:23:16 +1000 (EST) (envelope-from andymac@bullseye.andymac.org) Message-ID: <485107C2.7080202@bullseye.andymac.org> Date: Thu, 12 Jun 2008 22:25:54 +1100 From: Andrew MacIntyre User-Agent: Thunderbird 2.0.0.14 (OS/2/20080509) MIME-Version: 1.0 To: Felipe Neuwald References: <928b5da90806111738h55bbbbb0y3e9731323a1561f4@mail.gmail.com> In-Reply-To: <928b5da90806111738h55bbbbb0y3e9731323a1561f4@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-performance@freebsd.org, freebsd-python@freebsd.org Subject: Re: Performance with python and FreeBSD 7.0 amd64 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: Thu, 12 Jun 2008 12:40:43 -0000 Felipe Neuwald wrote: > We have a few servers running zope + plone. On one server running > FreeBSD 6.3-STABLE i386, I got no problems, but, with one server > running FreeBSD 7.0-STABLE amd64, same versions of applications, I got > some errors, like the following: > > dmesg result: > pid 74775 (python), uid 1002: exited on signal 11 segmentation violation {...} > pid 75949 (python), uid 1002: exited on signal 10 bus error {...} > pid 75999 (python), uid 1002: exited on signal 4 illegal instruction {...} Hmm... that's an interesting mix of failures. I have seen bus errors when Python runs out of stack space either in the main thread or child threads (not an unknown issue with Zope). gcc 4.x in my limited experience generates sometimes noticeably larger stack frames than gcc 3.x (which is standard on 6.x), which can provoke unexpected stack exhaustion. You don't mention whether you're using a local build or a binary package. Nor do you mention the point release (python 2.4.5 is the most recent in the 2.4 series). The default thread stack size according to my 6.3 box's ports is 1MB for Python 2.4.4) which should be adequate for most circumstances. The illegal instruction failure suggests something wrong with your binaries (including those built for Zope). The segmentation violations often indicate a problem with reference counts, frequently attributable to bugs in 3rd party extensions. You might want to check that all binaries for Python, Zope & Plone (if it has any) link against the same libraries. If you can snaffle cores, you might want to try and extract backtraces from gdb (debugging symbols would make this more productive...) -- ------------------------------------------------------------------------- Andrew I MacIntyre "These thoughts are mine alone..." E-mail: andymac@bullseye.apana.org.au (pref) | Snail: PO Box 370 andymac@pcug.org.au (alt) | Belconnen ACT 2616 Web: http://www.andymac.org/ | Australia