From owner-freebsd-questions Mon Apr 28 05:08:31 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id FAA10846 for questions-outgoing; Mon, 28 Apr 1997 05:08:31 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA10841; Mon, 28 Apr 1997 05:08:29 -0700 (PDT) Received: from shell.futuresouth.com (shell.futuresouth.com [207.141.254.20]) by who.cdrom.com (8.8.5/8.6.11) with ESMTP id FAA01301 ; Mon, 28 Apr 1997 05:08:27 -0700 (PDT) Received: (from tim@localhost) by shell.futuresouth.com (8.8.5/8.8.5) id HAA06356; Mon, 28 Apr 1997 07:07:10 -0500 (CDT) Message-ID: <19970428070710.03328@shell.futuresouth.com> Date: Mon, 28 Apr 1997 07:07:10 -0500 From: Tim Tsai To: questions@freebsd.org Cc: hackers@freebsd.org Subject: slow initgroups() Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.69 Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk We're seeing slow logins on a particular machine. It frequently takes 10-15 seconds between the "Last login: ..." message until the shell prompt appears. This is a very lightly loaded Pentium Pro-180 with 128 megs of RAM. A nearly identically configured machine does not exhibit this behavior. I've traced this to the initgroups() call in /usr/bin/login but I am not finding anything obvious. A simple ktrace shows nearly identical paths. Both machines are NIS clients to the same NIS server. What would cause one to be much faster than the other? The slow machine seems to have a lot more Ierrors from "netstat -I" (about 1-2%) while the faster machine has zero Ierrors. A simple "ypcat group" and "ypcat group.bygid" on both machines yield similar performance. Any ideas? Thanks in advance, Tim