From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from max.fys.ruu.nl (max.fys.ruu.nl [131.211.32.73]) by kvack.org (8.8.7/8.8.7) with ESMTP id PAA18193 for ; Mon, 23 Mar 1998 15:41:16 -0500 Date: Mon, 23 Mar 1998 20:39:26 +0100 (MET) From: Rik van Riel Reply-To: Rik van Riel Subject: Re: 2.1.90 dies with many procs procs, partial fix In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org To: Finn Arne Gangstad Cc: Linus Torvalds , "Stephen C. Tweedie" , linux-mm List-ID: On Sun, 22 Mar 1998, Finn Arne Gangstad wrote: > int main() { > int procs = 0; > while (1) { > int err = fork(); > if (err == -1) { > perror("fork failed. eek."); > exit(EXIT_FAILURE); > } else if (err == 0) { > setsid(); > pause(); > _exit(EXIT_SUCCESS); > } > ++procs; > printf("%d children forked off\n", procs); > usleep(30000); > } > exit(EXIT_SUCCESS); > } Hmm, this is evidence that I was right when I said that the free_memory_available() system combined with our current allocation scheme gives trouble. Linus, what fix do you propose? (I don't really feel like coding a fix that will be rejected :-) Rik. +-------------------------------------------+--------------------------+ | Linux: - LinuxHQ MM-patches page | Scouting webmaster | | - kswapd ask-him & complain-to guy | Vries cubscout leader | | http://www.fys.ruu.nl/~riel/ | | +-------------------------------------------+--------------------------+