From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10656 invoked by alias); 4 Mar 2010 02:28:33 -0000 Received: (qmail 10619 invoked by uid 22791); 4 Mar 2010 02:28:30 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from hermes.csrv.ucy.ac.cy (HELO hermes.csrv.ucy.ac.cy) (194.42.13.180) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 04 Mar 2010 02:28:22 +0000 Received: from ucy.ac.cy ([127.0.0.1]) by hermes.csrv.ucy.ac.cy (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTP id <0KYQ0093BK1NSO40@hermes.csrv.ucy.ac.cy> for gcc-help@gcc.gnu.org; Thu, 04 Mar 2010 04:24:59 +0200 (EET) Received: from [213.7.234.48] by hermes.csrv.ucy.ac.cy (mshttpd); Thu, 04 Mar 2010 04:24:59 +0200 Date: Thu, 04 Mar 2010 02:28:00 -0000 From: Anna Sidera Subject: Re: cannot run many programs simultaneously In-reply-to: <4B8E9DCA.7080808@verizon.net> To: "John S. Fine" Cc: gcc-help@gcc.gnu.org Message-id: MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline References: <4B8E9DCA.7080808@verizon.net> 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: 2010-03/txt/msg00059.txt.bz2 When I said stop, I meant they stop running before finishing. If increasing the swap space makes them vrey slow this will not help me. The reason I run 6 programms simultaneously is to save time. Can you explain 'hit either the system over commit limit or actual exhaustion of memory'? I will ask about this problem at the linux forum also. Thanks, Anna ----- Original Message ----- From: "John S. Fine" Date: Wednesday, March 3, 2010 7:35 pm Subject: Re: cannot run many programs simultaneously > As Ian already explained, you're asking in the wrong place, > because > there is no reason to believe this is a GCC issue. > > The programming or linux-general forums at LQ would be a better > place if > this discussion needs a lot of follow up. > http://www.linuxquestions.org/questions/ > > But for now, I'll give the basic answer: > > Anna Sidera wrote: > > They run for some time and then they stop. However when I run > only 3 of them simultaneously, and then run the other 3, they all > finish successfully. > > > The obvious explanation for that behavior would be you hit either > the > system over commit limit or actual exhaustion of memory. Until > you rule > that out, you shouldn't look for any more obscure theory. > > Either one of those (over commit limit or exhaustion of memory) > could be > dealt with by increasing the amount of swap space in the system. > If you > lack enough physical memory to run 6 of those processes at once, > increasing swap space would stop that from crashing, but might > just make > them crawl instead of crash. (Depending on what you mean by > "stop", > that might already be what you are experiencing. You may need to > explain "stop" better in order to get a better answer). > > I do not know if it is a bug or a problem with the memory the > system allows me to use. The output of the ulimit -a command is > the following: > > That isn't relevant. No matter what ulimit allows each process to > use, > it can't allow the total of all six processes to use more than is > available for the whole system. > >