From owner-freebsd-current Sat Jan 8 23:49:19 2000 Delivered-To: freebsd-current@freebsd.org Received: from arnold.neland.dk (mail.neland.dk [194.255.12.232]) by hub.freebsd.org (Postfix) with ESMTP id DA8BB14F27 for ; Sat, 8 Jan 2000 23:49:16 -0800 (PST) (envelope-from leifn@neland.dk) Received: from localhost (localhost [127.0.0.1]) by arnold.neland.dk (8.9.3/8.9.3) with ESMTP id IAA79298; Sun, 9 Jan 2000 08:49:03 +0100 (CET) (envelope-from leifn@neland.dk) Date: Sun, 9 Jan 2000 08:49:02 +0100 (CET) From: Leif Neland To: Dan Nelson Cc: Leif Neland , freebsd-current@FreeBSD.ORG, mysql@lists.mysql.com Subject: Re: 2 hours to compile mysql? In-Reply-To: <20000101133219.C612@dan.emsphone.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 1 Jan 2000, Dan Nelson wrote: > In the last episode (Jan 01), Leif Neland said: > > So far it has been taking 2 hours to compile sql_yacc.cc from > > mysql3.22. > > > > I had to find an old disk for swap, and it's swapping all the time. > > > > top shows 156M size and 46M res., run time 20min's for cc1plus. That > > probably means it's been waiting for swapping in 1h40m... > > > > The box is a 333MHz PII, with 64M ram. Do I just need more ram to be > > able to compile in reasonable time, or is something broken? > > You probably need more RAM. sql_yacc.cc is one of those "worst-case" > programs as far as gcc is concerned; I don't think gcc can parse large > case statements like this efficiently. Adding "--with-low-memory" to > your port Makefile, in the CONFIGURE_ARGS line, will help. > I got 64M more RAM(1), so the system now has 128MB. Mysql now compiles in 10 minutes or so. Leif (1) My wife got the kids a new game for christmas. It was too demanding for their 486's, so I got 2 K6-3-400MHz/64MB motherboards for them. To preserve my self-esteem, I had to upgrade my own PII-333/64Mb somehow to be more powerfull than theirs... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message