Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 23 Oct 2001 16:52:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 23 Oct 2001 16:52:26 -0400 Received: from garrincha.netbank.com.br ([200.203.199.88]:5392 "HELO netbank.com.br") by vger.kernel.org with SMTP id ; Tue, 23 Oct 2001 16:52:13 -0400 Date: Tue, 23 Oct 2001 18:52:35 -0200 (BRST) From: Rik van Riel X-X-Sender: To: Dave McCracken Cc: Linux Kernel Subject: Re: Issue with max_threads (and other resources) and highmem In-Reply-To: <72940000.1003868385@baldur> Message-ID: X-spambait: aardvark@kernelnewbies.org X-spammeplease: aardvark@nl.linux.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 23 Oct 2001, Dave McCracken wrote: > A quick examination of fork_init() shows that max_threads is supposed > to be limited so its stack/task_struct takes no more than half of > physical memory. This calculation ignores the fact that task_structs > must be allocated from the normal pool and not the highmem pool, which > is a clear bug. It also ignores the fact that tasks need things like page tables, VMAs, etc... The total kernel memory demand of the maximum number of tasks the kernel allows by default is way higher than physical memory. I submitted a patch a while ago to set the number way lower, which was accepted by Alan and in the -ac kernels. A few months later Linus followed and changed the limit in his kernels, too. regards, Rik -- DMCA, SSSCA, W3C? Who cares? http://thefreeworld.net/ (volunteers needed) http://www.surriel.com/ http://distro.conectiva.com/ - 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/