From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21251 invoked by alias); 15 Feb 2008 00:04:45 -0000 Received: (qmail 21241 invoked by uid 22791); 15 Feb 2008 00:04:44 -0000 X-Spam-Check-By: sourceware.org Received: from mailhub129.itcs.purdue.edu (HELO mailhub129.itcs.purdue.edu) (128.210.5.129) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 15 Feb 2008 00:04:22 +0000 Received: from [128.10.160.183] (nat-lwsn2133-01.cs.purdue.edu [128.10.19.251]) (authenticated bits=0) by mailhub129.itcs.purdue.edu (8.14.2/8.14.2/smtp-auth.purdue.edu) with ESMTP id m1F04JcA016223 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 14 Feb 2008 19:04:20 -0500 Message-ID: <47B4D705.8090205@cs.purdue.edu> Date: Fri, 15 Feb 2008 00:04:00 -0000 From: Tomas Kalibera User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: Ian Lance Taylor CC: gcc-help@gcc.gnu.org Subject: Re: Can GCC use more than 4G while compiling ? References: <47B37803.4020205@cs.purdue.edu> <47B3CF54.4060904@cs.purdue.edu> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PerlMx-Virus-Scanned: Yes X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-02/txt/msg00168.txt.bz2 Ian Lance Taylor wrote: > Tomas Kalibera writes: > > >>> What is the exact error message? Are all the compiler binaries 64-bit >>> executables? >>> >>> >> - "virtual memory exhausted: Cannot allocate memory" >> > > OK, that means that a call to mmap using MAP_ANONYMOUS returned > MAP_FAILED with errno set to ENOMEM. I see from the mmap man page > that that can happen when the process's has reached the maximum number > of mappings. It seems at least possible that you are running out of > maps before you are running out of memory. On a GNU/Linux system you > can see the maximum map count with "/sbin/sysctl vm.max_map_count". > You can change that value using /sbin/sysctl -w. > Thanks! This helped. I assume that it might also help to override GGC_QUIRE_SIZE (now it's set in ggc-page.c to 256, when mmap is used). But I did not check. Tomas