Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751087AbWHPKFE (ORCPT ); Wed, 16 Aug 2006 06:05:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751089AbWHPKFE (ORCPT ); Wed, 16 Aug 2006 06:05:04 -0400 Received: from embla.aitel.hist.no ([158.38.50.22]:27359 "HELO embla.aitel.hist.no") by vger.kernel.org with SMTP id S1751087AbWHPKFB (ORCPT ); Wed, 16 Aug 2006 06:05:01 -0400 Message-ID: <44E2ED07.6070203@aitel.hist.no> Date: Wed, 16 Aug 2006 12:01:43 +0200 From: Helge Hafting User-Agent: Thunderbird 1.5.0.4 (X11/20060713) MIME-Version: 1.0 To: "linux-os (Dick Johnson)" CC: Willy Tarreau , Irfan Habib , Linux kernel Subject: Re: Maximum number of processes in Linux References: <3420082f0608151059s40373a0bg4a1af3618c2b1a05@mail.gmail.com> <20060815182219.GL8776@1wt.eu> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1107 Lines: 46 linux-os (Dick Johnson) wrote: > Yep.... > > #include > #include > int main() > { > unsigned long i; > for(i = 0; ; i++) > { > switch(fork()) > { > case 0: // kid > pause(); > break; > case -1: // Failed > printf("%lu\n", i); > kill(0, SIGTERM); > exit(0); > default: > break; > } > } > return 0; > } > > Shows a consistent 6140. > Doesn't work here. Without ulimit, I wasn't surprised about the resulting OOM mess. Problem was, it never stopped. I expected OOM to kill this program, and quite possibly lots of other running programs as well. What I got, was ever-rolling OOM messages with stack traces inbetween. 2.6.18-rc4-mm1 never recovered and had to be killed by sysrq. Helge Hafting - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/