]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Add IO delay option
authorPrasad Joshi <prasadjoshi124@gmail.com>
Fri, 10 Jun 2011 10:35:20 +0000 (11:35 +0100)
committerPekka Enberg <penberg@kernel.org>
Wed, 15 Jun 2011 13:59:37 +0000 (16:59 +0300)
commitb7dbead4e06a6b9a7f74a7bd65e9e2f0770158b5
treef5719a96c424a937273cdda55b45d44dff0eeca1
parentb4261733cb3ac9747b2839aa6cacd6e572be0842
kvm tools: Add IO delay option

Add a command line debug option to add a fix amount of delay in read and
write operation.

From Ingo "the delays are *constant* [make sure you use a high-res timers
kernel], so they do not result in nearly as much measurement noise as real
block IO does.
[...]
This way you are basically 'emulating' a real disk drive but you will
emulate uniform latencies, which makes measurements a lot more
reliable - while still relevant to the end result."

Suggested-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Prasad Joshi <prasadjoshi124@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/disk/core.c
tools/kvm/include/kvm/util.h
tools/kvm/kvm-run.c