From owner-freebsd-questions Tue Sep 5 19:08:01 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.freebsd.org (8.6.11/8.6.6) id TAA15653 for questions-outgoing; Tue, 5 Sep 1995 19:08:01 -0700 Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by freefall.freebsd.org (8.6.11/8.6.6) with SMTP id TAA15646 for ; Tue, 5 Sep 1995 19:07:59 -0700 Received: from crevenia.parc.xerox.com ([13.2.116.11]) by alpha.xerox.com with SMTP id <14797(2)>; Tue, 5 Sep 1995 19:07:16 PDT Received: from localhost by crevenia.parc.xerox.com with SMTP id <177475>; Tue, 5 Sep 1995 19:07:07 -0700 X-Mailer: exmh version 1.6.1 5/23/95 To: Terry Lambert cc: kallio@jyu.fi (Seppo Kallio), luigi@labinfo.iet.unipi.it, questions@freebsd.org Subject: Re: Why "finger" takes so long ? In-reply-to: Your message of "Tue, 05 Sep 95 10:20:57 PDT." <199509051720.KAA23606@phaeton.artisoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 5 Sep 1995 19:07:04 PDT From: Bill Fenner Message-Id: <95Sep5.190707pdt.177475@crevenia.parc.xerox.com> Sender: questions-owner@freebsd.org Precedence: bulk In message <199509051720.KAA23606@phaeton.artisoft.com> you write: >> 2:14pm@itu:~% time finger kallio >> Login: kallio Name: Seppo Kallio >> Directory: /export/lk/kallio Shell: /usr/local/bin/tcsh >> On since Tue Sep 5 14:12 (EET DST) on ttyp0 from zaphod.maccc.jyu >> No Mail. >> 0.249u 1.666s 0:32.25 5.8% 21+439k 1926+14io 0pf+0w >> 2:15pm@itu:~% >> >> I have 1776 accounts but idle node, not many users yet. > [...] >Probably what is happening is that the directory is large enough >that the full set of directory entries in the home directory that >contains the users for your system isn't in cache all at once. I suspect that the real problem is a combination of the hide() bug (finger stat()'s ~user/.nofinger for every user in the passwd file; fixed in -current) and the less-than-ideal behavior of finger when you give it a username but don't give it -m. I think that the non-mflag case should try getpwnam() on the argument first, before walking the whole passwd file, since people will often just type "finger username" when what they mean is "finger -m username". Bill