From owner-freebsd-questions@FreeBSD.ORG Mon Jan 31 03:41:33 2005 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 7B36716A4CE for ; Mon, 31 Jan 2005 03:41:33 +0000 (GMT) Received: from out006.verizon.net (out006pub.verizon.net [206.46.170.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FBC543D1F for ; Mon, 31 Jan 2005 03:41:32 +0000 (GMT) (envelope-from leblanc@keyslapper.org) Received: from keyslapper.org ([68.163.158.177]) by out006.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20050131034128.ASG8986.out006.verizon.net@keyslapper.org> for ; Sun, 30 Jan 2005 21:41:28 -0600 Received: from localhost (localhost [127.0.0.1]) by keyslapper.org (Postfix) with ESMTP id E0AF8114DE for ; Sun, 30 Jan 2005 22:41:27 -0500 (EST) Received: from keyslapper.org ([127.0.0.1]) by localhost (keyslapper.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00542-03 for ; Sun, 30 Jan 2005 22:41:27 -0500 (EST) Received: by keyslapper.org (Postfix, from userid 1001) id B192B114D2; Sun, 30 Jan 2005 22:41:27 -0500 (EST) Date: Sun, 30 Jan 2005 22:41:27 -0500 From: Louis LeBlanc To: freebsd-questions@freebsd.org Message-ID: <20050131034127.GA1178@keyslapper.net> Mail-Followup-To: freebsd-questions@freebsd.org References: <20050129120037.2E16A16A4D3@hub.freebsd.org> <1107027374.41fbe5ae47d36@webmail.uoi.gr> <41FC6144.90405@incubus.de> <1107067917.41fc840d574dd@webmail.uoi.gr> <20050130150732.GA63409@gothmog.gr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gBBFr7Ir9EOA20Yy" Content-Disposition: inline In-Reply-To: <20050130150732.GA63409@gothmog.gr> X-PGP-Key: http://www.keyslapper.net/~leblanc/leblanc-at-keyslapper-net.asc User-Agent: Mutt/1.5.6i X-Virus-Scanned: amavisd-new at keyslapper.net X-Authentication-Info: Submitted using SMTP AUTH at out006.verizon.net from [68.163.158.177] at Sun, 30 Jan 2005 21:41:28 -0600 Subject: Re: having 1.5GB RAM I cannot allocate more than 512MB RAM in 4.10 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Jan 2005 03:41:33 -0000 --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 01/30/05 05:07 PM, Giorgos Keramidas sat at the `puter and typed: > On 2005-01-30 08:51, dkouroun@cc.uoi.gr wrote: > > > > Guys thanks for the help but it doesn't want to work! >=20 > Actually, it works, but you are limited by the maximum allowable data > size of the VM system. >=20 > > Infact my data size setting in /etc/login.conf is unlimited by > > default. >=20 > True, but this won't work. Even if you set datasize to a large number > of bytes, i.e. 8589934592 (800 MB), you are limited by the internal > kernel limit for the maximum data size. >=20 > This is defined in /usr/src/sys/i386/include/vmparam.h as: >=20 > #define MAXDSIZ (512UL*1024*1024) /* max data si= ze */ >=20 > When the setting of login.conf is applied, the following code runs from > `src/sys/kern/kern_resource.c' (the implementation of the setrlimit(2) > syscall): >=20 > int > kern_setrlimit(td, which, limp) > struct thread *td; > u_int which; > struct rlimit *limp; > { > [...] > case RLIMIT_DATA: > if (limp->rlim_cur > maxdsiz) > limp->rlim_cur =3D maxdsiz; > if (limp->rlim_max > maxdsiz) > limp->rlim_max =3D maxdsiz; > break; >=20 > Thus, the maximum data segment size is limited by the value of > `maxdsiz'. The `maxdsiz' limit is tunable at boot time, by setting the > "kern.maxdsiz" option in your `/boot/loader.conf' file. What system are you getting that from? I don't see that sysctl var in 5.3: # sysctl kern.maxdsiz sysctl: unknown oid 'kern.maxdsiz' # uname -a FreeBSD keyslapper.net 5.3-RELEASE-p3 FreeBSD 5.3-RELEASE-p3 #3: Sun Jan 30 22:16:29 EST 2005 root@keyslapper.net:/usr/obj/usr/src/sys/KEYSLAPPE= R i386 I have the same limitations and the same apparently unlimited configuration mentioned by the OP. I also have nothing resembling MAXDSIZ in my kernel config. Lou --=20 Louis LeBlanc FreeBSD-at-keyslapper-DOT-net Fully Funded Hobbyist, KeySlapper Extrordinaire :) Key fingerprint =3D C5E7 4762 F071 CE3B ED51 4FB8 AF85 A2FE 80C8 D9A2 Pardo's First Postulate: Anything good in life is either illegal, immoral, or fattening. --gBBFr7Ir9EOA20Yy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFB/ajnr4Wi/oDI2aIRApNnAJ0emnBfuuz+3SUbAq4319YeZEV9rgCfWEb+ cgU2DCxlZ7iEP+wZA9ezjQY= =ip1w -----END PGP SIGNATURE----- --gBBFr7Ir9EOA20Yy--