Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Sep 2009 13:04:21 +0200
From:      Ivan Voras <ivoras@freebsd.org>
To:        Bernhard Froehlich <decke@bluelife.at>
Cc:        freebsd-current@freebsd.org, vbox@freebsd.org, Andriy Gapon <avg@freebsd.org>
Subject:   Re: virtualbox: out of memory on start [Was: DRI initialiazation  fails on 8.0-BETAx/M54]
Message-ID:  <9bbcef730909180404p1b431916w163fd9ca6bb41729@mail.gmail.com>
In-Reply-To: <d235c5e37d1b9bdacb5d663cd519994b.squirrel@webmail.itac.at>
References:  <4A9D7560.7060902@freebsd.org> <1251840705.1689.4440.camel@balrog.2hip.net>  <4A9E7B42.9070608@icyb.net.ua> <4AACA736.5010405@freebsd.org>  <d235c5e37d1b9bdacb5d663cd519994b.squirrel@webmail.itac.at>

next in thread | previous in thread | raw e-mail | index | archive | help
2009/9/17 Bernhard Froehlich <decke@bluelife.at>:


>> Host RAM: 3822MB RAM, available: 30MB
>> So it seems like it needs Free memory and can not pressure other memory to
>> get freed or got to swap.
>
> I've had a look at the code and found that "available" is interpreted as
> "free" which is wrong. According to my understanding available RAM means
> Free + Cached + Inactive so i have created a patch for that and commited
> it to our svn port as r491.
>
> Could you please give it a try? (we have automatically build tar's now :o)
>
> http://svn.bluelife.at/nightlies/virtualbox-port.tar.gz

Your interpretation about available memory is correct, but it doesn't
solve my problem:

00:00:00.896 VirtualBox 3.0.51_OSE r23006 freebsd.amd64 (Sep 18 2009
12:45:43) release log
00:00:00.896 Log opened 2009-09-18T11:00:34.205219000Z
00:00:00.896 OS Product: FreeBSD
00:00:00.896 OS Release: 8.0-BETA2
00:00:00.896 OS Version: FreeBSD 8.0-BETA2 #5: Mon Aug 17 11:29:21
CEST 2009     ivoras@lara.cc.fer.hr:/usr/obj/usr/src/sys/LARA
00:00:00.896 Host RAM: 3823MB RAM, available: 1248MB
00:00:00.896 Executable: /usr/local/lib/virtualbox/VirtualBox
00:00:00.896 Process ID: 30904
00:00:00.896 Package type: BSD_64BITS_GENERIC (OSE)
00:00:00.908 SUP: Opened VMMR0.r0 (/usr/local/lib/virtualbox/VMMR0.r0)
at 0xffffffff81070080.
00:00:00.909 ERROR [COM]: aRC=NS_ERROR_FAILURE (0x80004005)
aIID={0a51994b-cbc6-4686-94eb-d4e4023280e2} aComponent={Console}
aText={VM creation failed (GVMM) (VERR_NO_MEMORY).
00:00:00.909 Unknown error creating VM (VERR_NO_MEMORY)}
aWarning=false, preserve=false
00:00:01.059 Power up failed (vrc=VERR_NO_MEMORY, rc=NS_ERROR_FAILURE
(0X80004005))

As before, I have enough "available" memory (though much more than
before so your patch is very useful) but this doesn't allow my 512 MB
VM to start.

Again, the first VM starts fine, but I cannot start more than one.

-- 
f+rEnSIBITAhITAhLR1nM9F4cIs5KJrhbcsVtUIt7K1MhWJy1A==



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