From owner-freebsd-ports Sat Jan 1 9:12:34 2000 Delivered-To: freebsd-ports@freebsd.org Received: from florence.pavilion.net (florence.pavilion.net [212.74.0.25]) by hub.freebsd.org (Postfix) with ESMTP id A303A14CB1 for ; Sat, 1 Jan 2000 09:12:30 -0800 (PST) (envelope-from joe@florence.pavilion.net) Received: (from joe@localhost) by florence.pavilion.net (8.9.3/8.8.8) id RAA42466; Sat, 1 Jan 2000 17:12:26 GMT (envelope-from joe) Date: Sat, 1 Jan 2000 17:12:26 +0000 From: Josef Karthauser To: Leif Neland Cc: Will Andrews , Leif Neland , freebsd-ports@FreeBSD.ORG Subject: Re: 2 hours to compile mysql? Message-ID: <20000101171226.A41032@florence.pavilion.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: X-NCC-RegID: uk.pavilion Organisation: Pavilion Internet plc, Lees House, 21-23 Dyke Road, Brighton, England Phone: +44-845-333-5000 Fax: +44-845-333-5001 Mobile: +44-403-596893 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, Jan 01, 2000 at 05:45:32PM +0100, Leif Neland wrote: > > Paul DuBois, paul@snake.net suggested the use of running configure > --with-low-memory, perhaps the makefile could do that by itself, if it was > defined what should be considered low memory. > I reckon it's a bug somewhere: # uname -a FreeBSD genius.systems.pavilion.net 4.0-CURRENT FreeBSD 4.0-CURRENT #30: Sat Jan 1 02:22:53 GMT 2000 joe@genius.systems.pavilion.net:/usr/src/sys/compile/GENIUS i386 # make [cut] c++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local\"" \ -DDATADIR="\"/var/db/mysql\"" \ -DSHAREDIR="\"/usr/local/share/mysql\"" \ -DHAVE_CONFIG_H -I./../include \ -I./../regex -I. -I../include -I.. -I. \ -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 \ -DDBUG_OFF -O -pipe -fno-implicit-templates -c sql_yacc.cc [cut] This burns processor and memory: 14142 root 52 0 156M 134M STOP 1:22 83.20% 82.37% cc1plus But if I remove the '-O' option: time c++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local\"" \ -DDATADIR="\"/var/db/mysql\"" \ -DSHAREDIR="\"/usr/local/share/mysql\"" \ -DHAVE_CONFIG_H -I./../include \ -I./../regex -I. -I../include -I.. -I. \ -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 \ -DDBUG_OFF -pipe -fno-implicit-templates -c sql_yacc.cc 6.82s user 0.23s system 91% cpu 7.700 total It takes 6.82 seconds and completes. I conclude that there's an optimiser bug somewhere. Joe -- Josef Karthauser FreeBSD: Take the red pill and we'll show you just how Technical Manager deep the rabbit hole goes. (http://www.uk.freebsd.org) Pavilion Internet plc. [joe@pavilion.net, joe@freebsd.org, joe@tao.org.uk] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message