Re: [PATCH] Port SquashFS to 2.6

From: Valdis.Kletnieks@vt.edu
Date: Mon Jul 21 2003 - 22:42:37 EST


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.



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



This archive was generated by hypermail 2b29 : Wed Jul 23 2003 - 22:00:45 EST