Operating System - HP-UX
1833288 Members
3094 Online
110051 Solutions
New Discussion

Re: How to change ulimit value in the kernel?

 
SOLVED
Go to solution
Romaric Guilloud
Regular Advisor

How to change ulimit value in the kernel?

How to change value of "stack" (here 1280 Mb) displayed at ulimit -a command in the kernel parameters so that it applies to everyone?
Is it a kernel parameter?

Rgds,

#ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1310720
stack(kbytes) 65536
memory(kbytes) unlimited
coredump(blocks) 4194303
"And remember: There are no stupid questions; there are only stupid people." (To Homer Simpson, in "The Simpsons".)
6 REPLIES 6
Patrick Wallek
Honored Contributor
Solution

Re: How to change ulimit value in the kernel?

The stack size is controlled by the maxssize kernel parameter. The data size is controlled by the maxdsize parameter.

Do you need a stack bigger than 64MB? Usually that is big enough.
Pat Lieberg
Valued Contributor

Re: How to change ulimit value in the kernel?

That's controlled by the maxssize kernel parameter.
Patrick Wallek
Honored Contributor

Re: How to change ulimit value in the kernel?

I slightly mistyped in my response. The kernel parameter names do *NOT* have an e at the end of them. They should be maxssiz and maxdsiz.

I should also point out the the max?siz parameters are the parameters for 32-bit programs. If you are talking 64-bit, the parameters are max?siz_64bit.
Romaric Guilloud
Regular Advisor

Re: How to change ulimit value in the kernel?

Thanks Patrick for the quick answer and clever explanation.
Rgds,
"And remember: There are no stupid questions; there are only stupid people." (To Homer Simpson, in "The Simpsons".)
Romaric Guilloud
Regular Advisor

Re: How to change ulimit value in the kernel?

Many thanks to all.
"And remember: There are no stupid questions; there are only stupid people." (To Homer Simpson, in "The Simpsons".)
Pat Lieberg
Valued Contributor

Re: How to change ulimit value in the kernel?

That's funny, cause I made the same typo. I guess greay minds think alike, or something like that.