From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28335 invoked by alias); 4 Mar 2010 03:34:22 -0000 Received: (qmail 28323 invoked by uid 22791); 4 Mar 2010 03:34:20 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from exprod6og106.obsmtp.com (HELO exprod6og106.obsmtp.com) (64.18.1.191) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 04 Mar 2010 03:34:11 +0000 Received: from source ([192.150.8.22]) by exprod6ob106.postini.com ([64.18.5.12]) with SMTP ID DSNKS48qKvIhNZLcYuAqfEeCFia7JGQh3sv/@postini.com; Wed, 03 Mar 2010 19:34:11 PST Received: from inner-relay-2.corp.adobe.com ([153.32.1.52]) by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id o243Xqs5016648; Wed, 3 Mar 2010 19:33:55 -0800 (PST) Received: from nacas02.corp.adobe.com (nacas02.corp.adobe.com [10.8.189.100]) by inner-relay-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id o243Xp06010658; Wed, 3 Mar 2010 19:33:51 -0800 (PST) Received: from nacas03.corp.adobe.com (10.8.189.121) by nacas02.corp.adobe.com (10.8.189.100) with Microsoft SMTP Server (TLS) id 8.1.375.2; Wed, 3 Mar 2010 19:33:52 -0800 Received: from nambxv01a.corp.adobe.com ([10.8.189.95]) by nacas03.corp.adobe.com ([10.8.189.121]) with mapi; Wed, 3 Mar 2010 19:33:51 -0800 From: "John (Eljay) Love-Jensen" To: Anna Sidera CC: "gcc-help@gcc.gnu.org" Date: Thu, 04 Mar 2010 03:34:00 -0000 Subject: RE: cannot run many programs simultaneously Message-ID: <4B7A6CC9992C4E4FB188D02872C90A6B134EF6@nambxv01a.corp.adobe.com> References: <4B8E9DCA.7080808@verizon.net>, In-Reply-To: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: 2010-03/txt/msg00060.txt.bz2 Hi Anna, > When I said stop, I meant they stop running before finishing. I am not sure what you mean by "stop" here. Stop as in crash? > 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. What is the memory footprint of one of the programs running by itself? For example, let's assume your machine has 64 GB of RAM, and 256 GB of swap= space. If one program running consumes 128 GB of RAM, then when you run t= he third program, your machine will have exhausted its supply of RAM (both = physical and swap). > Can you explain 'hit either the system over commit limit or actual exhaus= tion of memory'? If you have three programs running and each asks for 128 GB of RAM, and you= machine physically has 64 GB of RAM and 256 GB of swap, the OS will give e= ach program 128 GB of RAM. That overcommits the available RAM (physical + = swap). Everything will run okay as long as the programs don't actually use as much= RAM as they asked for. (A surprisingly large number of program exhibit th= e behavior of asking for a lot more heap memory than they actually use.) But if the programs do actually need all the RAM they requested, then later= on when the program goes to swap in some fresh page of memory the program = will fault. Note that the fault happens long, long after the request for m= emory was made (and which was made without having an error code). Sincerely, --Eljay