From owner-freebsd-questions@FreeBSD.ORG Tue Mar 23 07:43:54 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BB0216A4CE for ; Tue, 23 Mar 2004 07:43:54 -0800 (PST) Received: from ux1.ibb.net (ux1.ibb.net [64.215.98.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 812FE43D39 for ; Tue, 23 Mar 2004 07:43:53 -0800 (PST) (envelope-from mipam@ibb.net) Received: from localhost (mipam@localhost) by ux1.ibb.net (8.9.3/8.9.3/UX1TT) with ESMTP id PAA11174; Tue, 23 Mar 2004 15:35:42 +0100 X-Authentication-Warning: ux1.ibb.net: mipam owned process doing -bs Date: Tue, 23 Mar 2004 15:35:42 +0100 (MET) From: Mipam To: "Kevin D. Kinsey, DaleCo, S.P." In-Reply-To: <40605572.2030504@daleco.biz> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: "Richard P. Williamson" cc: freebsd-questions@freebsd.org cc: mipam@ibb.net Subject: Re: maxproc is automatically adjusted? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2004 15:43:54 -0000 Thanks, i read it. I also found this: # The `maxusers' parameter controls the static sizing of a number of # internal system tables by a formula defined in subr_param.c. # Omitting this parameter or setting it to 0 will cause the system to # auto-size based on physical memory. And looking at some source files: maxusers = physpages / (2 * 1024 * 1024 / PAGE_SIZE) PAGE_SIZE is the amount of swap as reported in pfstat -s? I wasnt able to find out what physpages are only this: void init_param2(long physpages); But that still didnt give me a clue what it shoud represent, any hints here? maxproc = physpages / 12; maxprocperuid = (maxproc * 9) / 10; Would physpages be the amount of available RAM? In my case with 512 MB of RAM I'll get kern.maxproc: 4036 So in my case physpages is 49032? Bye, Mipam. On Tue, 23 Mar 2004, Kevin D. Kinsey, DaleCo, S.P. wrote: > Mipam wrote: > > >Okay, i found LINT, that is, > >in /usr/src/sys/i386/conf i did make LINT and the file was created. > >But i still didnt find the answers i was looking for, like > >kern.maxusers seems to be sized automatically based on you hardware? > >And so maxproc etc? I still didnt find further docs about this > >and how it works. Any places where i can RTFM about it? > >Bye, > > > >Mipam. > > > > > > > > > > loader.conf(5) > > Kevin Kinsey > DaleCo, S.P. >