Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Nov 2007 16:03:45 +0100
From:      Gergely CZUCZY <phoemix@harmless.hu>
To:        Guy Helmer <ghelmer@palisadesys.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: mmap max size (qemu VM memsize limit)
Message-ID:  <20071126150345.GA7560@harmless.hu>
In-Reply-To: <474ADF40.5050500@palisadesys.com>
References:  <20071121142404.GA7511@harmless.hu> <474ADF40.5050500@palisadesys.com>

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

--k+w/mQv8wyuph6w0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Nov 26, 2007 at 08:59:12AM -0600, Guy Helmer wrote:
> Gergely CZUCZY wrote:
> >Hello,
> >
> >I'm trying to set up a qemu with 4G memory to the host system
> >on a 7-BETA2, and I've hit some kind of limit in freebsd.
> >
> >When i give more then ~2000MB of memory to qemu, it returns
> >an after trying to mmap() it, saying "Could not map physical memory".
> >
> >At the end of mmap(2) there's a note saying:
> >"     The len argument is limited to the maximum file size or available =
user-
> >     land address space.  Files may not be able to be made more than 1TB=
 large
> >     on 32 bit systems due to file systems restrictions and bugs, but ad=
dress
> >     space is far more restrictive.  Larger files may be possible on 64 =
bit
> >     systems."
> >
> >I guess I've found this limit. I've tried to check a few sysctls but I w=
asn't
> >able to find the one effecting this limit.
> >
> >Could someone point me into the right direction in increasing the maximum
> >mmap-able size?
> >
> > =20
> If you are using the 32-bit i386 system, then you could be limited by a c=
ouple of things, the kern.maxdsiz loader tunable or the datasize limit are=
=20
> likely.  On i386, I believe 1073741824 (1G) is the default maxdsiz.  With=
 4GB of RAM, I think you ought to be able to double kern.maxdsiz in=20
> /boot/loader.conf.
It's an amd64 with 14Gs of RAM in it. Sorry for accidentally omitting this.

Sincerely,

Gergely Czuczy
mailto: gergely.czuczy@harmless.hu

--=20
Weenies test. Geniuses solve problems that arise.

--k+w/mQv8wyuph6w0
Content-Type: application/pgp-signature
Content-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Mqhkzi4NnurF9LYxNZosFCo
0ywJhaaeHAq7dFxSowTpJFCuIpVz6kjSDAnqlGsZIZsMi0Oh0DW4OE56PuhICsmY
Zd6hzcYilUnQkCvEKd4oOFe8mYhMB5VNeCE4DqEbD7eG/e6o14eb3ekGmcKD8Zy5
grbOl8TcE7xU0Jv9qd/t9/eOCIUonvp2lCMtG1MvJ5UpR7/+x13IhtNmopTdbDqJ
UiXzKDi0tKu4jmWGBvOXWLc/NYtyfjponbtK46WS0xqmqchwbVmB16XCnlsfREFw
FyeJ21/UnSBor9QLl17UQYnba9UYZs1xlPrj2/gyKNHvJpq7IAhDonnCuRS4Aha3
I8KbWQpcd1xsVaBylVbYXUl6MZJbGB4Fn+1ee3qF3jrLN9aN1Z+erHz70pPqtxeD
5y7//vWrrz/dffzCX5dwsvLo+sPV17I/f//xH5F8+fj5Z/+9/fPHf/wH
=k6+t
-----END PGP SIGNATURE-----

--k+w/mQv8wyuph6w0--



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