Operating System - HP-UX
1820566 Members
1970 Online
109626 Solutions
New Discussion юеВ

Re: Trying to increase ulimit -d

 
Alfreda Sanders
Occasional Advisor

Trying to increase ulimit -d

How do I increase ulimit? This is needed for Oracle install prereqs.

I have tried this ...

# ulimit -d 1572864
sh: ulimit: The specified value exceeds the user's allowable limit
This is what it is...
data(kbytes) 1048576

Here's some of my kernel settings
maxdsiz 1073741824 Default Immed
maxdsiz_64bit 2147483648 2147483648 Immed
maxfiles 2048 Default
maxfiles_lim 4096 Default Immed
maxrsessiz 8388608 Default
maxrsessiz_64bit 8388608 Default
maxssiz 134217728 134217728 Immed
maxssiz_64bit 2147483648 2147483648 Immed
maxtsiz 100663296 Default Immed
maxtsiz_64bit 2147483648 2147483648 Immed
maxuprc 3687 3687 Immed

Please advise
7 REPLIES 7
John Dvorchak
Honored Contributor

Re: Trying to increase ulimit -d

From man ulimit:

ERRORS
ulimit() fails if one or more of the following conditions is true.

[EINVAL] cmd is not in the correct range.

[EPERM] ulimit() fails and the limit is unchanged if a
process with an effective user ID other than
super-user attempts to increase its file size
limit.
If it has wheels or a skirt, you can't afford it.
Devesh Pant_1
Esteemed Contributor

Re: Trying to increase ulimit -d

Bill Hassell
Honored Contributor

Re: Trying to increase ulimit -d

ulimit -d applies to 32bit programs so the kernel parameter maxdsiz is the system-wide fence for data size. maxdsiz is 1073741824 which translates into 1048576 Kbytes (divide maxdsiz by 1024). You can't increase ulimit beyond the system limit. Use SAM to change maxdsiz to 2gigs (something like 2063835136). Now you can set ulimit -d to a much larger value. The exact number is not important, ulimit -d 1500000 is just as good as ulimit -d 1572864. These are just runaway program limits so making them larger means less tweaking.

Note that ulimit -d will show you the current value and will be equal to maxdsiz. So the only change you can make is to lower the value. Once lowered without the -S option, it can't be raised in the current session. If you use ulimit -Sd ###### then you can raise and lower all you want.


Bill Hassell, sysadmin
Alfreda Sanders
Occasional Advisor

Re: Trying to increase ulimit -d

Would ulimit -d be significant for a 64 bit program? This was 1 of 4 Oracle prereq alerts that I have.


ALERT- MAXSWAPCHUNKS has not been defined and needs to be set to 16384
ALERT- NCALLOUT has not been defined and needs to be set to 5012
ALERT- SEMMAP has not been defined and needs to be set to 4098
ALERT- Increase the ulimit(DATA) to 1572864 from the present 1048576 Please review this report and resolve all ALERTS or WARNINGs before attempting to install the Oracle Database Software RESULTS =
Don Morris_1
Honored Contributor

Re: Trying to increase ulimit -d

It can be -- keep in mind the data ulimit for 64-bit processes derives from maxdsiz_64bit. So increase that above what Oracle requires and your 64-bit ulimit -d should increase as well.
Bill Hassell
Honored Contributor

Re: Trying to increase ulimit -d

Make sure that maxdsiz_64 is larger than maxdsiz. I would set it to 4Gb or larger just so you don't have to change it in the future. The environment limit for a 64bit program is set equal to maxdsiz_64. ulimit doesn't have any option to set a different limit for 32 vs. 64bit programs. So if you explicitly set ulimit -d to 500megs, that also becomes the limit for 64bit programs.


Bill Hassell, sysadmin
Don Morris_1
Honored Contributor

Re: Trying to increase ulimit -d

Given that maxdsiz{_64bit} shows it can have changes take effect Immediately in the original data granted, I wouldn't raise it arbitrarily high. Just raise it to what Oracle asks for.. if you have to, you can always raise it later.

By the way -- that also implies you're running 11.22 or later -- which is why maxswapchunks isn't defined. You can ignore any comments the Oracle script is making about that tunable... it was obsoleted in 11.22.