On 11/06/2014 09:12 AM, Ian Campbell wrote:
I've posted a fix for this upstream:
http://lists.xen.org/archives/html/xen-devel/2014-11/msg00542.html

I've requested that it go into the next 4.4.x release. I also plan to
backport it to the package regardless once it is accepted into the dev
branch.

Ian.

So I've tried building xen 4.4.1-3 with this patch (attached), and I replaced the binary packages libxen-4.4 and xen-utils-4.4 with the new ones. The situation is the same: the xl process for jessie amd64 guests starts off at a resident size of 15mb as opposed to ~500kb for wheezy i386 guests. At guest reboot it jumps to 17mb and then, after a few seconds, to ~34mb.
I also rebooted the host to help make sure the test is valid.

Thanks,

Gedalya

Index: xen-4.4.1/tools/libxl/libxl.c
===================================================================
--- xen-4.4.1.orig/tools/libxl/libxl.c
+++ xen-4.4.1/tools/libxl/libxl.c
@@ -2678,7 +2678,7 @@ void libxl__device_disk_local_initiate_a
     }
 
     if (dev != NULL)
-        dls->diskpath = strdup(dev);
+        dls->diskpath = libxl__strdup(gc, dev);
 
     dls->callback(egc, dls, 0);
     return;

Reply via email to