1847414 Members
2740 Online
110264 Solutions
New Discussion

Re: ulimit

 

ulimit

In Linux PAM module is used for this.
In HP-UX which is the best way for this???
2 REPLIES 2
Alex Glennie
Honored Contributor

Re: ulimit

The minimum, maximum, and default ulimit values are based on certain
kernel parameters.

For the Korn shell (ksh), ulimit only affects the filesize limit
which defaults to 4194304, and this is the ksh value for unlimited.

For the POSIX shell (sh), there are several variables that can be set
with ulimit. The 'ulimit -a' command lists the variables that can be
set for the posix shell.

Note: See the sh-posix(1) man page. There are soft and hard
limits for these variables.

Soft Limit:
-----------

$ ulimit -aS
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 65536 max determined by maxdsiz
stack(kbytes) 8192 max determined by maxssiz
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 60 max determined by maxfiles

Hard Limit:
-----------

$ ulimit -aH
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 65536
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) unlimited
nofiles(descriptors) 1024 max determined by maxfiles_lim

The C shell (csh) has similar variables. These variables are set by
the csh limit command.

Note: See the csh man page.
James R. Ferguson
Acclaimed Contributor

Re: ulimit

Hi:

A recent thread discussing ulimit and cron/at might interest you too:

http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0xbc056d96588ad4118fef0090279cd0f9,00.html

...JRF...