Re: [PATCH 2.4.19-pre2] Make max_threads be based on normal zone size

Andi Kleen (ak@suse.de)
01 Mar 2002 19:14:41 +0100


Dave McCracken <dmccr@us.ibm.com> writes:

> The max_threads config parameter (used to determine how many tasks to
> allow) is currently calculated based on the total amount of physical memory
> in the machine. This is wrong, since the real limiting factor is the
> amount of memory in the normal zone.
>
> This patch fixes the initialization of max_threads by allowing an
> architecture to specify how much memory is in the normal zone, and using
> that value to initialize max_threads.

There are lots of other functions with the same problem (like all the
hash table sizing and others). Perhaps these should be fixed too?

-Andi
-
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/