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-bugs

[Xen-bugs] [Bug 1660] New: Usage of dd in xen-create-image release 4.2rc

To: xen-bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-bugs] [Bug 1660] New: Usage of dd in xen-create-image release 4.2rc1 - CVS: 192 could be optimised
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Mon, 6 Sep 2010 22:10:04 -0700
Delivery-date: Mon, 06 Sep 2010 22:10:15 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-bugs-request@lists.xensource.com?subject=help>
List-id: Xen Bugzilla <xen-bugs.lists.xensource.com>
List-post: <mailto:xen-bugs@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=unsubscribe>
Reply-to: bugs@xxxxxxxxxxxxxxxxxx
Sender: xen-bugs-bounces@xxxxxxxxxxxxxxxxxxx
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1660

           Summary: Usage of dd in xen-create-image release 4.2rc1 - CVS:
                    192 could be optimised
           Product: Xen
           Version: unstable
          Platform: x86-64
        OS/Version: Linux-2.6
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Tools
        AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
        ReportedBy: andre.d@xxxxxxx
                CC: andre.d@xxxxxxx


Hello there,

I have fixed my PV Linux 2.6.32.21 Dom0 to 384MB as an experiment, because I am
a fan of systems which run with a predictable amount of resources.

I ran into trouble upon creating a large (full) loopback image on my SW RAID-1.
High system load for a long time.

I had a look at /usr/bin/xen-create-image and figured it uses, for sparse and
full images, respectively:

$image_cmd = "dd if=/dev/zero of=$disk bs=$size count=0 seek=1024";
$image_cmd = "dd if=/dev/zero of=$disk bs=$size count=1024";

I changed the full image creation to

$image_cmd = "dd if=/dev/zero of=$disk bs=1024 count=$size";

and it not only outperformed the original at 139% real time data throughput of
the original statement. It also showed reasonable memory consumption by dd and
a low CPU load, as opposed to the distribution's approach.

YMMV but I don't see a point in forcing dd to allocate a huge block size, when
the same task can be achieved with a reasonable one which serves the needs of
limited resource availability better?


-- 
Configure bugmail: 
http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-bugs] [Bug 1660] New: Usage of dd in xen-create-image release 4.2rc1 - CVS: 192 could be optimised, bugzilla-daemon <=