mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org
Cc: mst@redhat.com
Subject: [PATCH 0/3] ringtest: performance optimization
Date: Thu,  6 Oct 2016 11:39:09 +0200	[thread overview]
Message-ID: <1475746752-17454-1-git-send-email-pbonzini@redhat.com> (raw)

In order to provide more reliable results, use link-time
optimization to inline the ring implementation in the guest/host
threads.  The second and third patch then are a reimplementation of
https://marc.info/?l=kvm&m=147428514903134&w=2 for all ring structures,
saving on code size by removing separate implementations of poll_avail
and poll_used.

Here are the results of the benchmarks:

	0_9		inorder		poll		new
base    0m10.019s       0m8.001s        0m8.724s        0m7.991s
LTO     0m8.063s        0m6.636s        0m7.106s        0m7.201s
havebuf 0m7.969s        0m6.601s        0m7.097s        0m7.054s


Paolo Bonzini (3):
  ringtest: use link-time optimization
  ringtest: commonize implementation of poll_avail/poll_used
  ringtest: poll for new buffers once before updating event index

 tools/virtio/ringtest/Makefile          |  4 +--
 tools/virtio/ringtest/main.c            | 20 ++++++++---
 tools/virtio/ringtest/main.h            |  4 +--
 tools/virtio/ringtest/noring.c          |  6 ++--
 tools/virtio/ringtest/ptr_ring.c        | 22 +++---------
 tools/virtio/ringtest/ring.c            | 18 ++++------
 tools/virtio/ringtest/virtio_ring_0_9.c | 64 ++++++++-------------------------
 7 files changed, 49 insertions(+), 89 deletions(-)

-- 
2.7.4

             reply	other threads:[~2016-10-06  9:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-06  9:39 Paolo Bonzini [this message]
2016-10-06  9:39 ` [PATCH 1/3] ringtest: use link-time optimization Paolo Bonzini
2016-10-06  9:39 ` [PATCH 2/3] ringtest: commonize implementation of poll_avail/poll_used Paolo Bonzini
2016-10-06  9:39 ` [PATCH 3/3] ringtest: poll for new buffers once before updating event index Paolo Bonzini

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=1475746752-17454-1-git-send-email-pbonzini@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mst@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®