On Mon, 21 Jul 2003 19:52:39 PDT, junkio@cox.net said:
> If an architecture has a big stack usage per call that is
> imposed by the ABI, and larger kernel stack is allocated
> compared to other architectures because of this reason,
> shouldn't there be about the same amount of usable space left
> for the kernel programs within the allocated per-process kernel
> stack space to use? If that is not the case then the port to
> that particular architecture would not be optimal, wouldn't it?
Not necessarily. It's quite possible (likely even) that one architecture might
have N bytes overhead per call, and is allowed a 4K stack, and some other
architecture has (N+30%) overhead, so 4K isn't enough - 5K is needed. However,
other considerations cause a whole-page allocation, so instead of allocating
5K, it goes to 8K, with a 3K wastage....
So yes, you can end up with suboptimal results.
This archive was generated by hypermail 2b29 : Wed Jul 23 2003 - 22:00:45 EST