1752477 Members
5762 Online
108788 Solutions
New Discussion юеВ

Re: Unlimiting ulimit

 
SOLVED
Go to solution
ganzsp
Frequent Advisor

Unlimiting ulimit

Hai,

I need to set data size and stacksize to be unlimited in ulimit setting. At present it is
# ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 1024

through forum i got to know we have to change maxdsize and maxssize and there is 32-bit and 64-bit OS and this is related to kernal parameter.

but i dont get how to check this and command to modify the ulimit. can anyone help me Providing the same.

will # ulimit -d unlimited option will help??!
i don't have any idea as i have no exposure in HP-UX .
11 REPLIES 11
Dennis Handly
Acclaimed Contributor
Solution

Re: Unlimiting ulimit

You can't make it "unlimited" unless you are using 64 bit programs.
See the following thread:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1194267

If you don't log out after you change maxdsiz, you'll need to have root do "ulimit -d unlimited". A normal user will have to re-login.

Note: Your maxssiz is fine and you don't want to increase it.
Arturo Galbiati
Esteemed Contributor

Re: Unlimiting ulimit

Hi,
why chnage maxdsize and maxssize?
Simply type:
ulimit -s unlimited
ulimit -d unlimited

I sugget you to put both in the default .profile

HTH,
Art
Dennis Handly
Acclaimed Contributor

Re: Unlimiting ulimit

>Art: why change maxdsiz and maxssiz?

Because these are the kernel limiters.
ganzsp
Frequent Advisor

Re: Unlimiting ulimit

Hai,

#ulimit -d unlimited
User not allowed to change is the error it throws

And the maxssize are required to be modified because it is throwing

ORA-19502: Write error on file: ├в /FS/../../.._FullExp.dmp├в , balockno 547713(blocksize=4096).

ORA-27072: File I/O error.

HP-UX Error: 27: File too large

when a logical back-up is taken.

but the FS is already in large files option.

Thanks
Ganzsp
Venkatesh BL
Honored Contributor

Re: Unlimiting ulimit

You can use 'kctune' command to see the kernel settings.

Example:
# kctune |grep max |grep siz
maxdsiz 1073741824 Default Immed
maxdsiz_64bit 4294967296 Default Immed
maxssiz 8388608 Default Immed
maxssiz_64bit 268435456 Default Immed
maxtsiz 100663296 Default Immed
maxtsiz_64bit 1073741824 Default Immed
#


ganzsp
Frequent Advisor

Re: Unlimiting ulimit

Venkatesh,

The Kctune option is not available and i can find the size of maxssize and maxdsize params through sam.

But modifying is were i face the problem.

-Ganzsp
Dennis Handly
Acclaimed Contributor

Re: Unlimiting ulimit

#ulimit -d unlimited
>User not allowed to change is the error it throws

Are you root when you do this? (At one time there was a bug where "unlimited" couldn't be used.)

>And the maxssiz are required to be modified because it is throwing

Where do you get this connection?

>The kctune option is not available

You need to mention your OS version. If you don't have kctune(1M), then you have 11.11 and need to use kmtune(1M) and reboot your system.

>But modifying is were i face the problem.

sam should have no problems modifying these kernel parms.
ganzsp
Frequent Advisor

Re: Unlimiting ulimit

yes i'm loggin into the server as root.
and os is 11.11 as stated by you.
Dennis Handly
Acclaimed Contributor

Re: Unlimiting ulimit

I doubt changing maxdsiz and maxssiz will help on this Oracle problem. You need to contact Oracle. You seem to be close to 2 Gb for that blockno * 4 Kb.