Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Apr 2006 19:40:56 +0400
From:      "Andrew Pantyukhin" <infofarmer@gmail.com>
To:        "Dan Nelson" <dnelson@allantgroup.com>
Cc:        Iantcho Vassilev <ianchov@gmail.com>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Huge (100k+) number of processes
Message-ID:  <cb5206420604260840i11210b3fr29983fba60993cfa@mail.gmail.com>
In-Reply-To: <20060426145037.GA6516@dan.emsphone.com>
References:  <cb5206420604260527h40b1db13o51a5ac1d11a651cd@mail.gmail.com> <18e02bd30604260709m6a0c33dp972a4f1d0a0e17ea@mail.gmail.com> <cb5206420604260721h5affdb05pacd3bb0b82f0d621@mail.gmail.com> <20060426145037.GA6516@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 4/26/06, Dan Nelson <dnelson@allantgroup.com> wrote:
> In the last episode (Apr 26), Andrew Pantyukhin said:
> > On 4/26/06, Iantcho Vassilev <ianchov@gmail.com> wrote:
> > > On 4/26/06, Andrew Pantyukhin <infofarmer@gmail.com> wrote:
> > > > I was wondering if it's possible to run over 100k processes
> > > > simultaneously on a FreeBSD box with sufficient amount
> > > > of RAM (and CPU power).
> > >
> > > Sure,why not?
> >
> > The problem is that kern.maxproc=3D200000 line in /boot/loader.conf
> > only raised the real value to 21576. Is that authoritative, or should
> > I just try and run 200k processes? I only have 512Mb of RAM, and I
> > wonder if it's enough to run 100k+ of, say, /bin/sleep?
>
> Make sure you have enough RAM to cover those 100k processes.  There's
> code that limits maxproc to physpages/12 ("Limit maxproc so that kmap
> entries cannot be exhausted by processes").  You can try removing that
> code, but each process does require a couple of private pages.
> Assuming 5 pages, you'll need 2 GB of RAM just for that overhead,
> before you take into account any memory your application will allocate.
>
> Are you sure you need 100k separate processes running?
>
> --
>         Dan Nelson
>         dnelson@allantgroup.com
>

Hmm, I have 2Gb boxes around, but no 4 or 8Gb ones running
FreeBSD. I'm just foolishly interested in running 200k of more or less
real (but very simple) processes under FreeBSD...



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