From owner-freebsd-questions@FreeBSD.ORG Thu Jan 27 12:50:40 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD0EC16A4CE for ; Thu, 27 Jan 2005 12:50:40 +0000 (GMT) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0C6D43D1F for ; Thu, 27 Jan 2005 12:50:39 +0000 (GMT) (envelope-from jas@math.jussieu.fr) Received: from riemann.math.jussieu.fr (riemann.math.jussieu.fr [134.157.13.3])j0RCocHK031789 ; Thu, 27 Jan 2005 13:50:38 +0100 (CET) X-Ids: 166 Received: from galois1.math.jussieu.fr (galois1.math.jussieu.fr [134.157.13.116])j0RCoYDn080848 ; Thu, 27 Jan 2005 13:50:34 +0100 (CET) Received: from galois1.math.jussieu.fr (localhost.localdomain [127.0.0.1]) j0RCoYW8001719 ; Thu, 27 Jan 2005 13:50:34 +0100 Received: (from jas@localhost) by galois1.math.jussieu.fr (8.12.8/8.12.8/Submit) id j0RCoV5e001718; Thu, 27 Jan 2005 13:50:31 +0100 Date: Thu, 27 Jan 2005 13:50:31 +0100 From: Albert Shih To: Dick Davies Message-ID: <20050127125031.GB22097@math.jussieu.fr> References: <20050126220336.GA23003@math.jussieu.fr> <20050126232802.GH57113@eris.tenfour> <20050126233130.GA5551@math.jussieu.fr> <20050126235220.GI57113@eris.tenfour> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20050126235220.GI57113@eris.tenfour> User-Agent: Mutt/1.5.6i X-Spam-Score: -2.82 () ALL_TRUSTED X-Scanned-By: MIMEDefang 2.49 on 134.157.13.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.7.2 (shiva.jussieu.fr [134.157.0.166]); Thu, 27 Jan 2005 13:50:39 +0100 (CET) X-Miltered: at shiva.jussieu.fr with ID 41F8E39E.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Antivirus: scanned by sophie at shiva.jussieu.fr cc: FreeBSD Questions Subject: Re: Authentication with ldap very slow X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: shih@math.jussieu.fr List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2005 12:50:41 -0000 Le 26/01/2005 à 23:52:20+0000, Dick Davies a écrit > > make /tmp/mydir > ls -lR that and tcpdump what i'm sending to the server > (about a dozen lines of output) > ls -lR /usr/local/misc (about 3Gb of mp3s owned by me) and tcpdump what i'm sending to the server > (about a dozen lines of output) Yes of course, that's because in this directory there no many user, maybe root, you,. > > so it looks like only the one query is done by ls (i.e. it only looks up the name when it displays > the output). How many directories are under /home? Unless we're talking hundreds, it shouldn't be > more than a second or so delay, tops. [root@xxxxxxxx home]# ls -l *|wc 402 3003 20127 [root@xxxxxxxx home]# > > It does'nt appear to caching (repeating the ls a couple of seconds later sends the > same query), but then i don't think that accounts for your huge delays. > > > It's definitely the uid lookup? Not NFS /home or something yes because : > (Is ls * much faster than ls -l)? [root@xxxxxxx home]# time ls * > /dev/null real 0m0.089s user 0m0.000s sys 0m0.040s [root@xxxxxxx home]# time ls -l * >/dev/null real 0m27.110s user 0m0.258s sys 0m0.727s [root@xxxxxxx home]# Lots of thanks. -- Albert SHIH Universite de Paris 7 (Denis DIDEROT) U.F.R. de Mathematiques. Heure local/Local time: Thu Jan 27 13:36:46 CET 2005