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>
Subject: Re: [Xen-users] copying or dding from a VM-template resulting in the whole system getting stuck
From: "Fajar A. Nugraha" <list@xxxxxxxxx>
Date: Fri, 15 Oct 2010 08:48:59 +0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 14 Oct 2010 18:50:14 -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
On Thu, Oct 14, 2010 at 9:50 AM, ma qiang <maqiang1984@xxxxxxxxx> wrote:
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. 

Takes all the memory? How do you determine that?
 
anyone knows how to perform this with less cost?


In common x86 systems today, disk (throughput and IOPS) is usually the bottleneck. Try ionice, something like

ionice -n 7 -c 2 dd if= ....

it should lower disk I/O priority for the dd process, giving room for other process.

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