Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jan 2020 10:22:54 -0800
From:      Cy Schubert <Cy.Schubert@cschubert.com>
To:        freebsd-hackers@freebsd.org, Mike Tancsa <mike@sentex.net>, Wojciech Puchar <wojtek@puchar.net>, Miroslav Lachman <000.fbsd@quip.cz>
Subject:   Re: slow directory operation on huge dirs
Message-ID:  <DCB94A68-4776-41CE-8A34-02DBA2F247E7@cschubert.com>
In-Reply-To: <7685f996-c1b8-e11b-aaf6-b59c001ce226@sentex.net>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On January 23, 2020 8:41:47 AM PST, Mike Tancsa <mike@sentex=2Enet> wrote:
>On 1/23/2020 1:40 PM, Wojciech Puchar wrote:
>>
>> first - we have DIRHASH option and i have it enabled=2E
>> second - it is not just a problem of huge directory but both huge
>> directory and large maxvnodes settings=2E
>>
>> Large directories works fast when kern=2Emaxvnodes is small and there
>is
>> enough dirhash_maxmem=2E
>>
>> it's clearly an error somewhere=2E=20
>
>
>Dont know about the vnodes adjustment, and its probably not related=2E
>But
>on our largish mail servers, we need to change the defaults in nsswitch
>as ls takes forever on large directories otherwise=2E
>
>--- /usr/src/etc/nsswitch=2Econf=C2=A0 2019-07-10 14:46:40=2E871619000 -0=
400
>+++ /etc/nsswitch=2Econf=C2=A0 2016-01-27 14:21:30=2E400226032 -0500
>@@ -1,13 +1,12 @@
>=C2=A0#
>=C2=A0# nsswitch=2Econf(5) - name service switch configuration file
>-# $FreeBSD: stable/11/etc/nsswitch=2Econf 301711 2016-06-09 01:28:44Z
>markj $
>+# $FreeBSD: src/etc/nsswitch=2Econf,v 1=2E1=2E10=2E1 2009/08/03 08:13:06
>kensmith Exp $
>=C2=A0#
>-group: compat
>+group: files
>=C2=A0group_compat: nis
>=C2=A0hosts: files dns
>-netgroup: compat
>=C2=A0networks: files
>-passwd: compat
>+passwd: files
>=C2=A0passwd_compat: nis
>=C2=A0shells: files
>=C2=A0services: compat
>
>
>=C2=A0=C2=A0=C2=A0 ---Mike
>
>_______________________________________________
>freebsd-hackers@freebsd=2Eorg mailing list
>https://lists=2Efreebsd=2Eorg/mailman/listinfo/freebsd-hackers
>To unsubscribe, send any mail to
>"freebsd-hackers-unsubscribe@freebsd=2Eorg"

Do you use a directory service such as ldap, nis, or a/d?
--=20
Pardon the typos and autocorrect, small keyboard in use=2E=20
Cy Schubert <Cy=2ESchubert@cschubert=2Ecom>
FreeBSD UNIX: <cy@FreeBSD=2Eorg> Web: https://www=2EFreeBSD=2Eorg

The need of the many outweighs the greed of the few=2E

Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DCB94A68-4776-41CE-8A34-02DBA2F247E7>