From owner-freebsd-chat Sat Feb 16 7: 0: 6 2002 Delivered-To: freebsd-chat@freebsd.org Received: from mail19a.dulles19-verio.com (mail19a.dulles19-verio.com [161.58.134.133]) by hub.freebsd.org (Postfix) with SMTP id B3C4137B400 for ; Sat, 16 Feb 2002 07:00:01 -0800 (PST) Received: from 198.104.176.109 (198.104.176.109) by mail19a.dulles19-verio.com (RS ver 1.0.60s) with SMTP id 024572588; Sat, 16 Feb 2002 09:59:09 -0500 (EST) Message-ID: <3C6E733C.B7B6535C@pythonemproject.com> Date: Sat, 16 Feb 2002 06:57:01 -0800 From: Rob X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.5-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Terry Lambert , Dag-Erling Smorgrav , "freebsd-chat@FreeBSD.ORG" Subject: Re: Why is Python slower on FreeBSD than Windows?/Terry is a genius :) References: <3C6D22C2.268E6915@pythonemproject.com> <3C6DD1C7.4F3DEE06@mindspring.com> <3C6DD7E4.2F3DF868@pythonemproject.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Loop-Detect: 1 Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Rob wrote: > > Terry Lambert wrote: > > > > Dag-Erling Smorgrav wrote: > > > Rob writes: > > > > I've been doing some prototyping of some number crunching programs on > > > > Python, and I found that Python is consistently slower on my laptop on > > > > FreeBSD than when I boot into Windows. For example, one program takes > > > > 800sec to run on FreeBSD and 300sec to run when I boot into Win2k. I am > > > > wondering if I should try setting -03 in make.conf and remake Python and > > > > Numpy. Right now I have just -O. > > > > > > My bet: crappy compiler. And building with -O3 will probably result > > > in incorrect code, BTW. > > > > Check the clock rate that FreeBSD displays. In some > > power saving modes, which are normally only reset by > > interaction with Windows ACPI after the boot is complete, > > so are not reset by FreeBSD, the CPU clock rate is > > reduced to reduce power consumption. It could be that > > FreeBSD is, in fact, running the processor at a lower > > clock rate than Windows. > > > > -- Terry > > Thanks, Terry. A very good point. I will check it out. Rob > -- > The Numeric Python EM Project > > www.pythonemproject.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-chat" in the body of the message Well dmesg reports 1Ghz for this Viao FX290, but I didn't believe it after Terry's message. So I went into BIOS Setup and set the power management for max performance all of the time. Now my 800 sec executable is running at 420 sec, still a little slower than Windows at 300 sec. I wonder how many other laptop users are totally in the dark that they are on slow speed all the time while in FBSD? Thanks again Terry. Rob. . -- The Numeric Python EM Project www.pythonemproject.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message