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

[Xen-users] Why are shared libraries loaded multiple times in a guest VM?


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "Arun Babu" <arunbabu.n@xxxxxxxxx>
  • Date: Tue, 27 Feb 2007 13:22:33 -0500
  • Delivery-date: Tue, 27 Feb 2007 10:21:50 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=HSvC0wREXEDmm7CR9EODERu8iYdkXL4L3K9zTzUOYaWYcFMGGjrkY6462XItrJqpiR6SX9woIsuBWr1rkSNFnK/UycbwVn1i/g2//YuKkBnkOz6pHDv4G4+h5Za0etfWapLtO3f3rTY3Fl2Foic6VGRI/BrQJEifir/S3A70EdY=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi,
 
I have xen 3.0.2-3 installed with linux 2.6.16.13 guests running on them.
I have a simple test program to print the address of a function in a shared library (say printf) using dlopen and dlsym. I ran this test on DomO and running another instance of the same program (to make sure the library is still loaded). Both instances print the same address (as expected). But when I do this experiment on a DomU, I get different addresses for the same function. Further investigation of /proc/<pid>/maps shows that the same shared library is loaded in different places on those two machines. Why isn't the different instances of the test program refer the same shared library/ why is the library loaded multiple times?

Can somebody help me reason out why this is happening in guest vm? Is this because of some boot option or anything specific to xen?

Thank you
Arun

--
http://www4.ncsu.edu/~abnagara
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

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