ConfD User Community

Does confd process is dependent on boost c++ libraries?

We are using confd 6.6.1 version and recently we have upgraded the libboost library to the latest version. We are experiencing high CPU usage compared to old build. Does boost library has any impact on confd binary?

I believe this would be outside the scope of the ConfD daemon, since this is an external library used by your applications/ConfD clients, and not the ConfD binary.

You can check with ldd

(star confd and get path of ConfD binary with ps -elf | grep confd)

$ ldd lib/confd/erts/bin/confd
	linux-vdso.so.1 (0x00007ffc3e143000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f9b1b560000)
	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f9b1b558000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f9b1b408000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f9b1b3e0000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f9b1b3d0000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9b1b1d8000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f9b1b998000)

As @nabil suggested, your application can depend on boost. ConfD C API library (libconfd) does not:

$ ldd lib/libconfd.so 
	linux-vdso.so.1 (0x00007fffa93ab000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f1762038000)
	libcrypto.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f1761df0000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1761bf8000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f1762340000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f1761bf0000)

@nabil @mnovak Thanks for the clarification. Yes the scope of libboost is being used by one of our applications.