From owner-freebsd-ports@FreeBSD.ORG Mon Apr 21 05:32:46 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE6E337B401 for ; Mon, 21 Apr 2003 05:32:46 -0700 (PDT) Received: from dsl093-019-250.msp1.dsl.speakeasy.net (dsl093-019-250.msp1.dsl.speakeasy.net [66.93.19.250]) by mx1.FreeBSD.org (Postfix) with SMTP id 2242743F75 for ; Mon, 21 Apr 2003 05:32:46 -0700 (PDT) (envelope-from peter@jocose.org) Received: (qmail 14829 invoked from network); 21 Apr 2003 12:32:45 -0000 Received: from unknown (HELO jocose.org) (10.0.0.194) by 0 with SMTP; 21 Apr 2003 12:32:45 -0000 Message-ID: <3EA3E4E3.8050005@jocose.org> Date: Mon, 21 Apr 2003 07:32:35 -0500 From: Peter Schultz User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4a) Gecko/20030418 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Kennaway References: <3EA2AA58.2070007@jocose.org> <20030420223609.GA79270@rot13.obsecurity.org> In-Reply-To: <20030420223609.GA79270@rot13.obsecurity.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-ports@freebsd.org Subject: Re: FreeBSD Port: setiathome-3.03_7 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Apr 2003 12:32:47 -0000 Kris Kennaway wrote: > On Sun, Apr 20, 2003 at 05:13:52PM +0200, Dirk Meyer wrote: > >>Hallo Peter Schultz, >> >> >>>I have been given the source code for setiathome-3.08 to build an >>>updated version for FreeBSD. Since I'm running 4.8-STABLE, I'd like to >>>add support for all versions of FreeBSD i386 2.2.5-4.x, as has been done >>>with the current binary. I'm sure there must be numerous ways to do >>>this, and I'm hoping someone can advise me. >> >>If you want to support FreeBSD 2.2.x you must create a.out binaries. >>Best way to do this is on a FreeBSD 2.2.x System. >>modern FreeBSD will run will be able to run this stil. >>Not sure how good cross-compiling for a.out works, >>but I can test on 2.2.8 here. > > > Support for a.out binaries on 5.0 requires a kernel compatibility > option. A native 4.x/5.0 ELF version (as well as the 2.x a.out > version) would be better. > I'll just build 4.8 and 5.0 versions then and see how that gets by. > >># file /usr/local/sbin/setiathome >>/usr/local/sbin/setiathome: FreeBSD/i386 compact demand paged executable >> >>It would be nice to have some versions optimzed ... > > > Yes. > $file setiathome-3.08.i386-unknown-freebsd4.8 setiathome-3.08.i386-unknown-freebsd4.8: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 4.8, statically linked, stripped I agree, this application is more for platform advocacy than it is anything else these days. I use it to burn in machines because it helps peg the proc and memory. Yesterday I built it statically with optimized libc and libm. For libc I used `-O3 -pipe', because it wouldn't compile with the flags I used for libm and setiathome: `-O3 -fno-exceptions -fno-rtti -funroll-loops -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe'. Since I normally use `-O -pipe', I'm hoping there are people here who can give me optimization suggestions. Would making it i686 only help? So, I got a report back from a guy who tested it. He normally runs the linux binary and said that it's still about a half hour faster. If you've run setiathome much then you know a half hour difference is good because the work units vary. I gave him a reference unit used to test the clients. Anyway, one would have to use the reference unit on both to get a fair time trial. Anyone interested in testing please e-mail me. Thanks, Pete...