Stack usage
John Hughes <[email protected]>
| Newsgroups | gmane.linux.cluster.ssic.devel |
|---|---|
| Message-ID | <[email protected]> |
One of the problems we have in current OpenSSI is excessive stack
usage. This is often a problem when we use drbd for the root filesystem
(cfs calls drbd which calls the socket layer which... runs out of stack).
So we're currently using 8KSTACKS.
But in general more recent versions of Linux are moving away from
8KSTACKS. (8KSTACKS only works if the system can be sure to allocate
two contiguous pages, which can be difficult).
So, who is using the memory?
I have the impression that our RPC mechanism is using more memory than
it should, we end up with quite a lot of code like:
func1 (many params.....)
many locals = many params;
func 2 (many more params....);
...
And we have a one function that uses *huge* amounts of local stack: the
mosix derived function "consider" uses around 2148 bytes of stack on
it's own! (The only other functions in the kernel which use so much
stack are the zlib things that are mostly only used on boot).
Just for info.
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB