Re: [Haifux] stack size

2003-06-19 Thread Eli Billauer
Hello Orna. What I would do, is to write a small function which returns the value of the stack pointer, when it was called. It's not very accurate, but it can give a good indication of how heavily the stack is consumed. I process is more or less: Write a dummy function, which does nothing

Re: [Haifux] stack size

2003-06-19 Thread Nadav Har'El
On Thu, Jun 19, 2003, Orna Agmon wrote about Re: [Haifux] stack size: Eli, I am not trying to prove a point, but find something automatic that will tell me when the struct is too large, and I should use the heap. I Ok, here's an automatic algorithm for you: for each structure you have defined

Re: [Haifux] stack size

2003-06-19 Thread Muli Ben-Yehuda
On Thu, Jun 19, 2003 at 03:23:51PM +0300, Kohn Emil Dan wrote: In linux, the kernel stack size is 8K minus the size of the task_struct struct. There's also on going work to make the stack 4k, and have seperate stacks for interrupt handlers. This is because for a large number of threads, having

Re: [Haifux] stack size

2003-06-19 Thread Muli Ben-Yehuda
On Thu, Jun 19, 2003 at 02:54:53PM +0200, Eli Billauer wrote: Hello Orna. What I would do, is to write a small function which returns the value of the stack pointer, when it was called. It's not very accurate, but it can give a good indication of how heavily the stack is consumed. There