WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] copying or dding from a VM-template resulting in the who

To: Jeff Sturm <jeff.sturm@xxxxxxxxxx>
Subject: Re: [Xen-users] copying or dding from a VM-template resulting in the whole system getting stuck
From: ma qiang <maqiang1984@xxxxxxxxx>
Date: Fri, 15 Oct 2010 14:18:01 +0800
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 14 Oct 2010 23:19:13 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=wZxW3SXF7a0KeLOIuIhQ5I9sc1hls2uBQm5/zOtR+Ik=; b=vLKg+eJHqsNvxQLoxrcICF+IpPcIWNIFP53sdTDY9et0Ccv4WKszL3xEHqYnhmRw9D thymClTiwqpFj6Bl5wUCgnKYvmanqIZTYAflccGkledFqTxPxKVTA/yF8T3lh73XcE3E Wvte7S8RPmVn9Jne+WbH3j9vpqLCcAq42SkUs=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=cF9ngqrrpZw7xFgyJC53NkoGC517llzR7cG6SsAcj/M/G/tpz8ko7viZne2g9V1f6o TdBi8sqhW0K2K8lJD3cueQYm+kOubTL5/RCS+hhsY28oDR9zk9szy/ZvFKzqgIZEPmQ1 FDzF+w1lXNk3kQHXAiccunrOkFtoHCTQo2zeM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <64D0546C5EBBD147B75DE133D798665F06A1247D@xxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTinnGDU49j4tq1NG9HDqE-cBgvJknjdHGEr6yEWt@xxxxxxxxxxxxxx> <64D0546C5EBBD147B75DE133D798665F06A1247D@xxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thanks a lot. It works much better.
By the way, what is the reasonable buffer size. I have tested many based on different computers, and shows different results.
 

On Thu, Oct 14, 2010 at 9:17 PM, Jeff Sturm <jeff.sturm@xxxxxxxxxx> wrote:

This on Linux?  I find copying image files with O_DIRECT is helpful.

 

With the “dd” command, try “iflag=direct” and “oflag=direct”.  Use a reasonable buffer size, like bs=64k or so, to achieve a faster copy operation.

 

-Jeff

 

From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of ma qiang
Sent: Wednesday, October 13, 2010 10:51 PM

Subject: [Xen-users] copying or dding from a VM-template resulting in the whole system getting stuck

 

Hi all,

     When I create a new VM by copying or dding from a VM-template, the cp/dd operation takes almost all the memory and gets one cpu rate to almost 100%, resulting in the whole system getting stuck. 

anyone knows how to perform this with less cost?

 

Thanks a lot.

Qiang


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users