From owner-freebsd-current@FreeBSD.ORG Thu Sep 17 18:43:27 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 42EDB1065676; Thu, 17 Sep 2009 18:43:27 +0000 (UTC) (envelope-from decke@bluelife.at) Received: from mail.itac.at (mail.itac.at [213.47.211.116]) by mx1.freebsd.org (Postfix) with ESMTP id E87DF8FC14; Thu, 17 Sep 2009 18:43:26 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=webmail.itac.at) by mail.itac.at with esmtpa (Exim 4.63) (envelope-from ) id 1MoLwy-0004Y7-QU; Thu, 17 Sep 2009 20:43:24 +0200 Received: from 78.142.74.81 (SquirrelMail authenticated user decke@bluelife.at) by webmail.itac.at with HTTP; Thu, 17 Sep 2009 20:43:24 +0200 (CEST) Message-ID: In-Reply-To: <4AACA736.5010405@freebsd.org> References: <4A9D7560.7060902@freebsd.org> <1251840705.1689.4440.camel@balrog.2hip.net> <4A9E7B42.9070608@icyb.net.ua> <4AACA736.5010405@freebsd.org> Date: Thu, 17 Sep 2009 20:43:24 +0200 (CEST) From: "Bernhard Froehlich" To: "Andriy Gapon" User-Agent: SquirrelMail/1.4.15 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Mailman-Approved-At: Thu, 17 Sep 2009 19:13:00 +0000 Cc: freebsd-current@freebsd.org, vbox@freebsd.org, Ivan Voras 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: Thu, 17 Sep 2009 18:43:27 -0000 On Sun, September 13, 2009 10:03 am, Andriy Gapon wrote: > on 02/09/2009 17:03 Andriy Gapon said the following: >> >> BTW, I have a different but potentially related problem - after running >> a >> head/current system for a while I am losing an ability to start >> VirtualBox. It >> complains about something "no memory" too. >> The system is amd64 with 4G of RAM with only a handful of processes >> started. >> Maybe we got some regression in memory area (e.g. pmap)? > > So I got this problem again and I'd like to gather as much useful debug > information as possible, but I am not sure what would that be. > > Here's a message from virtualbox: > GVMMR0CreateVM: failed, rc=-8 > > This machine has 4GB of RAM and only a handful of applications are started > (but > in KDE4). But memory usage line from top looks suspicious: > Mem: 1439M Active, 199M Inact, 1308M Wired, 669M Cache, 392M Buf, 61M Free > Wired is huge, Buf and Cache are also substantial. > Maybe something to do with ZFS? > > And, yes, just noticed, this is what virtualbox wrote in virtual machine's > log: > 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 -- Bernhard Fröhlich http://www.bluelife.at/