Re: FreeBSD question.

Keith <[email protected]> Mon, 30 Jan 2012 10:19:23 -0800 (PST)
Newsgroups gmane.org.operators.internet-access
Message-ID <[email protected]>
On Fri, 27 Jan 2012, D'Arcy Cain wrote:

|->On 12-01-27 07:50 PM, Keith wrote:
|->> Setting up this machine I noticed ls -l in /var/mail takes ~30 seconds
|->> to complete:
|->[...]
|->> One thing I noticed somewhat by accident is that when all the
|->> mailboxes in /var/mail are owned by root ls -l takes this long:
|->
|->Is it fast because they are all owned by root or because they are all
|->owned by the same user?  What if you change ownership to another user?
|->I wonder if it has something to do with looking up all the user names
|->in the password file.  How fast is plain "ls" or "ls -ln"?

Hi.

I was not able to get to this much over the last few days but today I have
tried a few things.

One, D'Arcy, an ls or ls -ln goes by in a fraction of a second. This leads
me to believe there definately is a slow down in the lookups for some
reason, which is what I was kind of thinking before, but not sure where
to look for that.

When I change ownership of all the files in /var/mail to me or any other
valid user for example, ls -l goes by also in under a second. So if the
files are all owned by one person, its fine.

Larry: there are no NFS mounts involved in this at all. Its all local
storage on one machine.

Micheal suggested nscd, which I am looking into, but I have never had
to use it before on any of the servers I have run. I tried running it
in its completely default settings, but it did not seem to help. Looking
into it further.

But overall things seems to point to lookups for uid/gid causing the
problem.

Thanks everyone for the replies.

Keith

-- 
Eat sushi frequently. - Avi
[email protected] is the human contact address.
[email protected] is the list posting address.
See below URL for subscribe/unsubscribe and list options:
http://inet-access.net/mailman/listinfo/list