From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3Y8d-0006Fl-AN for qemu-devel@nongnu.org; Wed, 15 Jan 2014 16:36:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3Y8U-0006kg-Kz for qemu-devel@nongnu.org; Wed, 15 Jan 2014 16:36:39 -0500 Received: from mail-ea0-x232.google.com ([2a00:1450:4013:c01::232]:46822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3Y8U-0006kY-Ek for qemu-devel@nongnu.org; Wed, 15 Jan 2014 16:36:30 -0500 Received: by mail-ea0-f178.google.com with SMTP id d10so750710eaj.23 for ; Wed, 15 Jan 2014 13:36:28 -0800 (PST) Message-ID: <52D6FF59.8010905@gmail.com> Date: Wed, 15 Jan 2014 22:36:25 +0100 From: Piotr Karbowski MIME-Version: 1.0 References: <52CF2A0F.1060305@gmail.com> <20140115100353.GA2154@redhat.com> In-Reply-To: <20140115100353.GA2154@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Enabling vhost-net cause insane high memory usage. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: qemu-devel@nongnu.org Hello, On 01/15/2014 11:03 AM, Michael S. Tsirkin wrote: > > Could you explain how you measure that exactly? > I check the resident memory (RES) of qemu-system-x86_64 proces. > Yes, this should not happen. > One interesting thing to try would be switching device type from > virtio-net to e1000. > > This means vhost will be initialized but not started. > So with virtio-net-pci + vhost=on I have VM process on 580-590 MB of RES memory, if I disable vhost OR set e1000 NIC and leave vhost enabled, its take just 109-120 MB of resident memory. The memory usage check is done after few minutes after VM start, and the vm have minimal debian7 system without even single additional service. -- Piotr.