1767188 Members
3711 Online
108959 Solutions
New Discussion юеВ

Re: ulimit - data limit

 
Vitek Pepas_1
Occasional Advisor

ulimit - data limit

Is it possible to increase 'ulimit -d' above 65536?
Where can I find description of all 'ulimit' options?
Can I change any limits other than file size in ksh,
can I at least display them (there is no 'ulimit -a')?
2 REPLIES 2
Zeng Qing yong
Occasional Contributor

Re: ulimit - data limit

If you use 'ulimit -a', you'll be able to have a list of all limitation. Use
other options to change the value if you have enough privilege.

Queyon
Atif Malik_2
Frequent Advisor

Re: ulimit - data limit

For Korn Shell (ksh), ulimit only affects the filesize limit which is 4194394.
and this is the value for unlimited under ksh.

For POSIX Shell (sh), you can type 'ulimit -a' to list the variables that can
be set:

mowgli $ sh
mowgli $ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 65536
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 60

data: Max is determined by kernel parameter maxdsiz
stack: Max is determined by kernel parameter maxssiz
nofiles: Max is determined by kernel paramter maxfiles

The C shell (csh) has similar variables; which are set by limit command:

mowgli $ csh
mowgli 22: limit
cputime unlimited
filesize unlimited
datasize 65536 kbytes
stacksize 8192 kbytes
coredumpsize 2097151 kbytes
descriptors 60 files
memoryuse unlimited

Therefore, to answer your question. Yes, you can increase the ulimit -d by
changing the kernel parameters which requires a reboot.

Hope this helps,
Atif