* ACPI stack overflow
@ 2004-03-05 21:01 Stuart_Hayes
2004-03-05 21:51 ` Richard B. Johnson
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Stuart_Hayes @ 2004-03-05 21:01 UTC (permalink / raw)
To: linux-kernel; +Cc: andrew.grover
Hello...
I think I am getting a stack overflow when Linux is parsing the ACPI tables (initializing all the devices and running all the _STA methods). I am using the x86_64 architecture. I would like to try increasing the kernel stack size, but I'm not sure how to go about doing this. Could someone tell me how to increase the kernel stack size? (And, has anyone else seen a problem with stack overflows with ACPI?)
Thanks!
Stuart
stuart_hayes@dell.com
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: ACPI stack overflow
2004-03-05 21:01 ACPI stack overflow Stuart_Hayes
@ 2004-03-05 21:51 ` Richard B. Johnson
2004-03-05 22:35 ` Chris Wedgwood
[not found] ` <CE41BFEF2481C246A8DE0D2B4DBACF4F128AA1@ausx2kmpc106.aus.amer.dell.com.suse.lists.linux.kernel>
2 siblings, 0 replies; 5+ messages in thread
From: Richard B. Johnson @ 2004-03-05 21:51 UTC (permalink / raw)
To: Stuart_Hayes; +Cc: linux-kernel, andrew.grover
On Fri, 5 Mar 2004 Stuart_Hayes@Dell.com wrote:
>
> Hello...
>
> I think I am getting a stack overflow when Linux is parsing the ACPI
> tables (initializing all the devices and running all the _STA methods).
> I am using the x86_64 architecture. I would like to try increasing the
> kernel stack size, but I'm not sure how to go about doing this.
> Could someone tell me how to increase the kernel stack size?
> (And, has anyone else seen a problem with stack overflows with ACPI?)
>
Please fix your mailer. In Unix/Linux, we put in a [Enter] ('\n')
every once in awhile, usually every 79 charcters so that a line
of text does not exceed 80 characters. We do not let some indefinite
screen "auto-wrap".
> Thanks!
> Stuart
> stuart_hayes@dell.com
There have been continual changes over the years to reduce the
amount of kernel stack that the kernel uses because kernel stack-
space is "expensive". It needs to be changed in pages. I think
that if you have a stack-overflow, then you are writing poor
kernel code. In the kernel, do not put arrays on the stack, i.e,
in "local" space. Use kmalloc()/kfree() instead.
Basically, do not increase the stack size. It just masks problems.
It does not make them go away. If you need more stack, you
are doing something wrong.
Cheers,
Dick Johnson
Penguin : Linux version 2.4.24 on an i686 machine (797.90 BogoMips).
Note 96.31% of all statistics are fiction.
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: ACPI stack overflow
2004-03-05 21:01 ACPI stack overflow Stuart_Hayes
2004-03-05 21:51 ` Richard B. Johnson
@ 2004-03-05 22:35 ` Chris Wedgwood
[not found] ` <CE41BFEF2481C246A8DE0D2B4DBACF4F128AA1@ausx2kmpc106.aus.amer.dell.com.suse.lists.linux.kernel>
2 siblings, 0 replies; 5+ messages in thread
From: Chris Wedgwood @ 2004-03-05 22:35 UTC (permalink / raw)
To: Stuart_Hayes; +Cc: linux-kernel, andrew.grover
On Fri, Mar 05, 2004 at 03:01:34PM -0600, Stuart_Hayes@Dell.com wrote:
> I think I am getting a stack overflow when Linux is parsing the ACPI
> tables (initializing all the devices and running all the _STA
> methods). I am using the x86_64 architecture. I would like to try
> increasing the kernel stack size, but I'm not sure how to go about
> doing this. Could someone tell me how to increase the kernel stack
> size? (And, has anyone else seen a problem with stack overflows
> with ACPI?)
Please find the source of the stack overflow and fix that. Increasing
the kernel stack size is not a suitable solution.
--cw
^ permalink raw reply [flat|nested] 5+ messages in thread[parent not found: <CE41BFEF2481C246A8DE0D2B4DBACF4F128AA1@ausx2kmpc106.aus.amer.dell.com.suse.lists.linux.kernel>]
* RE: ACPI stack overflow
@ 2004-03-05 22:38 Stuart_Hayes
0 siblings, 0 replies; 5+ messages in thread
From: Stuart_Hayes @ 2004-03-05 22:38 UTC (permalink / raw)
To: root; +Cc: linux-kernel, andrew.grover
Richard B. Johnson wrote:
> On Fri, 5 Mar 2004 Stuart_Hayes@Dell.com wrote:
>
>>
>> Hello...
>>
>> I think I am getting a stack overflow when Linux is parsing the ACPI
>> tables (initializing all the devices and running all the _STA
>> methods). I am using the x86_64 architecture. I would like to try
>> increasing the kernel stack size, but I'm not sure how to go about
>> doing this.
>> Could someone tell me how to increase the kernel stack size?
>> (And, has anyone else seen a problem with stack overflows with ACPI?)
>>
>
> Please fix your mailer. In Unix/Linux, we put in a [Enter] ('\n')
> every once in awhile, usually every 79 charcters so that a line
> of text does not exceed 80 characters. We do not let some indefinite
> screen "auto-wrap".
>
>> Thanks!
>> Stuart
>> stuart_hayes@dell.com
>
> There have been continual changes over the years to reduce the
> amount of kernel stack that the kernel uses because kernel stack-
> space is "expensive". It needs to be changed in pages. I think
> that if you have a stack-overflow, then you are writing poor
> kernel code. In the kernel, do not put arrays on the stack, i.e,
> in "local" space. Use kmalloc()/kfree() instead.
>
> Basically, do not increase the stack size. It just masks problems.
> It does not make them go away. If you need more stack, you
> are doing something wrong.
>
> Cheers,
> Dick Johnson
> Penguin : Linux version 2.4.24 on an i686 machine (797.90 BogoMips).
> Note 96.31% of all statistics are fiction.
Thanks. Unfortunately, it isn't my code that's using so much stack
space--it's the ACPI "driver". It has many deep nested calls, and
I believe each call in x86_64 is taking more stack space than it would
in i386 because of the larger registers. But, what I really wanted
to do is increase the kernel size to verify that the problem is a
stack overflow (my other tests have led me to believe so). I wasn't
going to propose that as a solution.
Thanks!
Stuart
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-03-05 23:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-05 21:01 ACPI stack overflow Stuart_Hayes
2004-03-05 21:51 ` Richard B. Johnson
2004-03-05 22:35 ` Chris Wedgwood
[not found] ` <CE41BFEF2481C246A8DE0D2B4DBACF4F128AA1@ausx2kmpc106.aus.amer.dell.com.suse.lists.linux.kernel>
2004-03-05 23:13 ` Andi Kleen
-- strict thread matches above, loose matches on Subject: below --
2004-03-05 22:38 Stuart_Hayes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox