Date: Sat, 1 Jan 2000 17:12:26 +0000 From: Josef Karthauser <joe@pavilion.net> To: Leif Neland <leifn@neland.dk> Cc: Will Andrews <andrews@TECHNOLOGIST.COM>, Leif Neland <leif@neland.dk>, freebsd-ports@FreeBSD.ORG Subject: Re: 2 hours to compile mysql? Message-ID: <20000101171226.A41032@florence.pavilion.net> In-Reply-To: <Pine.BSF.4.05.10001011738001.63588-100000@arnold.neland.dk> References: <XFMail.000101110424.andrews@TECHNOLOGIST.COM> <Pine.BSF.4.05.10001011738001.63588-100000@arnold.neland.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000101171226.A41032>