From owner-freebsd-alpha Tue Aug 24 9:30:16 1999 Delivered-To: freebsd-alpha@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 32F5815945 for ; Tue, 24 Aug 1999 09:29:41 -0700 (PDT) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.1/8.9.1) with ESMTP id KAA16804; Tue, 24 Aug 1999 10:27:10 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.9.3/8.9.1) id KAA09331; Tue, 24 Aug 1999 10:27:10 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 24 Aug 1999 10:27:09 -0400 (EDT) To: Jeff Wheat Cc: Doug Rabson , freebsd-alpha@FreeBSD.ORG Subject: Re: 1999-08-08 snapshot problem In-Reply-To: References: X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14274.42890.841875.678443@grasshopper.cs.duke.edu> Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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