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: ma qiang <maqiang1984@xxxxxxxxx>, <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] copying or dding from a VM-template resulting in the whole system getting stuck
From: Jeff Sturm <jeff.sturm@xxxxxxxxxx>
Date: Thu, 14 Oct 2010 09:17:44 -0400
Cc:
Delivery-date: Thu, 14 Oct 2010 06:19:55 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTinnGDU49j4tq1NG9HDqE-cBgvJknjdHGEr6yEWt@xxxxxxxxxxxxxx>
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: ActrSr9ApYfN3gfuRB24qxMEE9/2TwAVwV8Q
Thread-topic: [Xen-users] copying or dding from a VM-template resulting in the whole system getting stuck

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
To: xen-users@xxxxxxxxxxxxxxxxxxx
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