Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Nov 2007 15:24:04 +0100
From:      Gergely CZUCZY <phoemix@harmless.hu>
To:        freebsd-stable@freebsd.org
Subject:   mmap max size (qemu VM memsize limit)
Message-ID:  <20071121142404.GA7511@harmless.hu>

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

--/04w6evG8XlLl3ft
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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 use=
r-
     land address space.  Files may not be able to be made more than 1TB la=
rge
     on 32 bit systems due to file systems restrictions and bugs, but addre=
ss
     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 wasn=
't
able to find the one effecting this limit.

Could someone point me into the right direction in increasing the maximum
mmap-able size?

Sincerely,

Gergely Czuczy
mailto: gergely.czuczy@harmless.hu

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

--/04w6evG8XlLl3ft
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

owFNVD1rHFcUVSyneeBCnStzo0YW2VnvriSvvGZRLNmWBQ4psmBISODtzJ2Zh97H
6H1IHhVJocYYY4xbIwyq3IQEkjK/wZ2LkMKNq5A2RbrcN7O7zhYDe9+95553zpl5
cWV56dLK219++/bzZy9fffLTZTldV8F7XSSK22Ohk36v10+GW/1+spFsDYf59gb2
N7J+f5qm+3d3zvaM9qh9MqkrHIHHx/5GJbnQtyEtuXXox8HnyTab990VrjJOeGH0
CISWQuPibGK5djna5J5OTSZ0MYKjYDxmSWWF9nwqkbEHKKXpMHawpsDbmrrAG6BF
ECrgcIQqwInwJWzug0JlbB3PfYlQGufB1c6jYkZT7zDZvTe5M+gA1xkcrB1Ti6AO
oxAOBZVMDlIoKgkNuUWcuqzL2KMSNQgoBPUTPEZsDT8Mer3el7tx5uPWSKYDBGDR
B6sd47Q292j/x1wpXl1fp6YOON4UV/dMkBlo44HOoCprJ1IuZ7irROGOby6ELccG
YbAeSxbXHF2MRnGGNmKrEH8T6pfEk9siKBIbhGsvh9lcH8UfCxUU5ELStDhFMBb4
MRcyKg/B4ZjZhDVwMkrGs8yic+AqnmIX4D4NOoKpG+5ThGaO0KcRPFvIRSr0J7uE
QXgFtoBkyMYApmLukIMsNLMtm1mN1nkr0pge17g2DYXr0NO3ZMbMuRav4RQvmXPb
7l3MHkeuD0kI8iFfUCaOFEwnImUic3Mzkplhtdu7q5Q6KEK8cpOW3ASi4Mu5lN22
TFtaUdMS00OyI8eTiJF66RqqB3DCnR6zNc/mCuWiQYqrydc8R+IZ8/ERm7E2FjGe
saky9EpQJiicM/+sKEoPmbDYCBRTK3RqkbsWauEwi4lJmtXR5h3GvqZGCo+s6cXa
R1JG1rB3GtLTminy35sRFG25mzblL+jlViSd65aBsSQZD3rsEaIWpKYnobuwT38o
MpQOI0mUyhraRxaS/WSWFQ677MnO8qdL8Ssy/wCtXLqVLr3+6uzvztNv3v9885/7
m+dXf4etP8/+WDq/9mz7Tfju33fDler5Z79+f/HXhx8v/gM=
=g9yW
-----END PGP SIGNATURE-----

--/04w6evG8XlLl3ft--



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