stack limit:...

stack limit:...

Post by A.K. » Fri, 21 Jan 2000 04:00:00



Hi,
I am using Unix : solaris 7.
Do I have any option to increase the size of the stack? In man pages I
find a "ulimit", which sets or gets limitations on the system resources.
But they show examples which decrease the size of the stack. Right now
the stack size is set to 8192 kbytes. Also if I use a pagesize responds
to 8192.
I have plenty of hard drive, 256M real memory, >2000M swap.

Thank you in advance for your constructive response,
A.

 
 
 

stack limit:...

Post by A.K. » Fri, 21 Jan 2000 04:00:00


A more direct question:

Does anybody know how to change the hard limits of stack size in c shell?
The examples given in the man page are only for the soft limits.

Thank you,
A.

 
 
 

stack limit:...

Post by Alex McLintoc » Sat, 22 Jan 2000 04:00:00




Quote:> A more direct question:

> Does anybody know how to change the hard limits of stack size
> in c shell?
> The examples given in the man page are only for the soft limits.

> Thank you,
> A.

I don't believe you can. I think that is the difference between
hard and soft limits. The hard limits are defined by the kernel
and are usually an upper bound on the soft limits.

Alex

(hoping he is being helpful)

--
Alex McLintock  http://www.arcfan.demon.co.uk/sf/books/    SF REVIEWS
                http://www.galactic-guide.com       for useful humour

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

stack limit:...

Post by Neil Rumbol » Mon, 24 Jan 2000 04:00:00


Check the manual page for the /etc/system file; system(4) I think it is.

Neil


Quote:> Hi,
> I am using Unix : solaris 7.
> Do I have any option to increase the size of the stack? In man pages I
> find a "ulimit", which sets or gets limitations on the system resources.
> But they show examples which decrease the size of the stack. Right now
> the stack size is set to 8192 kbytes. Also if I use a pagesize responds
> to 8192.
> I have plenty of hard drive, 256M real memory, >2000M swap.

> Thank you in advance for your constructive response,
> A.

 
 
 

1. Stack limit

The stack limit is set in the
/usr/src/linux/include/asm-alpha/resources.h

I found that the definition was corrected in some architectures.
But for alpha the limit is set wrong.
Where sould I contact to correct the file?

I will show the grep result of _STK_LIM in the 2.2.14 source.

asm-alpha/resource.h:    {_STK_LIM, _STK_LIM},                  /* RLIMIT_STACK */      \
asm-arm/resource.h:     { _STK_LIM, _STK_LIM },                         \
asm-i386/resource.h:    { _STK_LIM, LONG_MAX },                         \
asm-m68k/resource.h:  {_STK_LIM, LONG_MAX}, \
asm-mips/resource.h:    {_STK_LIM, _STK_LIM},                           \
asm-ppc/resource.h:    {_STK_LIM, LONG_MAX},                    /* RLIMIT_STACK */      \
asm-s390/resource.h:    { _STK_LIM, LONG_MAX },                         \
asm-sparc/resource.h:    {LONG_MAX, LONG_MAX}, {_STK_LIM, LONG_MAX},           \
asm-sparc64/resource.h:    {LONG_MAX, LONG_MAX}, {_STK_LIM, LONG_MAX},         \
asm/resource.h:    {_STK_LIM, _STK_LIM},                        /* RLIMIT_STACK */      \

The RLMIIT_STACK sould _STK_LIM, LONG_MAX but in some architectures

The RLMIIT_STACK sould _STK_LIM, LONG_MAX but in some architectures
it is _STK_LIM,_STK_LIM.
It forces users not to use more than 8MB of stack area.

Thank you in advance,

Naohiko Shimizu
Dept. Communication Engr./Univ. TOKAI.
1117 Kitakaname Hiratsuka 259-12 Japan
TEL.+81-463-58-1211(ext. 4084) FAX.+81-463-58-8320
<URL http://shimizu-lab.et.u-tokai.ac.jp/>

2. install exited abnormally - recieved signal 11

3. Kernel stack limit?

4. Voice modem recommendations?

5. 8 Mo stack limit per process

6. Synaptics Touchpad in Debian 3

7. Stack limits

8. Upgrades to SyMon ?

9. Kernel Stack Limit...

10. stack limit for users

11. How to increase the stack limit for a process?

12. Netscape Enterprise server child stack limit

13. How to increase stack limit for CGI Script