From owner-freebsd-current@FreeBSD.ORG Fri Sep 18 14:43:26 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 587E710656AB; Fri, 18 Sep 2009 14:43:26 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from mail-ew0-f208.google.com (mail-ew0-f208.google.com [209.85.219.208]) by mx1.freebsd.org (Postfix) with ESMTP id 873818FC2B; Fri, 18 Sep 2009 14:43:25 +0000 (UTC) Received: by ewy4 with SMTP id 4so520572ewy.36 for ; Fri, 18 Sep 2009 07:43:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to:cc :content-type:content-transfer-encoding; bh=zgoRioYXKkhfcN3f0/WrM7gkxi9grazhd4Yg58R8cQ4=; b=HPfM8KTvrMvB+9cdx4WBQRF6yB/9BnLmvvo+wFxs2N5aYKa7rKS/gxIFdpocCzNKt8 w7tWUGW5I1D/pqSXb70dRNgHEBGLiq0sBcHGcBe/x+HlH7BdW7d6XzDvXva6BVAtxlcy z1PBMg45VWHYbxozU0/5tQqob62B8tYq2mzPo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=d89FmIF6bwQj3iqMOYauTCSxL1VrxgQ07oJHtUVv3xoYdEccdSxGgav2PHxSyQF6PA g1rjLHYsl/DdiUNROFHutHSqQVYmboBbIj2PbZNmuaO339RLb+fJOyLFH4CFhGSqdqV9 KR9NmnkAR7PsTmZLFqZKxUG+tOJUzHRkW5QHc= MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.216.72.149 with SMTP id t21mr497825wed.136.1253285004100; Fri, 18 Sep 2009 07:43:24 -0700 (PDT) In-Reply-To: <9bbcef730909180404p1b431916w163fd9ca6bb41729@mail.gmail.com> References: <4A9D7560.7060902@freebsd.org> <1251840705.1689.4440.camel@balrog.2hip.net> <4A9E7B42.9070608@icyb.net.ua> <4AACA736.5010405@freebsd.org> <9bbcef730909180404p1b431916w163fd9ca6bb41729@mail.gmail.com> From: Ivan Voras Date: Fri, 18 Sep 2009 16:43:04 +0200 X-Google-Sender-Auth: 0c1a79363860664d Message-ID: <9bbcef730909180743r7f5dee53jd0ff800e0c1eb37@mail.gmail.com> To: Bernhard Froehlich Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org, vbox@freebsd.org, Andriy Gapon Subject: Re: virtualbox: out of memory on start [Was: DRI initialiazation fails on 8.0-BETAx/M54] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Sep 2009 14:43:26 -0000 2009/9/18 Ivan Voras : > 2009/9/17 Bernhard Froehlich : > > >>> 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 =C2=A0 =C2=A0 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=3DNS_ERROR_FAILURE (0x80004005) > aIID=3D{0a51994b-cbc6-4686-94eb-d4e4023280e2} aComponent=3D{Console} > aText=3D{VM creation failed (GVMM) (VERR_NO_MEMORY). > 00:00:00.909 Unknown error creating VM (VERR_NO_MEMORY)} > aWarning=3Dfalse, preserve=3Dfalse > 00:00:01.059 Power up failed (vrc=3DVERR_NO_MEMORY, rc=3DNS_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. It looks like it could be something local. I've rebooted now and I have around 3 GB "available" memory as VBox sees it, and now I can start machines as usual.