Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jan 2000 04:49:40 +0200
From:      Iani Brankov <ian@bulinfo.net>
To:        hackers@freebsd.org
Cc:        Matthew Dillon <dillon@apollo.backplane.com>
Subject:   Re: The stack size for a process?
Message-ID:  <3883D4C4.E87573FC@bulinfo.net>
References:  <3883AC8A.7A6F7D5F@bulinfo.net> <200001180231.SAA18439@apollo.backplane.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Matthew Dillon wrote:

[snip]


>     At your csh prompt type 'limit'.  If you are using bash type 'ulimit -a'.
> 
>     When I compile and run your program it works fine on my box.  I tried
>     compiling it -O0, -O1, and -O2.
> 
>     % cc x.c -o x -O0
>     % ./x
>     %


Here's the

~>ulimit -a
core file size (blocks)     unlimited
data seg size (kbytes)      524288
file size (blocks)          unlimited
max locked memory (kbytes)  unlimited
max memory size (kbytes)    unlimited
open files                  2088
pipe size (512 bytes)       1
stack size (kbytes)         65536
cpu time (seconds)          unlimited
max user processes          1043
virtual memory (kbytes)     589824

The machine has enough RAM & swap space. (256/512MB)

I feel Daniel is right. The problem can be in the fact that it uses
threads.
I don't know do the threads share share the same stack space and how.

My main point was that the application worked before `making the
world'.

Thanks,
--iani


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3883D4C4.E87573FC>