[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] openfile handle to qemu-resume file


  • To: "xen-devel lists.xen.org" <xen-devel@xxxxxxxxxxxxx>
  • From: web1 <ustermann.max@xxxxxx>
  • Date: Thu, 9 Oct 2014 16:05:32 +0000
  • Delivery-date: Thu, 09 Oct 2014 16:24:48 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

Hello everybody,

i do some vm-restore tests with xen-4.4.1 , an i observe , that after i restore 
a vm via "xl restore", that their is an openfile handle to a file called 
"/var/lib/xen/qemu-resume.<vm-id>" that is marked as "deleted", the associated 
qemu-process show the same.

 if i look in the source code, i found in libxl_dm.c in the function 
libxl__build_device_model_args_new that this "resume-file" is opened, but i 
found no call to close this file . Later in libxl__spawn_local_dm (which called 
libxl__build_device_model_args) i found a call to device_model_spawn_outcome, 
their in the state-file is deleted (if it exists).

i donÂt really understand while the state-file is open and not close before 
delete. Can anyone that explain?

xen-4.4.1 was complied from sources without any special options

for one restore of a vm it is possilbe that this fact is not really importent, 
but if you use libvirt in combination with xen/libxl it cause to an increase of 
openfile handles , if you restore often vmÂs for testÂs

thanks and all the best
max


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.