From owner-freebsd-emulation@FreeBSD.ORG Fri Dec 13 22:53:04 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 68A7286F for ; Fri, 13 Dec 2013 22:53:04 +0000 (UTC) Received: from mail-oa0-x235.google.com (mail-oa0-x235.google.com [IPv6:2607:f8b0:4003:c02::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2768216BA for ; Fri, 13 Dec 2013 22:53:04 +0000 (UTC) Received: by mail-oa0-f53.google.com with SMTP id m1so2812736oag.12 for ; Fri, 13 Dec 2013 14:53:03 -0800 (PST) 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=cwPhnvuKQ8ZdYtwbdwJxaGF9yyCAD9Zxa1DZOWiQ3d8=; b=X71yH8SOTKTCD1Hyq+bw/VvUIqt4ayToQ5cSepoF/WuR50jkG4vfiksxrvbW3/wx10 VAm/cBnn9JtkL4fI62pmLAV8BBI7P2SMt2bjbNg3dOeGcmF7lW+QUOqq64URTlWWy1xp EILRkeI9A7cRdHQJIsRShNu4+mAXuFJ+79pFU= 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=cwPhnvuKQ8ZdYtwbdwJxaGF9yyCAD9Zxa1DZOWiQ3d8=; b=jU0FvREXEM1P9OjN/RBQ10dE88MyOolkE+sg4Q3PxIjWdSszsThhXm4RAGjyRsFf3F t8B0Y3ebdOTYwKto5geRcY2KSjREBaSwKhXYUBrUbbyMjp/1nE/AaKKS2meUCCdcNLPZ INMmWyK/+z0oFsQXdEyGwdL35RzRgl9/WWeXWkyMeyBMGQoC2Lkrq0cPJvJzfs69YYSV 3h/4T5webDbfd3iXPGj7EMg3K5SGF0fkcJwhXRHcG5BJiLVtXvS+0LkjUNvjfe5m2env 295IZQeN7fcwJHckoYu2/MdlNuCmxyiTVvWl5s34GVKr1YG8jEjEZmfvTU64qBPOilEe d3mA== X-Gm-Message-State: ALoCoQmT062vCjyUkRGhBEu7gxzVYPk+vD4HOTWAFaANoUjtC1OzbngpPWGu2bsSWVkY5/ycxItk MIME-Version: 1.0 X-Received: by 10.60.125.3 with SMTP id mm3mr3410194oeb.23.1386975183346; Fri, 13 Dec 2013 14:53:03 -0800 (PST) Received: by 10.76.154.2 with HTTP; Fri, 13 Dec 2013 14:53:03 -0800 (PST) X-Originating-IP: [46.206.71.7] Received: by 10.76.154.2 with HTTP; Fri, 13 Dec 2013 14:53:03 -0800 (PST) In-Reply-To: <52AB403B.5070502@rawbw.com> References: <52AADB18.3010407@rawbw.com> <52AB403B.5070502@rawbw.com> Date: Fri, 13 Dec 2013 23:53:03 +0100 Message-ID: Subject: Re: [VBox] Why VirtualBox process is so large? From: =?ISO-8859-1?Q?Bernhard_Fr=F6hlich?= To: Yuri Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: freebsd-emulation@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.17 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: Fri, 13 Dec 2013 22:53:04 -0000 Am 13.12.2013 18:13 schrieb "Yuri" : > > On 12/13/2013 02:02, Yuri wrote: >> >> I have the VM that is allocated 512MB of base memory for the guest, but its total memory size on host is 1263MB. This seems excessive. >> What is the normal memory overhead for the VM? Is there a way to reduce it? >> Documentation doesn't elaborate on this. > > > 512MB machine looks in ps(1) like this (linux guest): > 5717 yuri 21 20 0 1263M 444M select 0 9:06 88.48% VirtualBox > And 1024MB machine looks like this (FreeBSD guest): > 13565 yuri 18 20 0 1720M 1135M uwait 5 71:13 4.05% VirtualBox > > Process sizes shouldn't be that high in both cases. My guess is that VBox takes freedom to allocate an additional disk cache maybe? Then this should be configurable. What other memory could this be? Leak? > > As a comparison, VMWare lists the sample overhead memories: http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.vsphere.resmgmt.doc_50%2FGUID-B42C72C1-F8D5-40DC-93D1-FB31849B1114.html > For 1GB machine with 1CPU it would be ~26MB. We need to understand why VBox goes so much higher. This is a bug on your side. Please look at the ps manpage to learn about the different columns and what they mean.