[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] use timer for adding latency to each block I/O

From: Huaicheng Li
Subject: [Qemu-devel] use timer for adding latency to each block I/O
Date: Thu, 12 May 2016 09:27:42 -0500

Hi all,

My goal is to add latency for each I/O without blocking the submission path. 
I can know how long each I/O should wait before it’s submitted to the AIO queue 
via a model. Now the question is how can I make the I/O wait for that long time
before it’s finally handled by worker threads.

I’m thinking about adding a timer for each block I/O and its callback function 
do the submission job. Below is some of my thought and questions about this 

(1). The callback will be triggered by the thread where corresponding event 
locates, not VCPU thread which previously submits I/Os. How can I make safely
submit I/O from the event-queue thread?

(2). If each I/O is associated with a timer, and we also put per-I/O timer into 
event queue.  Will the event queue be capable of handling intensive I/O timers
in accurate timing manner? 

(3). Which device interface would be better to work on? From my perspective,  
virtio-data-plane would be a good choice since it has its own thread and event 

(4). Any other concerns about this idea?  

Any suggestions will be greatly appreciated. Thanks for all your time.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]