From: Ian Jackson Subject: Re: [PATCH v10] remus drbd: Implement remus drbd replicated disk Date: Thu, 5 Jun 2014 19:26:46 +0100 Message-ID: <21392.46694.328196.953300@mariner.uk.xensource.com> References: <1401932069-16460-6-git-send-email-yanghy@cn.fujitsu.com> <1401932386-16538-1-git-send-email-yanghy@cn.fujitsu.com> <21392.43961.872654.69939@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: rshriram@cs.ubc.ca Cc: Lai Jiangshan , Wen Congyang , Andrew Cooper , Jiang Yunhong , Dong Eddie , "xen-devel@lists.xen.org" , Ian Campbell , Yang Hongyang , Roger Pau =?utf-8?Q?Monn=C3=A9?= List-Id: xen-devel@lists.xenproject.org Shriram Rajagopalan writes ("Re: [PATCH v10] remus drbd: Implement remus drbd replicated disk"): > It does. But the design is such that the disk and memory checkpoints are > simultaneously transmitted. So by the time this call is made, the ack is > already in the system. One packet might get lost while the other gets through. Risking locking up the whole of the process is unfortunately not acceptable. > -- this is the common case. Covers about 90% of the calls (since disk traffic > is pretty low compared to memory checkpoint). > > > What if the network is broken ? Might it not then delay indefinitely ? > > Nope. I designed the relevant drbd code such that the ioctl wait times out > (configurable) in worst case, returning an error. The time out is generally > about 300ms. This code path is exercised only during failures. If you think this ioctl will, when there is no error, complete immediately, can we have a non-blocking versiion, and fall back to the fork trick ? Or better still, is there something we could poll() on to find out when the ioctl will definitely complete ? > So, a one-time error condition and few slow checkpoints out of an indefinite > number of checkpoints don't warrant a fork per ioctl call (which usually > returns immediately). libxl might be handling a large number of domains. If libxl blocks, a lot of everything else might stall. (Including checkpoints of other domains, if you care about that.) Thanks, Ian.