public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: "Gonglei (Arei)" <arei.gonglei@huawei.com>
Cc: "stefanha@redhat.com" <stefanha@redhat.com>,
	"jasowang@redhat.com" <jasowang@redhat.com>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	"virtio-dev@lists.oasis-open.org"
	<virtio-dev@lists.oasis-open.org>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"Lilijun (Jerry)" <jerry.lilijun@huawei.com>,
	"Huangpeng (Peter)" <peter.huangpeng@huawei.com>
Subject: Re: Can we increase vring size over 1024?
Date: Sun, 4 Sep 2016 04:31:07 +0300	[thread overview]
Message-ID: <20160904042834-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <33183CC9F5247A488A2544077AF19020B03B3825@SZXEMA503-MBS.china.huawei.com>

On Sat, Sep 03, 2016 at 04:20:47AM +0000, Gonglei (Arei) wrote:
> 
> 
> > -----Original Message-----
> > From: Michael S. Tsirkin [mailto:mst@redhat.com]
> > Sent: Saturday, September 03, 2016 1:33 AM
> > To: Gonglei (Arei)
> > Cc: stefanha@redhat.com; jasowang@redhat.com; kvm@vger.kernel.org;
> > virtio-dev@lists.oasis-open.org; qemu-devel@nongnu.org; Lilijun (Jerry);
> > Huangpeng (Peter)
> > Subject: Re: Can we increase vring size over 1024?
> > 
> > On Fri, Sep 02, 2016 at 06:55:35AM +0000, Gonglei (Arei) wrote:
> > > Hi Michael & all,
> > >
> > > Michael, you made a presentation about the virto 1.1's new features in KVM
> > Forum last week.
> > > That's wonderful!
> > >
> > > And I'd like to know can we increase vring size over 1024, such as 4096 or
> > 8192?
> > >
> > > My colleage had asked the same question in 2014, but she didn't get a
> > definite answare,
> > > So, I want to rewake up the dissusstion about this. Becase for the
> > virtio-crypto device,
> > > I also need to increase the vring size to get better performance and
> > thoughput, but the Qemu
> > > side limit the thought as VIRTQUEUE_MAX_SIZE is 1024.
> > >
> > >  [QA-virtio]:Why vring size is limited to 1024?
> > >
> > http://qemu.11.n7.nabble.com/QA-virtio-Why-vring-size-is-limited-to-1024-td2
> > 92450.html
> > >
> > > Avi Kivity said that google cloud exposed the vring size to 16k.
> > >
> > > Regards,
> > > -Gonglei
> > 
> > Fundamentally, the reason is that the ring size
> > currently also sets the max s/g list length, and linux
> > hosts can't support bigger lists.
> > 
> But I don't think this is a problem.
> Vring is just a container, we can say the max request's length is 1024, but the capacity of container
> shouldn't be the length of max request. For example, we can put 4K requests with one s/g list
> into vring at one time if the vring size is 4096, and 4 requests with 1024 s/g list into vring at one time.
> Ignoring the indirect table support. Am I right?

We'd have to change the spec for that. At the moment spec says
they are the same. Features that link descriptors when they
are used, like mergeable buffers, would also need to obey the
new limit. When vring size is used, both fall out naturally
(except with indirect descriptors).

> > We should fix that in 1.1.
> > 
> Sounds good!
> 
> > --
> > MST
> 
> Regards,
> -Gonglei

      reply	other threads:[~2016-09-04  1:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-02  6:55 Can we increase vring size over 1024? Gonglei (Arei)
2016-09-02 13:39 ` [Qemu-devel] " Stefan Hajnoczi
2016-09-05  3:21   ` 答复: " Lilijun (Jerry)
2016-09-05 16:18     ` 答复: [Qemu-devel] " Michael S. Tsirkin
2016-09-05 20:20     ` Stefan Hajnoczi
2016-09-02 17:32 ` Michael S. Tsirkin
2016-09-03  4:20   ` Gonglei (Arei)
2016-09-04  1:31     ` Michael S. Tsirkin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160904042834-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=arei.gonglei@huawei.com \
    --cc=jasowang@redhat.com \
    --cc=jerry.lilijun@huawei.com \
    --cc=kvm@vger.kernel.org \
    --cc=peter.huangpeng@huawei.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    --cc=virtio-dev@lists.oasis-open.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox