Directory listing speed

Mike Tancsa mike at
Wed Jan 17 02:30:59 UTC 2018

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


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


> Many thanks to everybody,
> Luciano.

Mike Tancsa, tel +1 519 651 3400
Sentex Communications, mike at
Providing Internet services since 1994
Cambridge, Ontario Canada

More information about the freebsd-questions mailing list