Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Aug 2008 01:00:04 +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:  <20080815230004.GA29965@epia-2.farid-hajji.net>
In-Reply-To: <266307.97521.qm@web45210.mail.sp1.yahoo.com>
References:  <266307.97521.qm@web45210.mail.sp1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 15, 2008 at 03:43:15PM -0700, Erol Akarsu wrote:
> > You have to increase kern.threads.max_threads_per_proc sysctl.
> How will I increase?
> Can you you give the syntax?

Please don't top-post.

To experiment with sysctl values, try this:

# sysctl kern.threads.max_threads_per_proc
kern.threads.max_threads_per_proc: 1500

# sysctl kern.threads.max_threads_per_proc=2000
kern.threads.max_threads_per_proc: 1500 -> 2000

# sysctl kern.threads.max_threads_per_proc
kern.threads.max_threads_per_proc: 2000

Just experiment until your program behaves as
needed, and once you've found the right value,
add it to /etc/sysctl.conf with a line like this:

kern.threads.max_threads_per_proc=2000

This will take effect as soon as you reboot. Of course
you don't need to reboot: sysctl the value manually
as shown above will do just fine. ;)

-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?20080815230004.GA29965>