Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jan 2018 21:30:56 -0500
From:      Mike Tancsa <mike@sentex.net>
To:        Luciano Mannucci <luciano@vespaperitivo.it>, freebsd-questions@freebsd.org
Subject:   Re: Directory listing speed
Message-ID:  <e3d61568-dfe7-1934-001c-295e146167f3@sentex.net>
In-Reply-To: <3zLS8V1nCxz3jYqr@baobab.bilink.it>
References:  <3zLS8V1nCxz3jYqr@baobab.bilink.it>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1/16/2018 6:06 AM, Luciano Mannucci wrote:
> 
> Hello all,
> 
> I just moved my old openSUsE 11.4 mail server to freebsd 10.4 (postfix+
> dovecot+clamav) and it seems to work fine :-)...
> 
> I noticed that the directory listing of my users mailboxes (around five
> hundred) is way slower than in linux.
> Is it normal? 
> 
> Do I need to tweak some kernel parameters (I have a lot of free RAM)?
> 
> I've already set the kern.maxusers to 4096, is that enough?

You shouldnt need to do that. Are the mailboxes on UFS ? If so, try
increasing


vfs.ufs.dirhash_maxmem


Also, if you have a lot of users in the master.passwd file, I find
changing /etc/nsswitch.conf to

group: files
group_compat: nis
hosts: files dns
networks: files
passwd: files
passwd_compat: nis
shells: files
services: compat
services_compat: nis
protocols: files
rpc: files

	---Mike

> 
> Many thanks to everybody,
> 
> Luciano.
> 


-- 
-------------------
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, mike@sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   http://www.tancsa.com/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e3d61568-dfe7-1934-001c-295e146167f3>