From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sasha Levin Subject: Re: virtio-net mq vq initialization Date: Mon, 22 Apr 2013 14:32:56 -0400 Message-ID: <51758258.4010507@oracle.com> References: <1365698186-27355-1-git-send-email-will.deacon@arm.com> <516716B8.9090408@oracle.com> <874nfc9e1r.fsf@rustcorp.com.au> <5169CCDD.4070205@oracle.com> <20130414100156.GB2548@redhat.com> <516AC85E.7070603@oracle.com> <516B9706.2040601@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Sasha Levin , "Michael S. Tsirkin" , Rusty Russell , Will Deacon , kvm@vger.kernel.org, penberg@kernel.org, marc.zyngier@arm.com To: Jason Wang Return-path: Received: from aserp1040.oracle.com ([141.146.126.69]:44098 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754569Ab3DVSdm (ORCPT ); Mon, 22 Apr 2013 14:33:42 -0400 In-Reply-To: <516B9706.2040601@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 04/15/2013 01:58 AM, Jason Wang wrote: >> Initializing them only when they're actually needed will do the trick here. > I don't see so much memory allocation with qemu, the main problem I > guess here is kvmtool does not support mergeable rx buffers ( does it? > ). So guest must allocate 64K per packet which would be even worse in > multiqueue case. If mergeable rx buffer was used, the receive buffer > will only occupy about 256 * 4K (1M) which seems pretty acceptable here. Yup, kvmtool doesn't do mergable RX at the moment. I'll add support for that in, thanks for pointing it out! Thanks, Sasha