Date: Thu, 27 Jan 2005 15:21:31 -0500 From: Kelly Black <kjblack@gmail.com> To: Jung-uk Kim <jkim@niksun.com> Cc: freebsd-amd64@freebsd.org Subject: Re: Configuration of Compaq R3000 Message-ID: <1b1b33f1050127122129c73189@mail.gmail.com> In-Reply-To: <200501271359.30721.jkim@niksun.com> References: <1b1b33f10501270752473093ea@mail.gmail.com> <200501271359.30721.jkim@niksun.com>
next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_984_9619730.1106857291725 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Dear Jung-uk Kim, It works! Thank you! I downloaded it and built the module. I can't read Japanese so the readme was not much use. I blindly tried "make ; make install" and it put the module in /boot/kernel. Fortunately, the comments in the program are pretty good. When I tried "kldload acpi_ppc" it loaded the module with no trouble. (I had already applied the patchs that you had posted earlier.) This time when I ran it the time was down to 95 seconds which is faster than my desktop system, a one year old P4, and is much faster than CygWin. (Our opteron system runs this program in 81 seconds.) It was pretty cool to start the process up and a little while later hear the fan kick in. There is nothing like instant feedback! :-) The only problem is that I have to run the machine with acpi enabled to take advantage of the driver. I've had some stability problems with acpi enabled so I will probaly only use this under special circumstances. Again, thank you for this pointer and thank you for all your work on this machine. Your work made it possible to get FreeBSD working on this beast. It has been surprising how many little things have made this machine so difficult to configure. I will try to attach a copy of the program and makefile with this email as per your request. To create an executable type "make hermite" and then run the executable, ./hermite, from the command line. You will have to create a directory called "graph" wherever you happen to put the files because at the start of the run it writes a file to that directory. Finally, there is a stochastic component, and a random variable is added at each time step. The time required will vary from slightly from run to run, so you have to make multiple runs and average them to get a better idea of how long it takes. This is not quite the full blown version. We double the matrix size and double the time steps for the bigger problem and have to make multiple runs because of the stochastic part. Sincerely, Kel On Thu, 27 Jan 2005 13:59:29 -0500, Jung-uk Kim <jkim@niksun.com> wrote: > 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 > ------=_Part_984_9619730.1106857291725 Content-Type: application/octet-stream; name="makefile" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="makefile" Q0ZMQUdTID0gIC1PMiAtbWFyY2g9YXRobG9uNjQKI0NGTEFHUyA9ICAtZyAKQ0MgPSBnKysKQVIg PSBhcgpBUkZMQUdTID0gcnYKTVlMSUIgPSBsaWJtaW5lCkxJQiA9IApMSU5LID0gLWxtCi5TVUZG SVhFUzogLmMgLmNwcAoKCi5jcHAubzoKCWVjaG8gJ0NvbXBpbGluZyAkPCcKCSQoQ0MpICQoQ0ZM QUdTKSAtYyAkPAoKLmMubzoKCSQoQ0MpICQoQ0ZMQUdTKSAtYyAkPAoKCmZpbkRpZmY6IGZpbkRp ZmYubyBmaW5EaWZmLmgKCWVjaG8gJ0xpbmtpbmcgJEAnCgkkKENDKSAtbyAkQCAkQC5vICQoTElO SykgCgoKaGVybWl0ZTogaGVybWl0ZS5vIGhlcm1pdGUuaAoJZWNobyAkQAoJJChDQykgLW8gJEAg JEAubyAkKExJTkspIAoKCnZhcmlhdGlvbmFsOiB2YXJpYXRpb25hbC5vIHZhcmlhdGlvbmFsLmgK CWVjaG8gJEAKCSQoQ0MpIC1vICRAICRALm8gJChMSU5LKSAKCgokKE1ZTElCKS5hOgkkKExJQikg CgkJcm0gLWYgJChNWUxJQikuYQoJCSQoQVIpICQoQVJGTEFHUykgJChNWUxJQikuYSAkKExJQikK CQlAZWNobyAgRG9uZQoK ------=_Part_984_9619730.1106857291725--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1b1b33f1050127122129c73189>