From owner-cvs-all@FreeBSD.ORG Sun May 20 11:35:08 2007 Return-Path: X-Original-To: cvs-all@freebsd.org Delivered-To: cvs-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 04D5016A400; Sun, 20 May 2007 11:35:08 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id A436413C46A; Sun, 20 May 2007 11:35:07 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5FDC1.dip.t-dialin.net [84.165.253.193]) by redbull.bpaserver.net (Postfix) with ESMTP id 4678C2E137; Sun, 20 May 2007 13:35:03 +0200 (CEST) Received: from deskjail (deskjail.Leidinger.net [192.168.1.109]) by outgoing.leidinger.net (Postfix) with ESMTP id 612C25B6169; Sun, 20 May 2007 13:34:47 +0200 (CEST) Date: Sun, 20 May 2007 13:35:01 +0200 From: Alexander Leidinger To: Greg 'groggy' Lehey 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> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.864, required 8, autolearn=not spam, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: cvs-src@FreeBSD.org, Doug Barton , cvs-all@FreeBSD.org, src-committers@FreeBSD.org, edwin@freebsd.org Subject: Re: cvs commit: src/etc services X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 May 2007 11:35:08 -0000 Quoting Greg 'groggy' Lehey (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