Re: [PATCH] fork failures on ix86

Bernd Schmidt (crux@Pool.Informatik.RWTH-Aachen.DE)
Fri, 10 Jul 1998 13:42:45 +0200 (MET DST)


> The main reason when I remember it right to extend the kernel stack was
> not increased stack usage, but for putting the task structure at the
> bottom of the stack to turn "current" into "sp & MASK". This is important
> for good performance on SMP machines. Many non-x86 ports use a dedicated
> register for that, but that is not possible for x86 because it has so few.
>
> It turned out that 4k-sizeof(struct task_struct) was too small, so it was
> increased to 8k-sizeof(struct task_struct).
>
> If a better way could be found to solve this current problem then the
> kernel stack could probably shrinked to a single page again on x86.

How about putting only a pointer to the task structure at the bottom of the
stack?

Bernd

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu