STRIP=yes on iana-etc-2.30
Gilles Espinasse
g.esp at free.fr
Wed Aug 6 03:19:52 MDT 2008
At least on iana-etc-2.30, there is a STRIP option that remove all comments.
Time to resolve protocol name lineary depend of /etc/services file size
See
http://www.diy-linux.org/pipermail/diy-linux-dev/2006-January/000719.html
or
http://unix.derkeiler.com/Mailing-Lists/FreeBSD/current/2004-07/0465.html
Using STRIP=yes remove comments, is a big gain in size and will speed up
protocol name resolution.
without STRIP=yes
ls -l build/etc/{services,protocols}
-rw-r--r-- 1 root root 25075 Aug 5 23:52 build/etc/protocols
-rw-r--r-- 1 root root 768737 Aug 5 23:52 build/etc/services
with STRIP=yes
ls -l build/etc/{services,protocols}
-rw-r--r-- 1 root root 2078 Aug 6 10:52 build/etc/protocols
-rw-r--r-- 1 root root 192217 Aug 6 10:52 build/etc/services
In the worst case ( protocol unknow or near the end of the services file),
this should divide the time to resolve protocol name by 4.
Gilles
More information about the lfs-dev
mailing list