libtool & DHCP

Dave Taht dave.taht at gmail.com
Fri Mar 9 03:34:42 UTC 2012


>> On Mar 5, 2012, at 5:16 PM, Francis Dupont wrote:
>>
>> > I tried to reduce the DHCP tool footprint for CPEs using libtool:
>> > - run libtoolize
>> > - add a --with-libtool to configure.ac
>> > - update Makefile.am files
>> > - patch cltest.c (or don't build it)
>> >
>> > On my Fedora 16 64 bits, stripped binaries so mainly text,
>> >
>> > before:
>> > dhclient -> 1552648
>> > dhcrelay -> 1465032
>> >
>> > after:
>> > dhclient -> 122968
>> > dhrelay ->   24256
>> > libdns ->  1084568
>> > libdhcp ->  331032
>> >
>> > so there is a clear win as soon as the libraries are shared by
>> > two or more tools.

Incidentally I just built isc-dhcp 4.2.3-P2 and bind 9.9.0 for cerowrt.
The build recipe is available in the github ceropackages repository.

The ceropackage presently statically links dhclient and dhcpd
and consumes this amount of 'disk'

1581365 Mar  9 03:01 dhcpd
1385509 Mar  9 03:01 dhclient

libs required for bind and bind itself.

    84308 Mar  8 21:58 libisccfg.so.90.0.1
  310252 Mar  8 21:58 libisc.so.90.1.0
1558840 Mar  8 21:58 libdns.so.93.1.0
  482076 Mar  8 21:58 named

My assumption is that were I to build dhcp dynamically linked, that
the shared libs would not be shared with bind, so although there is a
win there, it's only a win should more than just dhclient be used.

Just for comparison:

199653 Mar  8 04:53 dnsmasq (which has ra and dhcpv6 server support now)
472736 Mar  8 21:43 /bin/busybox (which includes udhcpd and 500 other utils)

858277 Mar  8 21:50 /usr/sbin/dibbler-client (but requires libc++)
  71077 Mar  8 21:31 /usr/sbin/radvd

regardless, since we are going to use isc-dhcp as a base, any
additional patches to make it work
well (scripts!) in the sdcpe environment would be appreciated.

I will look at setup and memory requirements next.

>
> Francis Dupont <fdupont at isc.org>
> _______________________________________________
> sdcpe-devel mailing list
> sdcpe-devel at lists.isc.org
> https://lists.isc.org/mailman/listinfo/sdcpe-devel



-- 
Dave Täht
SKYPE: davetaht
US Tel: 1-239-829-5608
http://www.bufferbloat.net


More information about the sdcpe-devel mailing list