From owner-freebsd-emulation@FreeBSD.ORG Tue Aug 10 10:01:07 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F4441065676 for ; Tue, 10 Aug 2010 10:01:07 +0000 (UTC) (envelope-from faust64@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 34C2A8FC21 for ; Tue, 10 Aug 2010 10:01:06 +0000 (UTC) Received: by gyg4 with SMTP id 4so4630175gyg.13 for ; Tue, 10 Aug 2010 03:01:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=JI8V8YGRDCM53U3WHTLz2TLzlfvXhNN7ge6BUIQ23x8=; b=IeIl+o0a2lq4TnkSYVYla3NsoNDpnEjx4rUWI5a+Tt4mytwL5Loa2j3YlJkPjE2l9o RW8uDcE9J7+zl0pZBDVuRgsWH9aV5bHc/E1W02cuGGC1u9fQ2A3IW8xZR0XD+LNxK7X+ zcde/mdwkLaS9wiStIwnchErDN39Jy1A+1uiM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=F4CVyL46C94qNXXMCwRnJillPZPPamQyFraaKU+xImmHihl4zPDy8834Qt8LSpUCPP IemFn9YuX+3XZaXNVmpEoVFBGf5OQd+Ukr4MyhQzUmwk9ZkGz08ha6P1MpZk7OMJ8rjE q/C8EvdY44gNBWUSB1QyIfJ8RbpTsS3ik7k80= Received: by 10.101.186.15 with SMTP id n15mr19280975anp.171.1281434465171; Tue, 10 Aug 2010 03:01:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.46.14 with HTTP; Tue, 10 Aug 2010 03:00:35 -0700 (PDT) In-Reply-To: References: <29392196.post@talk.nabble.com> From: =?ISO-8859-1?Q?Samuel_Mart=EDn_Moro?= Date: Tue, 10 Aug 2010 12:00:35 +0200 Message-ID: To: Hubert Tournier Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-emulation@freebsd.org Subject: Re: VirtualBox: out of swap space X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 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, 10 Aug 2010 10:01:07 -0000 > On Mon, Aug 9, 2010 at 11:15 PM, Hubert Tournier wrote= : > >> >> Hello, >> >> >> Samuel Mart=EDn Moro wrote: >> > Sometimes, when I start a VM, all other running VM stop >> >> Never had that. Though, when I can only launch one VM, it usually means >> that >> there's a discrepency between my running FreeBSD kernel, FreeBSD userlan= d, >> VirtualBox kmod and/or VirtualBox. Syncing all of that usually solves th= e >> issue. >> >> >> Samuel Mart=EDn Moro wrote: >> > >> > I see a few 'pid xxxx (VirtualBox), uid 0, was killed: out of swap >> space' >> > I've got 8Gb of RAM, and so assumed I wouldn't need any swap. >> > >> >> Just compute the free memory space after booting, without VirtualBox >> loaded >> (you can see that with top or the following snippet): >> >> PAGES_FREE=3D`sysctl -n vm.stats.vm.v_free_count` >> > 1990724 > >> PAGES_INACTIVE=3D`sysctl -n vm.stats.vm.v_inactive_count` >> > 3176 > >> PAGES_CACHE=3D`sysctl -n vm.stats.vm.v_cache_count` >> > 50 > >> PAGES_LIBRES=3D`expr ${PAGES_FREE} + ${PAGES_INACTIVE} + ${PAGES_CACHE}` >> > 1993950 > >> TAILLE_PAGES=3D`sysctl -n vm.stats.vm.v_page_size` >> > 4096 > >> MEMOIRE_LIBRE=3D`expr ${PAGES_LIBRES} \* ${TAILLE_PAGES} / 1048576` >> > 7788 > >> echo "${MEMOIRE_LIBRE}M free memory" >> > ok... > > Then subtract, for each VM, the RAM requested plus 100 MB, and 60 MB for >> the two VirtualBox processes (rough values for headless VM). >> > indeed, the fourth one don't fit... > >> >> If you are already negative (without doing anything else), then you will >> either need to add swap (if you don't mind low performances) or reduce t= he >> number of running VM or their memory requirements. >> > >> >> Samuel Mart=EDn Moro wrote: >> > Have I to reinstall my server to add some swap? (and if so, how much?!= ) >> > >> >> No, you just need to add a swap device somewhere. See >> http://www.freebsd.org/doc/handbook/adding-swap-space.html in the >> handbook. >> > indeed... > I'm giving it a try: 24G file, let's see... > I presume it's not that far from actual swap performances > >> >> >> Samuel Mart=EDn Moro wrote: >> > Second problem: When I'm creating a disk (in VirtualBox) [...] these >> > guests display some gvfs errors, about not finding ad0. >> >> If they don't find ad0, are you sure you declared an IDE controller(s) a= nd >> disk(s) in your guest VMs? (IDE=3Dad0 through ad3, SATA=3Dad4 and above)= . >> > yep, the disk is here, the system is installed on it. > that's just, when i create an other VM disk (got a script preparing the V= M, > creating and attaching discs, install ISO, and so...), and while I've > already > launched some stuff implying disk access, I sometimes (for each disc I > create...) > see other VMs crashing or whatever, loosing their root partition, ... > I assume disc creation slow down my HD, and others VM might have troubles > accessing their own... > >> >> >> Samuel Mart=EDn Moro wrote: >> > I could have finished already if I just had installed a Linux host in >> the >> > first place [...] Is there some hope sticking with BSD? [...] I'm >> > seriously thinking on dropping that BSD idea, and choosing some random >> > linux to make it work... >> >> You should use the OS you're most comfortable with... or be prepared to >> make >> some efforts! At least if you want people to help you... >> > I never had to virtualize with FreeBSD as host. > But I'm quite comfortable using it. > The thing is, my colleague, a former-linux-sysadmin, and my boss are > breaking my > balls with their linux. IMHO it would be better to use FreeBSD, because w= e > generate > FreeBSDs, and we may (will) want to try our stuff outside the VM (thinkin= g > about a > ifconfig-like tool, that we had to patch in order to make it work with VM= s) > So, I'ld be really disapointed if, finally, I'd have to install a linux o= n > that server... > OK, so I still have the "out of swap space" problem... with 24Gb of swap, none of it beeing used... Debian stable might do it... sorry... > >> Regards, >> > > Thanks! > >> >> Hubert >> -- >> View this message in context: >> http://old.nabble.com/VirtualBox%3A-out-of-swap-space-tp29389270p2939219= 6.html >> Sent from the freebsd-emulation mailing list archive at Nabble.com. >> >> _______________________________________________ >> freebsd-emulation@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-emulation >> To unsubscribe, send any mail to " >> freebsd-emulation-unsubscribe@freebsd.org" >> > >