DHCP version
Dave Taht
dave.taht at gmail.com
Thu Mar 1 17:59:38 UTC 2012
On Thu, Mar 1, 2012 at 6:32 PM, Francis Dupont <fdupont at isc.org> wrote:
> Taken from the make log:
>
> gcc -g3 -O0 -I../bind/include -o dhcrelay dhcrelay.o ../common/libdhcp.a ../omapip/libomapi.a ../bind/lib/libdns.a ../bind/lib/libisc.a
>
> so with shared libraries we can save 30MB in the flash and > 1MB of memory.
I note that very little CPE ships with more than 16MB of flash, and
that the bulk of that is used up by things like the OS, busybox,
routing daemons, a web based configuration service, ntp, and things
like samba, sometimes even a printer daemon. While compression is
used, at best that is a 2x1 ratio and at least some flash is required
for configuration information and upgrades.
Also the shared libisc and lisccfg as distributed in 9.9 are
of reasonable size.
84308 Feb 29 20:09 libisccfg.so.90.0.1
44668 Feb 29 20:09 libbind9.so.90.0.2
310252 Feb 29 20:09 libisc.so.90.1.0
482076 Feb 29 20:09 /usr/sbin/named
166805 Feb 29 19:46 /usr/sbin/dnsmasq
And dibbler-client is rather large (and depends also
on a rather large C++ lib that is only a subset of the full
stdc++lib.
858277 Feb 29 20:08 /usr/sbin/dibbler-client
> IMHO it is forth to spend some hours on this, Francisco will say when
> (I think if we can wait, i.e., we have no oversize issue, we should defer
> this to the next phase, i.e., next month or at the next opportunity...)
>
> Regards
>
> Francis Dupont <fdupont at isc.org>
>
> PS: ls -alg on my Fedora 16 64 bit:
> -rw-r--r--. 1 dupont dupont 8442142 Mar 1 18:19 ../bind/lib/libdns.a
> -rw-r--r--. 1 dupont dupont 1859796 Mar 1 18:19 ../bind/lib/libisc.a
> -rw-rw-r--. 1 dupont dupont 12939192 Mar 1 18:19 ../common/libdhcp.a
> -rw-rw-r--. 1 dupont dupont 9213808 Mar 1 18:19 ../omapip/libomapi.a
I do note that .a files contain lots of symbol info that is stripped
out during the linkage process.
This is the rough layout of processes running on one box that I have
with 64MB ram. There is 22MB of ram free, named is idle at the moment
but is hard limited to 22MB or so (leaving ~10 to play in)
PID USER VSZ STAT COMMAND
1 root 1696 S init
2 root 0 SW [kthreadd]
3 root 0 SW [ksoftirqd/0]
5 root 0 SW [kworker/u:0]
6 root 0 SW< [khelper]
7 root 0 SW [kworker/u:1]
73 root 0 SW [sync_supers]
75 root 0 SW [bdi-default]
77 root 0 SW< [kblockd]
109 root 0 SW [kswapd0]
157 root 0 SW [fsnotify_mark]
170 root 0 SW< [ath79-spi]
182 root 0 SW [mtdblock0]
187 root 0 SW [mtdblock1]
192 root 0 SW [mtdblock2]
197 root 0 SW [mtdblock3]
202 root 0 SW [mtdblock4]
207 root 0 SW [mtdblock5]
212 root 0 SW [mtdblock6]
255 root 0 SW [kworker/0:1]
466 root 0 SWN [jffs2_gcd_mtd4]
493 root 0 SW [khubd]
520 root 1732 S {rcS} /bin/sh /etc/init.d/rcS S boot
521 root 1696 S init
523 root 1688 S logger -s -p 6 -t sysinit
574 root 0 SW< [crypto]
580 root 0 SW< [cfg80211]
764 root 1700 S /sbin/syslogd -C16
766 root 1680 S /sbin/klogd
774 root 820 S /sbin/hotplug2 --override --persistent --set-worker
1640 root 0 SW [kworker/0:2]
1671 root 3272 S hostapd -P /var/run/wifi-phy0.pid -B /var/run/hostap
2208 root 3280 S hostapd -P /var/run/wifi-phy1.pid -B /var/run/hostap
3680 www-data 3480 S lighttpd -f /etc/lighttpd/cerowrt.conf
3690 nobody 4136 S < /usr/sbin/gpsd -n -P /var/run/gpsd.pid -S 2947 -G /d
3697 root 3472 S /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
3699 root 3844 S /usr/sbin/mrd6 -f /etc/mrd6.conf -D
3704 root 1412 S /usr/sbin/pimd
3906 root 868 S /usr/sbin/radvd -C /var/etc/radvd.conf -m stderr_sys
3913 root 2760 S /usr/sbin/snmpd -Lf /dev/null -p /var/run/snmpd.pid
3915 root 1256 S /usr/sbin/xinetd -pidfile /var/run/xinetd.pid
3922 root 1752 S /usr/sbin/dbus-daemon --system
3976 nobody 960 S /usr/sbin/dnsmasq -K -D -y -Z -b -E -6 /etc/dnsmasq_
3977 root 960 S /usr/sbin/dnsmasq -K -D -y -Z -b -E -6 /etc/dnsmasq_
3989 root 3532 S /usr/sbin/smbd -D
3991 root 3676 S /usr/sbin/nmbd -D
3998 nobody 2480 S avahi-daemon: running [cerowrt.local]
4027 root 1204 S /usr/sbin/babeld -D -I /var/run/babeld.pid -l -z 3 -
4029 bind 11920 S named -c /etc/bind/conf/named.conf -u bind -t /etc/c
4057 root 1132 S /usr/sbin/ahcpd -D -c /tmp/ahcpd.conf -i /var/lib/ah
4074 root 812 S /sbin/rngd -r /dev/urandom -W 4000 -t 30
4081 root 1264 S /usr/sbin/polipo -c /var/etc/polipo.conf
4088 root 1240 S dropbear -i
4089 root 1700 S -ash
4126 ntp 2840 S /sbin/ntpd -g -u ntp:ntp -p /var/run/ntpd.pid
4135 root 1240 S dropbear -i
4136 root 1700 S -ash
4169 root 1688 R ps
--
Dave Täht
SKYPE: davetaht
US Tel: 1-239-829-5608
http://www.bufferbloat.net
More information about the sdcpe-devel
mailing list