From owner-freebsd-questions@freebsd.org Wed Jan 17 02:30:59 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 912F8E73876 for ; Wed, 17 Jan 2018 02:30:59 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [IPv6:2607:f3e0:80:80::2]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "smarthost.sentex.ca", Issuer "smarthost.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 101DA77E8A for ; Wed, 17 Jan 2018 02:30:58 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (lava.sentex.ca [IPv6:2607:f3e0:0:5::11]) by smarthost2.sentex.ca (8.15.2/8.15.2) with ESMTPS id w0H2Uva6072656 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Tue, 16 Jan 2018 21:30:57 -0500 (EST) (envelope-from mike@sentex.net) Received: from [192.168.43.26] (saphire3.sentex.net [192.168.43.26]) by lava.sentex.ca (8.15.2/8.15.2) with ESMTP id w0H2UrhS013891; Tue, 16 Jan 2018 21:30:54 -0500 (EST) (envelope-from mike@sentex.net) Subject: Re: Directory listing speed To: Luciano Mannucci , freebsd-questions@freebsd.org References: <3zLS8V1nCxz3jYqr@baobab.bilink.it> From: Mike Tancsa Organization: Sentex Communications Message-ID: Date: Tue, 16 Jan 2018 21:30:56 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <3zLS8V1nCxz3jYqr@baobab.bilink.it> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jan 2018 02:30:59 -0000 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/