Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Aug 1999 13:10:23 -0400 (EDT)
From:      Jeff Wheat <jeff@cetlink.net>
To:        Andrew Gallatin <gallatin@cs.duke.edu>
Cc:        freebsd-alpha@FreeBSD.ORG, Doug Rabson <dfr@nlsystems.com>
Subject:   Re: 1999-08-08 snapshot problem
Message-ID:  <XFMail.990824131023.jeff@cetlink.net>
In-Reply-To: <14274.42890.841875.678443@grasshopper.cs.duke.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks to everyone for responding. I have since resized my a disk
with disklabel and increased the size of swap by three for 512m of
swap. Still ran into the problem. I then tried another suggestion
by Shawn Kelly O Shea by using --with-low-memory which resulted in
a sucessful build. The only difference that this flag made was to
use -fno-inline when compiling sql_yacc.cc

Hope this helps someone else!

Regards,
Jeff

PS: This is still marked broken in the ports.


On 24-Aug-99 Andrew Gallatin wrote:
> 
> Jeff Wheat writes:
>  > 
>  > tom-n-jerry# pstat -s
>  > Device      1K-blocks     Used    Avail Capacity  Type
>  > /dev/od0b      130816        0   130816     0%    Interleaved
> 
> <...>
>  > c++ -DMYSQL_SERVER                     
> -DDEFAULT_MYSQL_HOME="\"/usr/local\""  -
>  > DDATADIR="\"/usr/local/var\""                  
> -DSHAREDIR="\"/usr/local/share/m
>  > ysql\""                         -DHAVE_CONFIG_H -I./../include            
> -
>  > I./../regex                     -I. -I../include -I.. -I.    -O  
> -fno-implicit-
>  > templates -DDBUG_OFF  -c sql_yacc.cc
>  > Aug 24 09:38:39 tom-n-jerry /kernel: swap_pager: out of swap space
>  > Aug 24 09:38:39 tom-n-jerry /kernel: swap_pager: out of swap space
>  > Aug 24 09:38:40 tom-n-jerry /kernel: swap_pager_getswapspace: failed
>  > Aug 24 09:38:40 tom-n-jerry /kernel: swap_pager_getswapspace: failed
>  > Aug 24 09:39:02 tom-n-jerry /kernel: pid 6183 (cc1plus), uid 0, was
> killed: out 
>  > of swap space
>  > Aug 24 09:39:02 tom-n-jerry /kernel: pid 6183 (cc1plus), uid 0, was
> killed: out 
>  > of swap space
> 
> <...>
> 
>  > It is running out of swap for some reason. This same code compiled without
> a
>  > problem under 3.2-RELEASE.
>  > 
>  > Regards,
>  > Jeff
> 
> Short answer:  
> You need more swap space.  A good rule of thumb is 3-4 times the size
> of physical memory.
> 
> More helpful answer: 
> 
> There's some sort of funkyness in the egcs c++ optimizer which makes
> it take LOTS of space.  I just built mysql for fun & watched the size
> of cc1plus get up over 280MB when building sql_yacc.cc.  It took over
> a minute to compile on a 21264 with 640MB of ram.  I've seen this sort
> of thing on x86's as well.
> 
> Using -O0 cuts the size down to "only" 25MB or so, and cuts the
> compilation time down to 4 seconds.
> 
> I think this problem is fixed in newer versions of gcc (gcc-2.95.1)
> which is soon to become the system compiler.
> 
> Drew
> 
> ------------------------------------------------------------------------------
> Andrew Gallatin, Sr Systems Programmer        http://www.cs.duke.edu/~gallatin
> Duke University                               Email: gallatin@cs.duke.edu
> Department of Computer Science                Phone: (919) 660-6590
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-alpha" in the body of the message


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.990824131023.jeff>