1745918 Members
4455 Online
108723 Solutions
New Discussion

changing ulimit

 
Indrajit Bhagat
Regular Advisor

changing ulimit

Hello All...

 

I had dooubt, How to change the ulimite value of an user;

 

Following is an current ulimit of a particular user:

zcmadm> ulimit -a
time(seconds)        unlimited
file(blocks)         unlimited
data(kbytes)         1048576
stack(kbytes)        8192
memory(kbytes)       unlimited
coredump(blocks)     4194303
nofiles(descriptors) 2048

 

I need to change it to;

Proposed Value
============
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) unlimited
coredump(blocks) unlimited
nofiles(descriptors) 8192
memory(KBytes) unlimited

 

Please suggest me how to proceed.

1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: changing ulimit

>How to change the ulimit value of an user?

data(kbytes) unlimited
stack(kbytes) unlimited
coredump(blocks) unlimited
nofiles(descriptors) 8192

 

You can change coredump with the ulimit command.

The others need to use kctune(1m) to change the values of kernel parms:

maxdsiz(5) & maxdsiz_64bit(5), maxssiz(5) & maxssiz_64bit(5), maxfiles(5), maxfiles_lim(5)

 

Note: You can't make the sizes unlimited, you can only increase the kernel parms.

Note: Making maxssiz too large will decrease maxdsiz.

Note: The *_64bit forms must be bigger than the 32 bit limit.