Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jan 2020 16:41:47 +0000
From:      Mike Tancsa <mike@sentex.net>
To:        Wojciech Puchar <wojtek@puchar.net>, Miroslav Lachman <000.fbsd@quip.cz>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: slow directory operation on huge dirs
Message-ID:  <7685f996-c1b8-e11b-aaf6-b59c001ce226@sentex.net>
In-Reply-To: <alpine.BSF.2.20.2001231437210.80825@puchar.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>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1/23/2020 1:40 PM, Wojciech Puchar wrote:
>
> first - we have DIRHASH option and i have it enabled.
> second - it is not just a problem of huge directory but both huge
> directory and large maxvnodes settings.
>
> Large directories works fast when kern.maxvnodes is small and there is
> enough dirhash_maxmem.
>
> it's clearly an error somewhere. 


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


    ---Mike




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7685f996-c1b8-e11b-aaf6-b59c001ce226>