From owner-freebsd-python@FreeBSD.ORG Mon May 9 22:31:58 2005 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 78BA616A4EA for ; Mon, 9 May 2005 22:31:58 +0000 (GMT) Received: from pimout4-ext.prodigy.net (pimout4-ext.prodigy.net [207.115.63.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 000D443D81 for ; Mon, 9 May 2005 22:31:57 +0000 (GMT) (envelope-from ewan@mathcode.net) Received: from mail.mathcode.net (adsl-68-23-218-132.dsl.wotnoh.ameritech.net [68.23.218.132])j49MVvqi013644 for ; Mon, 9 May 2005 18:31:57 -0400 Received: from bsd.mathcode.net (localhost [127.0.0.1]) by mail.mathcode.net (8.12.11/8.12.11) with ESMTP id j49MWGwW011178 for ; Mon, 9 May 2005 18:32:16 -0400 (EDT) (envelope-from ewan@bsd.mathcode.net) Received: (from ewan@localhost) by bsd.mathcode.net (8.12.11/8.12.11/Submit) id j49MWGfS011177 for freebsd-python@freebsd.org; Mon, 9 May 2005 18:32:16 -0400 (EDT) (envelope-from ewan) Date: Mon, 9 May 2005 18:32:16 -0400 From: Ewan Todd To: freebsd-python@freebsd.org Message-ID: <20050509223216.GM281@mathcode.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on bsd.mathcode.net Subject: fbsd 5.4 python sigprocmask() issue 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: Mon, 09 May 2005 22:31:58 -0000 Hi, I ran a python diagnostic on my new 5.3 install this morning comparing it to a 4.10 install. Basically, the program was taking 130 seconds to perform a task that should have taken 70 seconds. The extra time is being consumed in system overheads. A whole bunch of folks confirmed the problem on a variety of machines with several kernels. Ultimately, after eliminating processor problems, systemwide kernel problems etc., python was found to be the culprit. The discussion starts at http://lists.freebsd.org/pipermail/freebsd-stable/2005-May/014575.html Suleiman Souhlal ran ktrace(1) on it and discovered that python was continually calling sigprocmask(). http://lists.freebsd.org/pipermail/freebsd-stable/2005-May/014591.html I then ran the same diagnostic in PERL, ruby, and C, and confirmed that it was a python problem. http://lists.freebsd.org/pipermail/freebsd-stable/2005-May/014596.html There were also a few attempts to speculate what the causes might be, and suggestions for workarounds. I haven't yet had the chance to investigate it further, but I did say that I would get word to the python porters, so that's what this message is about. -e