All of lore.kernel.org
 help / color / mirror / Atom feed
* Cancelling asynchronous operations in libxl
@ 2015-01-20 13:50 Dave Scott
  2015-01-20 16:38 ` Ian Jackson
  0 siblings, 1 reply; 10+ messages in thread
From: Dave Scott @ 2015-01-20 13:50 UTC (permalink / raw)
  To: Xen-devel; +Cc: Ian Jackson, Euan Harris, Ian Campbell

Hi,

Firstly, sorry for the extreme lateness of this reply!

I’ve re-read the thread from Nov 2013: (2013!)

http://lists.xen.org/archives/html/xen-devel/2013-11/msg01176.html

and found it quite thought-provoking.

From the Xapi/Xenopsd point of view, the main feature that we’d like is to be able to ‘unstick’ the system when it appears stuck. When the user gets bored and hits the big red “cancel” button we’d like the particular operation/thread/call to unblock (in a timely fashion, it’s probably ok if this takes 30s?) and for the system to be left in some kind of manageable state. I think it’s ok for Xapi/Xenopsd to destroy any half-built VMs via fresh libxl calls afterwards, so libxl doesn’t need to tidy everything itself automatically.

I think cancellation could be quite hard to test. One thing we could do is add a counter and increment it every time we pass a point where cancellation is possible. In some libxl debug mode we could configure it to simulate a cancellation event when the counter reaches a specific value. A test harness could then try to walk through all the different cancellation possibilities and check the system is in some sensible state afterwards.

We were thinking about running some number of libxl-based stateless worker processes which would also allow us to kill them with various signals if we really needed to. I guess in the event that libxl cancel didn’t work for whatever reason, we could fall back to this rather cruder approach (although this should be only in extreme circumstances).

Anyway, sorry again for the lateness!

Cheers,
Dave


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

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

end of thread, other threads:[~2015-06-25 10:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-20 13:50 Cancelling asynchronous operations in libxl Dave Scott
2015-01-20 16:38 ` Ian Jackson
2015-01-28 16:13   ` Euan Harris
2015-01-28 16:57     ` Ian Jackson
2015-02-02 17:43       ` Ian Jackson
2015-02-03  9:59         ` Euan Harris
2015-02-03 12:04           ` Ian Jackson
2015-06-24 15:33       ` Euan Harris
2015-06-24 15:41         ` Ian Jackson
2015-06-25 10:40           ` Ian Campbell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.