1847011 Members
4246 Online
110258 Solutions
New Discussion

ulimit

 
Carlos Vanegas
Occasional Advisor

ulimit

Hi:
I've a users using ksh and verify the variable ulimit:4194303.

Can I define unlimited??

Thanks
8 REPLIES 8
James R. Ferguson
Acclaimed Contributor

Re: ulimit

Hi Carlos:

For 11.0, patch PHCO_27418 implements the ability to define "unlimited".

Regards!

...JRF...
Bill Hassell
Honored Contributor

Re: ulimit

ksh has limited ulimit capability and does not allow the value "unlimited" (it says bad number). You would be better off using the POSIX shell which has virtually all the features of ksh plus a truly usable version of ulimit (try ulimit -a in ksh and then using /usr/bin/sh).


Bill Hassell, sysadmin
Ravi_8
Honored Contributor

Re: ulimit

Hi,

ksh and csh has limitation of 4194303 on ulimit. you have to be in sh to define
never give up
T G Manikandan
Honored Contributor

Re: ulimit

it is not possible to set ulimit to unlimited in ksh.


You can use the POSIX shell for that


Thanks
Carlos Vanegas
Occasional Advisor

Re: ulimit

This variable limits working to me with greater archives of 2GB or what it limits to me?

Thanks
Dietmar Konermann
Honored Contributor

Re: ulimit

If the ulimit is configured to ULIMIT_MAX, then this is handled as "unlimited" by the kernel.

Only problem is, that the ksh does not accept the "unlimited" keayword.

But you can do this:

# /usr/bin/ksh
# ulimit 4194303
# /usr/bin/sh
# ulimited
unlimited

So you are currently running with "unlimited" although the ksh prints 4194303.

Best regards...
Dietmar.

PS.: ULIMIT_MAX is 4194304 for 10.20! So be careful.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Bill Hassell
Honored Contributor

Re: ulimit

NOTE: ulimit can prevent multi-Gb files from being created but the filesystem may not allow largefiles either. Use fsadm to determine in largefiles have been allowed:

/usr/sbin/fsadm /var

or whatever filesystem you are using for storage. newfs can enable largefiles, fsadm can alter the largefiles setting as well as display the current value. Make sure largefiles has been added to /etc/fstab for the appropriate filesystems.


Bill Hassell, sysadmin
Vitek Pepas
Valued Contributor

Re: ulimit

If you're using 10.20, try this:
ulimit 4194304
I got this solution from HP Support and it worked for me.