Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 May 2007 13:35:01 +0200
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Greg 'groggy' Lehey <grog@FreeBSD.org>
Cc:        cvs-src@FreeBSD.org, Doug Barton <dougb@FreeBSD.org>, cvs-all@FreeBSD.org, src-committers@FreeBSD.org, edwin@freebsd.org
Subject:   Re: cvs commit: src/etc services
Message-ID:  <20070520133501.715768e5@deskjail>
In-Reply-To: <20070520045428.GG2288@wantadilla.lemis.com>
References:  <200705200331.l4K3Vq3V079479@repoman.freebsd.org> <464FD1F7.2010907@FreeBSD.org> <20070520045428.GG2288@wantadilla.lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Greg 'groggy' Lehey <grog@FreeBSD.org> (Sun, 20 May 2007 14:24:28 +0930):

> On Saturday, 19 May 2007 at 21:43:35 -0700, Doug Barton wrote:

> > In the past we've avoided adding entries to /etc/services that were
> > not actually being used by something we care about since every extra
> > entry increases response time for getservby*() calls.
> 
> Understood.  It's a factor I thought about.
> 
> > Do we feel this is no longer a factor worth worrying about?
> 
> It's certainly worth worrying about, and I thought about it before
> committing.  My thoughts:
> 
> - Clearly a lot of this stuff was just corrections.
> - We don't know in advance which IP ports are used by ports from the
>   Ports Collection.
> - Maybe the performance issue isn't that serious after all.
> 
> To quote from services(5):
> 
>    BUGS
>         A name server should be used instead of a static file.
> 
> I was just thinking that it might be relatively simple to build a
> "compiled" file in tabular format and then mmap it.  That should be
> relatively simple, and should greatly improve performance modulo mmap
> overhead.  How does the mmap overhead compare with querying a name
> server?

man cached

Bye,
Alexander.

-- 
If everything is coming your way, you're in the
wrong lane.
http://www.Leidinger.net  Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org     netchild @ FreeBSD.org  : PGP ID = 72077137



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070520133501.715768e5>