ls -l taking too much time

Pavel Baleshenko pavlik at mcc.elektra.ru
Tue Sep 6 00:19:17 PDT 2005


Hello. I've the same problem on 5.3.
I think the problem occurs while file is being stat and passwd (uid to
name). Each file in /var/mail has its own owner. Try `ktrace ls -l` and look
the size of final dump file. May be its solution is in the tuning of the PAM
authorization.

> Hi all,
>
> It´s a FreeBSD 5.4-STABLE, on a P-IV(2.4GHz) with 120G IDE HDD
> (UFS2+softupdates), as one data partition (mail).
> The test was done in a non-production server.
> GENERIC kernel.
>
> A "ls -l" in a /var/mail folder with +6000 files (not maildir) is
> taking more then 2 min to complete.
> I compiled (static) "ls" from the GNU filetools-4.1 and it takes
> ~1 min.
> Observing the final behavior I can say that gnu has an
> "unbuffered" output, while fbsds is buffered.
> It was tested in two different machines.
> Is it right?
>
> - Marcelo
>
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at freebsd.org"
>
>



More information about the freebsd-questions mailing list