Kernel KVM virtualization development
 help / color / mirror / Atom feed
* problem about blocked monitor when disk image on NFS can not be reached.
@ 2011-03-01  5:01 ya su
  2011-03-01 10:51 ` Stefan Hajnoczi
  0 siblings, 1 reply; 8+ messages in thread
From: ya su @ 2011-03-01  5:01 UTC (permalink / raw)
  To: kvm@vger.kernel.org

hi all:

   kvm start with disk image on nfs server, when nfs server can not be
reached, monitor will be blocked. I change io_thread to SCHED_RR
policy, it will work unfluently waiting for disk read/write timeout.

I have tested a standalone thread to process kvm_handle_io, it can not
start up correctly, it may need qemu_mutux protection.

as io_thread process different io tasks, is it possible to transfer
kvm_handle_io and handle_mmio function into this thread? but the
problem will still stay, monitor will still be blocked by read/write
disk request.

is there anyone that will have a good suggestion? thanks.

Green.

^ permalink raw reply	[flat|nested] 8+ messages in thread
* problem about blocked monitor when disk image on NFS can not be reached.
@ 2011-02-28 13:52 ya su
  0 siblings, 0 replies; 8+ messages in thread
From: ya su @ 2011-02-28 13:52 UTC (permalink / raw)
  To: kvm

hi:

   kvm start with disk image on nfs server, when nfs server can not be
reached, monitor will be blocked. I change io_thread to SCHED_RR
policy, it will work unfluently waiting for disk read/write timeout.

  I think one solution to this is to change kvm_handle_io in a
seperate thread, I will put kvm_handle_io in a new spawned thread, all
io request passed in a queue between io_thread and the new spawned
thread,  it need copy run->io.size*run->io.count bytes from
address:(uint8_t *)run + run->io.data_offset.

  Is this a right direction? any suggestion is welcome, thanks!

Green.

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

end of thread, other threads:[~2011-03-02 17:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-01  5:01 problem about blocked monitor when disk image on NFS can not be reached ya su
2011-03-01 10:51 ` Stefan Hajnoczi
2011-03-01 12:39   ` ya su
2011-03-01 15:01     ` Stefan Hajnoczi
2011-03-01 15:23       ` Avi Kivity
2011-03-02 10:39         ` ya su
2011-03-02 17:26           ` Stefan Hajnoczi
  -- strict thread matches above, loose matches on Subject: below --
2011-02-28 13:52 ya su

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