Subject: Re: qemu and "Could not allocate physical memory"
To: None <joel@carnat.net, netbsd-users@netbsd.org>
From: Chris Clymer <cclymer@gmail.com>
List: netbsd-users
Date: 09/26/2005 05:24:51
This is a multi-part message in MIME format.
--------------050706030409030306030707
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've actually been running netbsd(among others) inside of qemu in Linux.
 I am probably oversimplifying, but you are aware of the "-m" flag in
qemu, right?  For example, adding "-m 256" when it starts up will
allocate 256 MB of memory to it.

IIRC, it wants 128MB by default.  So if you are finding that its only
using 64MB in netbsd and you haven't hard set it to that, my gut feeling
is that its either a misconfiguration in your netbsd install, or a funky
bug in qemu running on top of netbsd.

#qemu on irc.freenode.net may prove helpful.

Joel CARNAT wrote:
> Hi,
> 
> I'm trying to get qemu use more than 64Mbits of RAM (with 3.0_BETA and
> 3.99.8, both i386, and 512Mo of RAM). Google points me to ulimit
> but it doesn't seem to be my problem (my bash has ulimit=unlimited, and
> running qemu as root isn't better).
> 
> I noticed some value in sysctl :
> proc.curproc.rlimit.datasize.soft = 134217728
> proc.curproc.rlimit.datasize.hard = 1073741824
> 
> proc.curproc.rlimit.datasize.soft looks like the one than has to be
> modified. I tried doing so :
> # sudo sysctl -w proc.curproc.rlimit.datasize.soft=0
> proc.curproc.rlimit.datasize.soft: 134217728 -> 0
> # sudo sysctl -w proc.curproc.rlimit.datasize.soft=536870912
> proc.curproc.rlimit.datasize.soft: 134217728 -> 536870912
> 
> each time, it goes back to it's initial value...
> so :
> 1. any trick to have qemu use 128Mo or 256Mo ?
> 2. any trick to modify datasize.soft, if it's the solution to my pb ?
> 
> TIA,
> 	Jo

- --
          Chris Clymer - Chris@ChrisClymer.com
PGP: E546 19B6 D1EC 47A7 CAA0 8623 C807 398C CD27 15B8

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDN75jyAc5jM0nFbgRAvpcAJ4v6p8pTWPK4t7t/7hhsCvqKLO/PwCfeyxy
v5QALqdXwI0JAuFl6OaU6sk=
=N+A4
-----END PGP SIGNATURE-----

--------------050706030409030306030707
Content-Type: text/x-vcard; charset=utf-8;
 name="chris.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="chris.vcf"

begin:vcard
fn:Chris Clymer
n:Clymer;Chris
org:Youngstown Linux User Group
adr:;;252 Colonial Drive;Canfield;Ohio;44406;United States of America
email;internet:chris@chrisclymer.com
title:Founder
tel;cell:330.507.3651
x-mozilla-html:FALSE
url:http://www.chrisclymer.com
version:2.1
end:vcard


--------------050706030409030306030707--