1752796 Members
5854 Online
108789 Solutions
New Discussion юеВ

setting the limit

 
shanmuhanandam
HPE Pro

setting the limit

hi,
i have hpux box with 11.31. my current limits are like this:
# csh
# limit
cputime unlimited
filesize unlimited
datasize 1048576 kbytes
stacksize 8192 kbytes
coredumpsize 2097151 kbytes
descriptors 4096 files
memoryuse unlimited
#

how do i change these values?

thanks in advance,
shanmugam.
I am an HPE Employee

Accept or Kudo

6 REPLIES 6
sujit kumar singh
Honored Contributor

Re: setting the limit

# ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 4194304
nofiles(descriptors) 2048
# ulimit -t
unlimited

as u can see if u want to cahnge the values


as

#ulimit -="NEW_VALUE"

where option can take form as
-t for time(seconds) unlimited
-f for file(blocks) unlimited
-d for data data(kbytes) 1048576
-s for stack stack(kbytes) 8192
-m for the memory memory(kbytes) unlimited
-c for coredump coredump(blocks) 4194304
-n for the nofiles(descriptors) 2048


use the option as ststed for which u want to change the value.



regarda

Sujit
sujit kumar singh
Honored Contributor

Re: setting the limit

the earlier post syntax has to be modified a bit.

ulimit -

there shall be no "=" as ststed before

time(seconds) -- use -t option
file(blocks) ---- use -f option
data(kbytes) -- use -d option
stack(kbytes) -- use -s option
memory(kbytes) -- use -m option
coredump(blocks) -- use -c option
nofiles(descriptors)



Sujit
shanmuhanandam
HPE Pro

Re: setting the limit

Hi sujit,
thanks for the information. Is there any file for making the changes as permanent?
I am an HPE Employee

Accept or Kudo

sujit kumar singh
Honored Contributor

Re: setting the limit

Hi Shanmugam,


yes the changes are gone after the system is rebooted.


However as u want to set this permanent u can put these as commands in /etc/profile --- to set it globally for the system or in a particular users profile say for oracle user put this in the /home/oracle/.profile.

the following thread as from a guru JRFergusson tells the same.


http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1034841&admit=109447626+1230807584456+28353475


regards

Sujit
Dennis Handly
Acclaimed Contributor

Re: setting the limit

Which values do you want to change? A user can only make them smaller.

>Is there any file for making the changes as permanent?

You can make them smaller by putting them in your .profile.

As Sujit mentions, if you want to make some of these larger, you must use kctune(1m) to change the kernel configuration.
shanmuhanandam
HPE Pro

Re: setting the limit

Thanks Guys,
i have changed the values thro kctune as a root user.

shanmugam.
I am an HPE Employee

Accept or Kudo