From owner-freebsd-emulation@freebsd.org Tue Sep 22 18:50:36 2015 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C386FA06C62 for ; Tue, 22 Sep 2015 18:50:36 +0000 (UTC) (envelope-from decke@bluelife.at) Received: from mail-ob0-x231.google.com (mail-ob0-x231.google.com [IPv6:2607:f8b0:4003:c01::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8C8B714E6 for ; Tue, 22 Sep 2015 18:50:36 +0000 (UTC) (envelope-from decke@bluelife.at) Received: by obbbh8 with SMTP id bh8so15396459obb.0 for ; Tue, 22 Sep 2015 11:50:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bluelife.at; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=NVv6y3AYsHPqsxojQpFsTJnrMQu/e8CugSur9TrGHR8=; b=QdzZlenKnX67dQiABmZuJ/HNc6Qg7afSrkkHl+8SzXZbQIjZt87s2PCNSH3Zlnq7Al Sg2kyuD58dFmGKtNzqbJWkA7raJDR7eDibOwkjXIccyqkHJ2IESsbOylqZnZXXx3MR1A jt6gTZddCKukkw8pkNHAwJUNzWLhawnWYh8kE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=NVv6y3AYsHPqsxojQpFsTJnrMQu/e8CugSur9TrGHR8=; b=IXAkVVrewoNr/UEfGl63ivD4qsplQaPuw7f118ueI5tKcfvisSs/i5Z6U9vrHQRWUh nQaJfEJGgOfGAg8jGU+o6va4VBULkPmmjqr2ZrtpVz9A/jTXgZHUjMVTY9wync7nU8Lc yzSD6CbtwTX4vpRtTiPw9oI8a5nEQiGOwaH88nJ8hxUTQjNm1tYmeaCKUlTbRr6u3L/A QQ69U+ploAhvd2j0YeSR5oyKbeh/QzFbAGQ/oiSQqZzG9wDZvpo2ZW4PwGB0F+4+anNX e7koR+tkZ97N5K+NaTLbeSA4XkbsmjSWLQKHxBxKJhRUj71z/tzvSec5WlhtgYqIztQj cEQg== X-Gm-Message-State: ALoCoQnhyCJrmxJR40vj8qil8u5TEk4xx91W06PPbhaXGMWZlnQKUV/qYmqzqeiC6KSPiZFtGTrL MIME-Version: 1.0 X-Received: by 10.60.69.2 with SMTP id a2mr16043607oeu.3.1442947835538; Tue, 22 Sep 2015 11:50:35 -0700 (PDT) Received: by 10.76.173.168 with HTTP; Tue, 22 Sep 2015 11:50:35 -0700 (PDT) X-Originating-IP: [212.95.7.132] Received: by 10.76.173.168 with HTTP; Tue, 22 Sep 2015 11:50:35 -0700 (PDT) In-Reply-To: <56017026.6040809@aon.at> References: <55FE9662.7000406@aon.at> <1442866256.1127084.389759513.29E96282@webmail.messagingengine.com> <56017026.6040809@aon.at> Date: Tue, 22 Sep 2015 20:50:35 +0200 Message-ID: Subject: Re: VirtualBox mangles memory From: =?UTF-8?Q?Bernhard_Fr=C3=B6hlich?= To: Martin Birgmeier Cc: freebsd-emulation@freebsd.org, Mark Felder Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Sep 2015 18:50:37 -0000 To me this sounds a lot like vbox and zfs arc are fighting for resources. What does the memory line in top look like when this problem happens? A simple workaround would be to limit zfs arc in loader.conf if that is the problem. Am 22.09.2015 5:13 nachm. schrieb "Martin Birgmeier" : > > This did not happen when the machine was running FreeBSD 9.2 with virtualbox-ose-4.3.20 installed. So I would not qualify this as "known behavior". > > One server has 16G main memory, a VM gets 3G. The other has 8G main mem and again 3G allocated to the VM. > > This is definitely a bug in how VirtualBox handles memory on FreeBSD 10. I am pretty sure that something changed in FBSD 10 which was not properly taken care of in VB. > > -- Martin > > > > On 09/21/15 22:10, Mark Felder wrote: > > > > On Sun, Sep 20, 2015, at 06:20, Martin Birgmeier wrote: > >> On machines where VirtualBox is running, I get memory allocation errors. > >> > >> 'dd' aborts with 'dd: stdout: Cannot allocate memory' > >> > >> 'zfs send' aborts with 'internal error: Cannot allocate memory' > >> > >> I have created https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195970 > >> to track this. > >> > >> Could a knowledgeable person please have a look into this? > >> > >> FreeBSD 10.2, VirtualBox 4.3.30 > >> > >> -- Martin > >> > > I'm not an expert, but I think this is known behavior. Virtualbox > > requires a huge contiguous chunk of memory for the VM and that's > > probably what you're running into. > > > > Can you give more information about the specs of the server itself and > > the amount of resources allocated to VMs? > > > > _______________________________________________ > freebsd-emulation@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-emulation > To unsubscribe, send any mail to " freebsd-emulation-unsubscribe@freebsd.org"