From: Paolo Bonzini <pbonzini@redhat.com>
To: Vincenzo Maffione <v.maffione@gmail.com>, qemu-devel@nongnu.org
Cc: g.lettieri@iet.unipi.it, jasowang@redhat.com, rizzo@iet.unipi.it,
armbru@redhat.com, mst@redhat.com
Subject: Re: [Qemu-devel] [PATCH v2 0/3] virtio: proposal to optimize accesses to VQs
Date: Wed, 16 Dec 2015 09:38:36 +0100 [thread overview]
Message-ID: <5671230C.70102@redhat.com> (raw)
In-Reply-To: <cover.1450218353.git.v.maffione@gmail.com>
On 15/12/2015 23:33, Vincenzo Maffione wrote:
> This patch slightly rewrites the code to reduce the number of accesses, since
> many of them seems unnecessary to me. After this reduction, the bottleneck
> jumps from 1 Mpps to 2 Mpps.
Very nice. Did you get new numbers with the rebase? That would help
measuring the effect of removing variable-sized memcpy (I'll post the
patches for this shortly; they're entirely in memory.h/exec.c so they're
not virtio-specific). A rough measurement from "perf" says they're
worth about 5%.
Related to this, patch 3 introduces a variable-sized memcpy, because it
switches from 2 virtio_stl_phys to 1 address_space_write. I'm curious
if the effect of this individual patch is positive, negative or neutral.
On the other hand, patches 1 and 2 are clear wins.
Paolo
> Patch is not complete (e.g. it still does not properly manage endianess, it is
> not clean, etc.). I just wanted to ask if you think the idea makes sense, and
> a proper patch in this direction would be accepted.
next prev parent reply other threads:[~2015-12-16 8:38 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-15 22:33 [Qemu-devel] [PATCH v2 0/3] virtio: proposal to optimize accesses to VQs Vincenzo Maffione
2015-12-15 22:33 ` [Qemu-devel] [PATCH v2 1/3] virtio: cache used_idx in a VirtQueue field Vincenzo Maffione
2015-12-15 22:33 ` [Qemu-devel] [PATCH v2 2/3] virtio: read avail_idx from VQ only when necessary Vincenzo Maffione
2015-12-15 22:33 ` [Qemu-devel] [PATCH v2 3/3] virtio: combine write of an entry into used ring Vincenzo Maffione
2015-12-16 8:38 ` Paolo Bonzini [this message]
2015-12-16 9:28 ` [Qemu-devel] [PATCH v2 0/3] virtio: proposal to optimize accesses to VQs Vincenzo Maffione
2015-12-16 9:34 ` Paolo Bonzini
2015-12-16 10:39 ` Vincenzo Maffione
2015-12-16 11:02 ` Michael S. Tsirkin
2015-12-16 11:23 ` Vincenzo Maffione
2015-12-16 11:37 ` Paolo Bonzini
2015-12-16 14:25 ` Vincenzo Maffione
2015-12-16 15:46 ` Paolo Bonzini
2015-12-30 16:45 ` Vincenzo Maffione
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=5671230C.70102@redhat.com \
--to=pbonzini@redhat.com \
--cc=armbru@redhat.com \
--cc=g.lettieri@iet.unipi.it \
--cc=jasowang@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rizzo@iet.unipi.it \
--cc=v.maffione@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.