public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2][RFC][v2] Batch writes to MMIO
@ 2008-05-15 13:52 Laurent Vivier
  2008-05-15 13:52 ` [PATCH 1/2][RFC][v2] kvm: " Laurent Vivier
  0 siblings, 1 reply; 9+ messages in thread
From: Laurent Vivier @ 2008-05-15 13:52 UTC (permalink / raw)
  To: kvm-devel; +Cc: Laurent Vivier, Avi Kivity


These two patches allow to batch writes to MMIO.

When kernel has to send MMIO writes to userspace, it stores them
in memory until it has to pass the hand to userspace for another
reason. This avoids to have too many context switches on operations
that can wait.

These patches introduce an ioctl() to define MMIO allowed to be delayed.

I made some bentchmark with iperf and e1000:

average on 10 runs

WITH            WITHOUT
PATCH		PATCH

257.2 MB/s      193.7 MB/s      33% faster

I've measured host_state_reload on WinXP boot:

WITH            WITHOUT
PATCH		PATCH

561397          739708          24% less

I've measured host_state_reload on a VGA text scroll:

WITH            WITHOUT
PATCH		PATCH

3976242         13779849        70% less...

[PATCH 1/2] kvm: Batch writes to MMIO
	- kernel part

[PATCH 2/2] kvm-userspace: Batch writes to MMIO
	- userspace part

Signed-off-by: Laurent Vivier <Laurent.Vivier@bull.net>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-05-20 15:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-15 13:52 [PATCH 0/2][RFC][v2] Batch writes to MMIO Laurent Vivier
2008-05-15 13:52 ` [PATCH 1/2][RFC][v2] kvm: " Laurent Vivier
2008-05-15 13:52   ` [PATCH 2/2][RFC][v2] kvm-userspace: " Laurent Vivier
     [not found]   ` <482FDD1E.2090304@qumranet.com>
2008-05-19  8:36     ` [PATCH 1/2][RFC][v2] kvm: " Laurent Vivier
2008-05-19 10:21       ` Avi Kivity
2008-05-20  3:04       ` Hollis Blanchard
2008-05-20  7:39         ` Laurent Vivier
2008-05-20 15:43           ` Hollis Blanchard
2008-05-20 15:52             ` Laurent Vivier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox