Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Oct 2010 09:45:11 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Steve Kargl <sgk@troutmask.apl.washington.edu>
Cc:        freebsd-amd64@freebsd.org
Subject:   Re: linux32 sysctl limits?
Message-ID:  <20101009064511.GV2392@deviant.kiev.zoral.com.ua>
In-Reply-To: <20101008231210.GA90183@troutmask.apl.washington.edu>
References:  <20101008221701.GA89977@troutmask.apl.washington.edu> <20101008222013.GT2392@deviant.kiev.zoral.com.ua> <20101008231210.GA90183@troutmask.apl.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

--DXai+D0O/pduKrS9
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Oct 08, 2010 at 04:12:10PM -0700, Steve Kargl wrote:
> On Sat, Oct 09, 2010 at 01:20:13AM +0300, Kostik Belousov wrote:
> > On Fri, Oct 08, 2010 at 03:17:01PM -0700, Steve Kargl wrote:
> > > 'man linux' does not list or describe the following sysctl
> > > variables.
> > >=20
> > > compat.linux32.maxvmem: 0
> > > compat.linux32.maxssiz: 67108864
> > > compat.linux32.maxdsiz: 536870912
> > >=20
> > > Are there any limitations with setting these to
> > > say 1G for stack and 4G for data on a system with
> > > 16G of memory?
> >=20
> > The linux ABI processes are 32bit, so you cannot reallistically assign
> > 4Gb to maxdsiz. The space between data (bss) end and stack bottom is
> > used for mappings, so it should be kept large enough.
>=20
> Does this mean that maxssiz+maxdsiz=3D3G would allow=20
> 1G for mappings?  The only linux app that will be
> running is matlab (and I suppose any children processes
> of matlab).

It has a chance of working. I do not know how much is linux userland
sensitive to the address space layout change.

--DXai+D0O/pduKrS9
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (FreeBSD)

iEYEARECAAYFAkywD3cACgkQC3+MBN1Mb4iZlACgvAQNK4wRChMtYz6cTGbsOU8W
MusAoKujmZjuwYG0p5AhnZs//NA9F8c1
=ECRR
-----END PGP SIGNATURE-----

--DXai+D0O/pduKrS9--



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