Operating System - HP-UX
1835947 Members
3372 Online
110088 Solutions
New Discussion

Re: change value to unlimited by ulimit command

 
Omar Al-Saiari
Occasional Contributor

change value to unlimited by ulimit command

can we change the value of date to unlimited

$ /usr/bin/ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576 -----> can we set this to unlimited
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 1500

thanks
4 REPLIES 4
Norman_21
Honored Contributor

Re: change value to unlimited by ulimit command

Hi Omar,

The data(kbytes) 1048576 determined by maxdsiz. You will have to change maxdsiz kernel parameter which will require rebuilding the kernel and reboot the machine.

Hope this help.
Thanks and good luck.
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Michael Steele_2
Honored Contributor

Re: change value to unlimited by ulimit command

"...ulimit -f unlimited...", for example, but ulimit is specific to the logged in user using korn shell and not system wide and its a mostly obsolete utility. But I don't think this is what you're asking about. Its kernel parameters that mostly control these settings know. These kernel parameters apply to the overall system:

ulimit -d --> maxdsiz
ulimit -s --> maxssiz
ulimit -n --> maxfiles

Here are some links about tuning kernel parameters.

http://www.docs.hp.com//hpux/onlinedocs/939/KCParms/KCparams.OverviewAll.html

http://docs.hp.com/hpux/onlinedocs/939/KCParms/KCparams.OverviewAll.html

Finally, if you switch to the POSIX shell then by default ulimit is unlimited, per user.
Support Fatherhood - Stop Family Law
Steven E. Protter
Exalted Contributor

Re: change value to unlimited by ulimit command

Your files figure may be a little low, especially if you're running anything from Oracle.

Here's mine.

[5009#] ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 2015464
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 4096


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bill Hassell
Honored Contributor

Re: change value to unlimited by ulimit command

Actually, ulimit is definitely an active environment control command and very useful...but only in the POSIX shell. The HP implementation of the Korn shell has no options (ie, ulimit -a or ulimit -Sc 0, etc). You can (as root) set ulimit values in /etc/profile) that are inherited by ksh, just not changeable using the ksh ulimit command. NOTE: /usr/bin/ulimit is actually a POSIX shell script and if run by ksh, simply sets the environment for the child shell spawned by ksh. You'll need to use the POSIX shell for control of ulimit values. For all intents and purposes, the POSIX shell is a superset of ksh and users will not see any differences. Be sure to code: #!/usr/bin/sh for all shell scripts to pick the correct shell to run.


Bill Hassell, sysadmin