atom feed11 messages in org.freebsd.freebsd-archRe: Setting the default MAX Stack size
FromSent OnAttachments
Jim PirzykJul 18, 2001 4:18 pm 
Terry LambertJul 19, 2001 1:15 am 
Jim PirzykJul 19, 2001 8:36 am 
Bakul ShahJul 19, 2001 9:01 am 
Jim PirzykJul 19, 2001 9:07 am 
Terry LambertJul 20, 2001 8:40 am 
Terry LambertJul 20, 2001 8:44 am 
Bakul ShahJul 20, 2001 10:08 am 
Jim PirzykJul 20, 2001 12:03 pm 
Jim PirzykJul 20, 2001 12:55 pm 
Bruce EvansJul 21, 2001 4:40 am 
Subject:Re: Setting the default MAX Stack size
From:Jim Pirzyk (Jim.@disney.com)
Date:Jul 20, 2001 12:03:38 pm
List:org.freebsd.freebsd-arch

On Friday 20 July 2001 08:40 am, Terry Lambert wrote:

Jim Pirzyk wrote:

On Thursday 19 July 2001 01:16 am, Terry Lambert wrote:

Jim Pirzyk wrote:

So I have a need to increase the max stack size in the kernel.

[ ... ]

Suggestions?

Change your code to not use so much auto variable space; if you are using this much space, you need to rethink your algorithm.

The program that is being used is by one of our developers and it is using recursion internally to do smog particle simulation over many frames (visual effects). Or systems are installed with 2GB of memory and they set there stack size to 128MB (from 64MB).

The program could write its data out to disk, but then the performance gets killed.

We also had to knock up the stack size on the linux systems that these programs are actually developed on.

I don't understand why the kernel stack size has anything to do with this, unless you are implementing this in the kernel.

If you are running out of kernel stack, we need to know where, since that sould be a serious bug.

Ah, here is the disconnect. I am talking the user's max stack size which is a parameter in the kernel, not the kernel's stack size. Changing MAXSSIZ in the kernel allows you to type

limit stacksize 262143

- JimP

To Unsubscribe: send mail to majo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message