From owner-freebsd-amd64@FreeBSD.ORG Thu Jan 27 18:59:36 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3D7816A4CE for ; Thu, 27 Jan 2005 18:59:36 +0000 (GMT) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F42743D1D for ; Thu, 27 Jan 2005 18:59:36 +0000 (GMT) (envelope-from jkim@niksun.com) Received: from [10.70.0.244] (daemon.mj.niksun.com [10.70.0.244]) by anuket.mj.niksun.com (8.13.1/8.12.11) with ESMTP id j0RIxYSW042461; Thu, 27 Jan 2005 13:59:35 -0500 (EST) (envelope-from jkim@niksun.com) From: Jung-uk Kim Organization: Niksun, Inc. To: freebsd-amd64@freebsd.org, Kelly Black Date: Thu, 27 Jan 2005 13:59:29 -0500 User-Agent: KMail/1.6.2 References: <1b1b33f10501270752473093ea@mail.gmail.com> In-Reply-To: <1b1b33f10501270752473093ea@mail.gmail.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="euc-kr" Content-Transfer-Encoding: 7bit Message-Id: <200501271359.30721.jkim@niksun.com> X-Virus-Scanned: clamd / ClamAV version 0.75.1, clamav-milter version 0.75c on anuket.mj.niksun.com X-Virus-Status: Clean Subject: Re: Configuration of Compaq R3000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2005 18:59:37 -0000 On Thursday 27 January 2005 10:52 am, Kelly Black wrote: > Hello, > > I have installed FreeBSD 5.3 on a Compaq Presario R3000. It has an > AMD 64 bit processor. First, I am very grateful for all of the > work done by Jung-uk Kim. If it were not for his work it would not > have been possible for me to get my machine going under FreeBSD. :-) You are very welcome. > Second, there appears to be a very serious performance issue with > this machine. I have a program that I use for benchmarks which > approximates a nonlinear PDE. It uses a 300x300 matrix which is > relatively small so it does not require much in the way of swap or > memory caching. When I run this program under freebsd it takes 234 > seconds in user time (not real). I have CygWin installed on the > windows slice and ran the exact same program. I have the 32 bit > version of Windows XP. Under CygWin the program takes 155 seconds > in user time. > > This is almost 33% better under MS windows and is a huge > discrepancy! It seems clear that something isn't right on the > machine. I have attached a copy of my kernel file. I have applied > many of the patches so generously made available by Jung-uk Kim on > this list. The times have remained consistent before and after all > of updates. I have used RELENG_5 as the src-all tag in my > cvsup,conf, > > Any pointers on what I can do to tune this machine would be very > helpful. Has anybody come across this problem? Did you use 'acpi_ppc' driver? http://www.spa.is.uec.ac.jp/~nfukuda/software/ You need this driver to run your laptop at full speed. CPU speed will be automatically adjusted by CPU load. However, it may take few seconds to get to the speed. You can set the speed manually by: sysctl hw.acpi.cpu.px_control=0 Please read comment in the acpi_ppc.c for more info. Unfortunately if you run this laptop under heavy CPU load, CPU will heat up pretty fast and 'acpi_ec' will adjust delay to prevent excessive heat. You can ignore this behavior by hacking acpi_ec.c, I believe but it's really bad idea. Laptop is not for number crunching after all. ;-) > By the way, I have used this same program to benchmark an opteron > system. On that machine I installed FreeBSD 5.3 (generic kernel) > and then installed gentoo (2.6.9 kernel). The times under both OS's > were almost identical. Hmm... Interesting. Can I see the source? Thanks, Jung-uk Kim > Sincerely, > Kel