System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Maximum "ulimit -d" on 11.31 - 4TB?

Alzhy
Honored Contributor

Maximum "ulimit -d" on 11.31 - 4TB?

Our apps person is saying on an 11.31 environment which we do not have access, ulimit -d is set to 4TB!

data(kbytes) 4293918720

Shell is ksh.

Is this possible? And is this not dependent on maxdsiz since ksh is 32bit? maxdsiz canonly go up to 4GB AFAIK.


TIA.
Hakuna Matata.
8 REPLIES
P Muralidhar Kini
Honored Contributor

Re: Maximum "ulimit -d" on 11.31 - 4TB?

Hi Alzhy,

>> ulimit -d is set to 4TB!
This depends on the value of the maxdsiz, maxdsiz_64bit parameter.
The parameter to check in case of 32bit version is maxdsiz, and in case
of 64 bit version its maxdsiz_64bit.

Check the following link -
http://docs.hp.com/en/TKP-90202/re34.html
-> This talks about maxdsiz, maxdsiz_64bit default/max values

>> Is this possible?
In case of 64 bit version, the max value of maxdsiz_64bit is
0x3ffbfffffff i.e. 4293918720. Looks like its a 64 bit version.

Hope this helps.

Regards,
Murali
Let There Be Rock - AC/DC
Alzhy
Honored Contributor

Re: Maximum "ulimit -d" on 11.31 - 4TB?

Okay thanks.

Matches my understanding after poring through several urls and docs.

So even if ksh is just a 32bit shell, which ever is the bigger of maxdsiz and maxdsiz_64bit would guide the limits on shell and its child processes...

I am just stuped here with the "demand" from our apps folks to bump up ulimit to 4TB. After looking at kcusage stats -- the system never came close to utilizing 12% of maxdsiz and maxdsiz_64bit.

You see, they've an app that's complaining of "no space" -- but details are spotty and they've yet to put a trace on their script that is likely declaring a very large environment or caling a script/binary that is facing some sort of a "limit".


Hakuna Matata.
Dennis Handly
Acclaimed Contributor

Re: Maximum "ulimit -d" on 11.31 - 4TB?

>So even if ksh is just a 32bit shell

Hmm, I'm surprised that ksh can report a number that big. Perhaps is should be saying unlimited?

>to bump up ulimit to 4TB. After looking at kcusage stats

You have that much swap?

>they've an app that's complaining of "no space"

You also need to monitor "swapinfo -tam".
Alzhy
Honored Contributor

Re: Maximum "ulimit -d" on 11.31 - 4TB?

Wow this is really puzzling. My amigo Google yields nothing too.

SHELL is /usr/bin/kshand OS is HP-UX 11.31 Mar 2010 Integrity Systems (rx,bl).

I've already up'd my maxdsiz and maxdsiz_64 bit to their maximum settings (4GB and 4TB respectively) but no dice.

apuser@srv001> ulimit -d 4293918720
ksh: ulimit: bad number

apuser@srv001> ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 4194300
stack(kbytes) 376832
memory(kbytes) unlimited
coredump(blocks) 4194303

And I just noticed on my aging 11.11 System, indeed "ulimit -d" can be set (or is set) to 4TB!

alzhy@unix11 > ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 4292870144
stack(kbytes) 376832
memory(kbytes) unlimited
coredump(blocks) 4194303

alzhy@unix11 > file /usr/bin/ksh
/usr/bin/ksh: PA-RISC1.1 shared executable dynamically linked

alzhy@unix11 > uname -a
HP-UX unix11 B.11.11 U 9000/800 4172948470 unlimited-user license


Raised a tkt with HP Support but nada yet.

Hakuna Matata.
Dennis Handly
Acclaimed Contributor

Re: Maximum "ulimit -d" on 11.31 - 4TB?

>I've already upped my maxdsiz and maxdsiz_64 bit to their maximum settings but no dice.

That's all you need to do. A 32 bit ksh can't tell you what the 64 bit limits are.

>I just noticed on my aging 11.11 System, indeed "ulimit -d" can be set (or is set) to 4TB!

That's an illusion, that's probably "unlimited", which is also an illusion.
James R. Ferguson
Acclaimed Contributor

Re: Maximum "ulimit -d" on 11.31 - 4TB?

Hi:

PHCO_37385 (11.31 ksh(1) cumulative patch) or successor, fixed a bug where 'ulimit -d' reported wrong data if 'maxdsiz' is >= 2GB.

Regards!

...JRF...
Alzhy
Honored Contributor

Re: Maximum "ulimit -d" on 11.31 - 4TB?

My case with HP is still open and they have not responded yet. I simply want an explanation now why on 11.11 ulimit -d can be set up to maxdsiz_64bit limit - whereas on HP-UX 11.31 (Mar 2010 w/patches), it only can go up to maxdsiz.

Other thoughts/theories stil welcome though.


Hakuna Matata.
Dennis Handly
Acclaimed Contributor

Re: Maximum "ulimit -d" on 11.31 - 4TB?

>I simply want an explanation now why on 11.11 ulimit -d can be set up to maxdsiz_64bit limit

Because sh in 11.11 is broken. You can't set it to that value, unless it is attempting to be "unlimited".

See these old threads where Don notices this bogus value:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1411855
(Has attached getrlimit(2) program.)
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1269493
(ulimit of data(kbytes) 4294967292 and Don's comments)
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1265853
(Don's test program.)
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1217744
(Another)
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1156660
(Don's comments about looking at ulimit and test case.)
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1147299
(Setting limits.)