Subject: qemu and "Could not allocate physical memory"
To: None <netbsd-users@netbsd.org>
From: Joel CARNAT <joel@carnat.net>
List: netbsd-users
Date: 09/26/2005 11:19:54
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
-- 
,-- This mail runs ---------.
`------------ NetBSD/i386 --'