STRIP=yes on iana-etc-2.30
Valter Douglas Lisbôa Jr.
douglas at trenix.com.br
Wed Aug 6 05:15:08 MDT 2008
On Wednesday 06 August 2008 06:19:52 Gilles Espinasse wrote:
> 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
Nice! Thanks for post it.
It's incredible like stuffs like that is staying front of ours eyes and we
don't see that. It's particularly usefull in Initramfs and embeded systems.
--
Valter Douglas Lisbôa Jr.
Sócio-Diretor
Trenix - IT Solutions
"Nossas Idéias, suas Soluções!"
www.trenix.com.br
contato at trenix.com.br
Tel. +55 19 3402.2957
Cel. +55 19 9183.4244
More information about the lfs-dev
mailing list