Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Aug 2008 01:42:05 +0200
From:      cpghost <cpghost@cordula.ws>
To:        Erol Akarsu <eakarsu_33@yahoo.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Freeswitch on latest FBSD
Message-ID:  <20080815234205.GB29965@epia-2.farid-hajji.net>
In-Reply-To: <526028.329.qm@web45213.mail.sp1.yahoo.com>
References:  <526028.329.qm@web45213.mail.sp1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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
32200

# ulimit -s unlimited
# ulimit -s
65536

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

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080815234205.GB29965>