On Sun, Dec 19, 2010 at 2:25 PM, Marcelo Vanzin <[email protected]> wrote:

> On 12/19/2010 01:11 PM, Tom Harris wrote:
> > After getting everything built,  I was amazed to see how large
> open-vm-tools
> > has grown.   When I last built it, in '08, guestd was ~500K.    Now, with
> > all the library dependencies, plug-in modules, and general growth,
> > open-vm-tools is larger than the combined size of the small Linux OS I
> was
> > building it for.
>
> If you're talking about disk size, then counting shared libraries the
> open-vm-tools size is not exactly fair. I'm pretty sure more applications
> in
> your system use glib.


The system I'm building for is a tiny linux VM, using busybox for most utils
and definitely does not have glib included.

But, even the system I was building on, an Ubuntu system, did not have glib
installed by default -- I had to install it with apt-get.

For general purpose VMs, the new libs are probably a non-issue.  For virtual
appliances, trying to stay lean they are a bigger deal.  Especially for
security appliances, which try to minimize the included code.

In fact, if you account for vmware-user from the '08
> tools, the only new dependency is gtkmm (which you don't need if not
> building
> dnd or unity). For "--without-x" tools, the only new dependency is glib,
> which
> is pretty standard on Linux systems these days.
>

I did build without-x.   According to ldd, the libraries in current builds
not present in "guestd" are:   libvmtools.so.0, libgmodule-2.0.so.0,
libgobject-2.0.so.0, libgthread-2.0.so.0, librt.so.1, libglib-2.0.so.0,
libpcre.so.3.   I think all the libg* libraries are part of glib,  obviously
libvmtools just moves code that used to be in a single binary.    Are librt
and libpcre dependencies of glib?


> If you strip the resulting binaries (which make install doesn't seem to do
> by
> default), vmtoolsd + plugins ends up being much smaller than 500k.
> libvmtools +
> libhgfs add up to about 600k combined, and those two are shared between the
> system and user instances (and so is the vmtoolsd binary). "make install"
> also
> seems to copy a bunch of static archives (.a and .la) which aren't actually
> needed in the final install.
>

Yeah, good point, I didn't strip anything yet,  that's done as part of the
system build.   I went back and did that, and it's they are much smaller
now.

And memory overhead, at least for the system service, hasn't really changed
> from
> what it used to be.
>
> As for your issue with the kernel directories, I suggest you file a bug so
> it
> isn't forgotten. We'll get to it when we get some time (which has been
> pretty
> short for o-v-t related issues lately).
>

For now, I moved back to the last version that still had guestd.  I didn't
want to mess with all the new libraries.   Not a great solution, but it was
simple.  Maybe in the next rev I'll add glib, etc.

Thanks for the response.
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
open-vm-tools-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/open-vm-tools-discuss

Reply via email to