Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jan 2005 13:50:31 +0100
From:      Albert Shih <shih@math.jussieu.fr>
To:        Dick Davies <rasputnik@hellooperator.net>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Authentication with ldap very slow
Message-ID:  <20050127125031.GB22097@math.jussieu.fr>
In-Reply-To: <20050126235220.GI57113@eris.tenfour>
References:  <20050126220336.GA23003@math.jussieu.fr> <20050126232802.GH57113@eris.tenfour> <20050126233130.GA5551@math.jussieu.fr> <20050126235220.GI57113@eris.tenfour>

next in thread | previous in thread | raw e-mail | index | archive | help
 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



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