From owner-freebsd-questions@FreeBSD.ORG Thu Feb 19 23:22:04 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5FBB106566B for ; Thu, 19 Feb 2009 23:22:04 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 332CC8FC14 for ; Thu, 19 Feb 2009 23:22:04 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LaIDT-0000xQ-N8 for freebsd-questions@freebsd.org; Thu, 19 Feb 2009 23:22:03 +0000 Received: from 78-1-183-46.adsl.net.t-com.hr ([78.1.183.46]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Feb 2009 23:22:03 +0000 Received: from ivoras by 78-1-183-46.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Feb 2009 23:22:03 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Ivan Voras Date: Fri, 20 Feb 2009 00:21:14 +0100 Lines: 53 Message-ID: References: <000e0cd303bc6532a0046334bb5d@google.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig8AD9B481F04DAAE821CC375F" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 78-1-183-46.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) In-Reply-To: <000e0cd303bc6532a0046334bb5d@google.com> X-Enigmail-Version: 0.95.7 Sender: news Subject: Re: memory limitations per process X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Feb 2009 23:22:04 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8AD9B481F04DAAE821CC375F Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable af300wsm@gmail.com wrote: > Hi, >=20 > I'm running into a per process memory limit at work (on Windoze though)= , > but I'm wondering what's the limit per process in FreeBSD for 32 bit > systems, ie i386? Is it 4gb or 2? From stuff I found on the Net, I'm > guessing 4gb, but wanted to ask anyway. It seems to be an implementatio= n > deal limiting the windows world to 2gb per process rather than hardware= > limitations. Your question is vague. A 32-bit process can only access 4 GB of memory, but all processes also have a bit of memory "reserved" for the kernel. On FreeBSD the accessible memory for processes is closer to 3 GB than 2 or 4. See this discussion for details: http://wiki.freebsd.org/KVA_PAGES Also, FreeBSD processes have administrative limits to their size set by defaults. See for example this: http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2008-11/msg0136= 3.html =2E If you want to use the whole 3 GB for a process, you'll have to increase maxdsiz. Note that you may need to experiment with this size since your BIOS will probably not let you use 4 GB of physical memory for the OS except if you enable PAE, and it's possible to create an unbootable system by messing with kernel memory limits. You should probably experiment on the loader command line first, not in the loader.conf file. --------------enig8AD9B481F04DAAE821CC375F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmd6WoACgkQldnAQVacBcjidQCg49dNUi8eKg2GGmiKz0yI3EMS 2v0An1JD7xELWdW59+ohIGROWg3wN1yR =35DA -----END PGP SIGNATURE----- --------------enig8AD9B481F04DAAE821CC375F--