Freeswitch on latest FBSD

cpghost cpghost at
Fri Aug 15 23:42:09 UTC 2008

On Fri, Aug 15, 2008 at 04:23:39PM -0700, Erol Akarsu wrote:
> Can you help me on setting other limits? I did the following but it
> did not change.  I would like this like I do in linux:
> ulimit -c unlimited
> Could you please tell me how I will do it on FreeBSD?

Which shell are your using?

With csh/tcsh:

# limit
cputime      unlimited
filesize     unlimited
datasize     524288 kbytes
stacksize    65536 kbytes
coredumpsize unlimited
memoryuse    unlimited
vmemoryuse   unlimited
descriptors  7092
memorylocked unlimited
maxproc      3546
sbsize       unlimited

# limit stacksize
stacksize    65536 kbytes

# limit stacksize 32000
# limit stacksize
stacksize    32000 kbytes

# limit stacksize unlimited
# limit stacksize
stacksize    65536 kbytes

With /bin/sh:

# ulimit -a
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  524288
stack size              (kbytes, -s)  65536
core file size      (512-blocks, -c)  unlimited
max memory size         (kbytes, -m)  unlimited
locked memory           (kbytes, -l)  unlimited
max user processes              (-u)  3546
open files                      (-n)  7092
virtual mem size        (kbytes, -v)  unlimited
sbsize                   (bytes, -b)  unlimited

# ulimit -s 32200
# ulimit -s

# ulimit -s unlimited
# ulimit -s

If you need to rise other limits (say, open files, etc...), you'll
need to crank up the sysctl value. You can get a list of all sysctl
values like this:

# sysctl -a | more

> Thanks


Cordula's Web.

More information about the freebsd-current mailing list