Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jan 2020 13:46:13 -0500
From:      mike tancsa <mike@sentex.net>
To:        Cy Schubert <Cy.Schubert@cschubert.com>, freebsd-hackers@freebsd.org, Wojciech Puchar <wojtek@puchar.net>, Miroslav Lachman <000.fbsd@quip.cz>
Subject:   Re: slow directory operation on huge dirs
Message-ID:  <d896ff5f-64cb-0a15-c59e-963435545887@sentex.net>
In-Reply-To: <DCB94A68-4776-41CE-8A34-02DBA2F247E7@cschubert.com>
References:  <alpine.BSF.2.20.2001191930040.17538@puchar.net> <alpine.BSF.2.20.2001231245190.98419@puchar.net> <cf4d3d5f-6c9e-81cf-f6a2-ade177b9f8ff@quip.cz> <alpine.BSF.2.20.2001231411400.63433@puchar.net> <9b426949-be87-106a-46c3-f1b6a2e5bb83@quip.cz> <alpine.BSF.2.20.2001231437210.80825@puchar.net> <7685f996-c1b8-e11b-aaf6-b59c001ce226@sentex.net> <DCB94A68-4776-41CE-8A34-02DBA2F247E7@cschubert.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1/23/2020 1:22 PM, Cy Schubert wrote:
>
>> Dont know about the vnodes adjustment, and its probably not related.
>> But
>> on our largish mail servers, we need to change the defaults in nsswitch
>> as ls takes forever on large directories otherwise.
>>
>> --- /usr/src/etc/nsswitch.conf  2019-07-10 14:46:40.871619000 -0400
>> +++ /etc/nsswitch.conf  2016-01-27 14:21:30.400226032 -0500
>> @@ -1,13 +1,12 @@
>>  #
>>  # nsswitch.conf(5) - name service switch configuration file
>> -# $FreeBSD: stable/11/etc/nsswitch.conf 301711 2016-06-09 01:28:44Z
>> markj $
>> +# $FreeBSD: src/etc/nsswitch.conf,v 1.1.10.1 2009/08/03 08:13:06
>> kensmith Exp $
>>  #
>> -group: compat
>> +group: files
>>  group_compat: nis
>>  hosts: files dns
>> -netgroup: compat
>>  networks: files
>> -passwd: compat
>> +passwd: files
>>  passwd_compat: nis
>>  shells: files
>>  services: compat
>>
>>
>> Do you use a directory service such as ldap, nis, or a/d?

No. Just a lot of users in the master.passwd file.

    ---Mike





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d896ff5f-64cb-0a15-c59e-963435545887>