public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "John S. Fine" <johnsfine@verizon.net>
To: Anna Sidera <sidera.anan@ucy.ac.cy>
Cc: gcc-help@gcc.gnu.org
Subject: Re: cannot run many programs simultaneously
Date: Wed, 03 Mar 2010 17:35:00 -0000	[thread overview]
Message-ID: <4B8E9DCA.7080808@verizon.net> (raw)
In-Reply-To: <f5a8ffd7e96e.4b8e8f0f@ucy.ac.cy>

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.

  parent reply	other threads:[~2010-03-03 17:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-03 14:35 Anna Sidera
2010-03-03 15:48 ` Ian Lance Taylor
2010-03-03 17:35 ` John S. Fine [this message]
2010-03-04  2:28   ` Anna Sidera
2010-03-04  3:34     ` John (Eljay) Love-Jensen
2010-03-04 16:09       ` Anna Sidera
2010-03-04 16:58         ` Axel Freyn
2010-03-04 16:43     ` John S. Fine

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B8E9DCA.7080808@verizon.net \
    --to=johnsfine@verizon.net \
    --cc=gcc-help@gcc.gnu.org \
    --cc=sidera.anan@ucy.ac.cy \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).