From owner-freebsd-hackers@freebsd.org Wed Aug 19 03:03:10 2015 Return-Path: Delivered-To: freebsd-hackers@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 1F1DD9BDB63 for ; Wed, 19 Aug 2015 03:03:10 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id ED85C860 for ; Wed, 19 Aug 2015 03:03:09 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (ppp121-45-243-143.lns20.per4.internode.on.net [121.45.243.143]) (authenticated bits=0) by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id t7J32wOo035011 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 18 Aug 2015 20:03:01 -0700 (PDT) (envelope-from julian@freebsd.org) Subject: Re: System briefly freezes every time when a very large UFS directory is filled with files To: Yuri , Freebsd hackers list References: <55D38A75.6090508@rawbw.com> From: Julian Elischer Message-ID: <55D3F1DD.6090807@freebsd.org> Date: Wed, 19 Aug 2015 11:02:53 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <55D38A75.6090508@rawbw.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Aug 2015 03:03:10 -0000 On 8/19/15 3:41 AM, Yuri wrote: > I have one directory that has ~1.2M files on UFS system. > Every time when the process that creates files there reaches a > particular point (~0.9M files), system invariably freezes for ~10 > seconds, after which it continues and process succeeds. Try increase the size of the directory hash/cache. > > I know that this is quite an extreme number of files but, other than > this problem, it is usable in this setup. > > Maybe someone can think of some fix or the immediate reason of such > freezes? This isn't a good problem to have, even in the view of an > extremity of this situation. > > Yuri > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" >