From owner-freebsd-current@FreeBSD.ORG Fri Sep 18 11:04:43 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 B1CF3106566C for ; Fri, 18 Sep 2009 11:04:43 +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 E6BAF8FC16 for ; Fri, 18 Sep 2009 11:04:42 +0000 (UTC) Received: by ewy4 with SMTP id 4so349650ewy.36 for ; Fri, 18 Sep 2009 04:04:42 -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; bh=NoHXTWmCKeMpJ/WFC9KP/aIBnrOxmbnjnu/qhVIP834=; b=iPmUGwrCKnPlOHi4VdiZyDCM0Ve//stpzaYNY7lzHrCwkj+S2lza+COjyjinTvCq6z Uh7yn0lMLyy27JqPiz9uZO7fvDVu9wTUJ/51v8/vovITF+62Xw+MRtxdY9LPEMGNz6d0 4TZvDsq/fwj833XY4jgenJ24AGP4Q/m2qGug8= 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; b=fTXlrMg0BUA8JfTcVJkJe9FmzbWGkxPrwVA1k5lhybX2y7+Q+mRNaCsdT1qwYE6TPN Bv5Xb5snW1f3uTvsGZWmpr9J/KW/RWMiDf4vwmHopJWlVCKPcXiUKG3zz2NaJCx/39pg +P0bxq0TrFOGYCV0U+oTGsJeZJW2fblxqQvWE= MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.216.52.81 with SMTP id d59mr432480wec.205.1253271881143; Fri, 18 Sep 2009 04:04:41 -0700 (PDT) In-Reply-To: References: <4A9D7560.7060902@freebsd.org> <1251840705.1689.4440.camel@balrog.2hip.net> <4A9E7B42.9070608@icyb.net.ua> <4AACA736.5010405@freebsd.org> From: Ivan Voras Date: Fri, 18 Sep 2009 13:04:21 +0200 X-Google-Sender-Auth: a12f1dd340a4159e Message-ID: <9bbcef730909180404p1b431916w163fd9ca6bb41729@mail.gmail.com> To: Bernhard Froehlich Content-Type: text/plain; charset=UTF-8 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 11:04:43 -0000 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 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==