From owner-freebsd-performance@FreeBSD.ORG Wed Dec 19 19:42:34 2007 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ACC1D16A419 for ; Wed, 19 Dec 2007 19:42:34 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.freebsd.org (Postfix) with ESMTP id 7918713C45D for ; Wed, 19 Dec 2007 19:42:34 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by smarthost2.sentex.ca (8.14.1/8.13.8) with ESMTP id lBJJgXDD005451; Wed, 19 Dec 2007 14:42:33 -0500 (EST) (envelope-from mike@sentex.net) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.13.8/8.13.3) with ESMTP id lBJJgWmJ018860 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 19 Dec 2007 14:42:32 -0500 (EST) (envelope-from mike@sentex.net) Message-Id: <200712191942.lBJJgWmJ018860@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Wed, 19 Dec 2007 14:42:33 -0500 To: "Alexandre Biancalana" , freebsd-performance@freebsd.org From: Mike Tancsa In-Reply-To: <8e10486b0712191109n3d21b02cyf5183ee0cd01d8ce@mail.gmail.co m> References: <8e10486b0712191109n3d21b02cyf5183ee0cd01d8ce@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: Subject: Re: Bad performance when accessing a lot of small files X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Dec 2007 19:42:34 -0000 At 02:09 PM 12/19/2007, Alexandre Biancalana wrote: >The behavior that I'm observing and that want your help is when the >system is accessing some directory with many small files ( directories >with ~ 1 million of ~30kb files), the performance is very poor. Hi, Have you adjusted the dirhash value ? What does sysctl -a vfs.ufs | grep dirhash show on your box ? Also, do you have a lot of UIDs in your passwd file ? ---Mike