Skip to content

fast domain suspend support

Brendan Cully xen-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Set up an event channel to accept suspend requests.drivers/xen/core/machine_reboot.c drivers/xen/core/reboot.c+41 -00 replies
2/3Add facility to get notification of domain suspend by event channel.tools/libxc/xc_domain.c tools/libxc/xenctrl.h xen/common/domain.c +3 more+51 -10 replies
3/3Teach xc_save to use event-channel-based domain suspend if available.tools/python/xen/xend/XendCheckpoint.py tools/xcutils/xc_save.c+139 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] fast domain suspend support

Hi all,

The following small set of patches introduces an event-channel-based mechanism for suspending guests during the final stage of live migration. They were written in support of our Remus high availability project, presented at NSDI this April. The full paper is available here:

http://www.usenix.org/event/nsdi08/tech/cully.html

Because Remus takes checkpoints many times per second, it cannot afford the tens of milliseconds currently spent in signalling between the checkpoint process and the target domain (largely due to xenstore). So this patch set uses event channels instead of xenstore watches to perform this signalling, greatly reducing the amount of time spent waiting for message delivery and process scheduling. It is a revised version of the prototype patches originally submitted here:

http://lists.xensource.com/archives/html/xen-devel/2007-05/msg00276.html

This code is backwards-compatible with unmodified guest kernels (it simply falls back to the current xenstore-based notification mechanism for these guests).

I've added timestamps to the suspend_and_state function in xc_domain_save, before and after the suspend callback. The difference in execution times (5 runs, idle dom0, idle guest, one vpcu for dom0 and domU, each pinned to separate hyperthreads on a P4):

Old method: 84ms, 87ms, 92ms, 89ms, 92ms
New method: 1ms, 1ms, 1ms, 1ms, 1ms

Could this code be considered for the upcoming 3.3 release?

Thanks,
Brendan