Messages in this thread | | | Subject | Re: [PATCH] Port SquashFS to 2.6 | From | Valdis.Kletnieks@vt ... | Date | Mon, 21 Jul 2003 23:42:37 -0400 |
| |
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.
[unhandled content-type:application/pgp-signature] | |